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.