Underground 2 Revived
Play Need for Speed: Underground 2 (2004) in Chrome and Firefox with WebGPU graphics, Web Audio, up to 120 fps widescreen, controller support, free roam and Online races with friends. Fan project, not
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证AI fakes now fool most people, yet few have ever practised spotting them. Real or Rendered? is a 5-minute daily game where players judge if images, voices and videos are real or AI-made, then learn the clues they missed.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A 5-minute daily game that trains people to spot AI-generated images, voices and videos. Built for the Sopra Steria International Student Challenge 2026–2027 (cognitive stream: understanding and detecting digital risks).
Players see a media item, decide Real or Rendered (AI-made) and say how sure they are. The game then reveals the clues they missed (highlighted on the image), where the item comes from, and — at the end of the round — how well their confidence matched their accuracy.
| Part | Where | What it does |
|---|---|---|
| Player app | /, /play, /spot, /practice, /progress, /join, /check/* | Anonymous play, daily rounds, Spot the fake (find the odd one out in a grid of four), practice, clue reveal, calibration feedback, streaks, class join, starting/final checks |
| Teacher dashboard | /teacher | Classes with join codes, class accuracy over time, hardest clue types, pre/post assessment, students table |
| Admin content studio | /admin | Upload media, label it, draw clue regions, record source and licence, review and publish |
| API | src/app/api/** | Typed, validated JSON API (docs/API.md) |
| Learning engine | src/lib/server/engine.ts | Elo ratings per clue kind, adaptive item selection, spaced review, scoring, Brier/calibration, streaks |
Stack: Next.js 15 (App Router) · React 19 · TypeScript (strict) · Tailwind CSS 4 · Drizzle ORM · PostgreSQL (embedded PGlite locally) · zod · jose (JWT sessions) · bcrypt · sharp · Vitest · Playwright.
Requirements: Node.js 20.9+ (22 recommended). Nothing else — the database is embedded.
npm install
cp .env.example .env.local # optional locally; set ADMIN_EMAIL / ADMIN_PASSWORD
npm run db:seed # creates the admin account and loads the content library
npm run dev # http://localhost:3000
.env.local, or register as a teacher)
npm run db:seedreadsADMIN_EMAILandADMIN_PASSWORDfrom the environment. With.env.localrun it asnpx dotenv -e .env.local -- npm run db:seed, or simply:[email protected] ADMIN_PASSWORD='a-long-password' npm run db:seed
Local data lives in .data/ (database and uploads). Delete the folder to start fresh.
npm run check # typecheck + lint + unit & integration tests
npm test -- --coverage # coverage report (server code)
npm run content:validate # content library: schema, files, balance, assessment sets
npm run build # production build
npm run test:e2e # end-to-end tests in a real browser (after `npm run build`; starts the app on a fresh database)
CI runs all of these on every push and pull request (.github/workflows/ci.yml).
provenanceNote). The starter library comes from Wikimedia Commons; see
content/CONTENT_SOURCES.md. Clues were drafted with AI and are
marked needs review until your team checks them in the studio.Signed httpOnly SameSite cookies (HS256 JWT) · bcrypt (cost 12) with timing-safe login · role checks on every staff endpoint (re-read from the database) · zod validation on every input · same-origin checks on all writes · per-IP/per-user rate limits · strict Content-Security-Policy and security headers · upload type detection by file bytes, size limits, metadata stripping · database CHECK and unique constraints as a second line of defence.
src/
app/ pages (player, staff) and API routes
components/ ui.tsx (shared), player/, staff/
db/ schema.ts, client.ts (PostgreSQL or embedded PGlite)
lib/contracts.ts shared API types and zod schemas
lib/server/ engine, rounds, players, classrooms, items, storage, auth, http, rate-limit
drizzle/ SQL migrations
content/seed/ starter content library (items.json) — media in public/media/items/
scripts/ migrate, seed, validate-content
tests/ unit, integration (API against a real Postgres engine), e2e (Playwright)
docs/ API.md, DEPLOY.md
See docs/DEPLOY.md — Vercel + Neon, or Docker on any server.