Survival LLM
A free AI assistant and survival library (1.5 million offline articles) that runs on your own computer, with no internet. Shows the source of every answer. Mac and Windows.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Self learning 2D car AI. Self drive, self brake, change due to environment
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Self learning 2D car AI. Self drive, self brake, change due to environment
Self-Driving AI Evolution is a free, browser-based sandbox (Vite, TypeScript and Canvas 2D) where cars learn to steer, accelerate and brake through neural networks evolved by a genetic algorithm. It is planned to run on iPhone, iPad and desktop browsers.
Status: project foundation, simulation loop, seeded random generator, a built-in racetrack, headless car physics, collision detection, lap timing and manual driving. Drive the car with the keyboard (arrows or WASD, Space or ↓ to brake, R to restart) or the on-screen touch buttons; the page shows laps, current/last/best lap time, the next gate and crash feedback, and pauses while hidden. Open the page with
?mode=trainto watch a population of 50 neural cars evolve on the oval (P2-05), or runnpm run demo:trainto print 50 generations headless.npm run experiment -- run experiments/configs/smoke-oval.json --out record.jsonrecords a seeded training experiment as JSON, andnpm run experiment -- replay record.jsonchecks that it reproduces exactly (P2-07). Nothing has been shown to learn yet: fitness on one track is a training signal, not evidence, and the experiments in docs/AI_EVALUATION.md have not been run.npm run demo:vehicleprints a scripted physics run,npm run demo:collisionscripted crashes andnpm run demo:lapstimed laps. See the roadmap for verified progress.
You need Node.js 24 (the version is in .nvmrc; with nvm, run nvm use).
npm ci # install the exact dependency versions from package-lock.json
npm run dev # start a local development server, then open the printed URL
To try it on a phone or tablet on the same network, run npm run dev -- --host and open the "Network" URL on the device.
| Command | What it does |
|---|---|
npm run lint | ESLint, including the architecture rules that stop modules importing the wrong layers |
npm run typecheck | TypeScript in strict mode |
npm test | Unit tests (Vitest, in Node) |
npm run build | Production build into dist/ (a static site) |
npm run test:e2e | Browser tests (Playwright) against the production build, served by vite preview and by a plain static file server, in Chromium and WebKit, including phone and tablet touch emulation |
Before the first browser test run, install the browsers: npx playwright install --with-deps chromium webkit. GitHub Actions runs all of these checks on every pull request and on main (.github/workflows/ci.yml). See docs/TESTING.md for details and the manual device checks.
The app is a static site. npm run build writes everything into dist/: index.html plus hashed JavaScript and CSS in dist/assets/. There is no server code, no API routes, no rewrites and no vercel.json. Asset paths are relative (base: './' in vite.config.ts), so dist/ works at a site root or under a sub-path. tests/e2e/staticHost.spec.ts checks both with a plain static file server.
Any static host: with Node 24, run npm ci && npm run build, then upload the contents of dist/.
Vercel: the free Hobby plan is enough; nothing here needs a paid feature.
npm run builddistnpm ci, which installs exactly what package-lock.json pins.nvmrc and engines in package.jsonmain.Previews are only visible to people who can see them under the project's deployment protection settings. Check those settings before sharing a link.
index.html the page
src/main.ts entry point
src/sim/ simulation (no DOM): settings, world state, fixed-step clock, track model, vehicle physics, collision, checkpoints and laps
src/ai/ the Driver interface and the human driver
src/render/ canvas sizing, track fit, the cached track layer and the car
src/data/tracks/ built-in track data (JSON)
src/ui/ browser frame loop, keyboard/touch input and the lap display
src/utils/ seeded random generator
tests/ unit tests, mirroring src/
tests/e2e/ browser tests
More folders (sensors, AI, evolution, training) are added by later roadmap tasks; see docs/ARCHITECTURE.md.