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,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
A Magic: The Gathering collection manager that tracks where each copy physically
lives — which binder, which box, which deck — so a digital inventory mirrors
reality, and answers "where is this card, among the people I know?"
No marketplace: nothing can be listed, bought or sold here, and a card links out
to TCGplayer when you want one. Prices are a display-only Scryfall estimate,
reported per finish, saying what could not be priced rather than counting it as
zero.檢視完整 README ↗A Magic: The Gathering collection manager that tracks where each copy physically lives — which binder, which box, which deck — so a digital inventory mirrors reality, and answers "where is this card, among the people I know?"
No marketplace: nothing can be listed, bought or sold here, and a card links out to TCGplayer when you want one. Prices are a display-only Scryfall estimate, reported per finish, saying what could not be priced rather than counting it as zero.
Status: a working product for a single playgroup, used only by its author so far. Collection and location management, peer-to-peer trading with counter-offers and an atomic transfer on acceptance, decks-as-locations, friends and public profiles, CSV / decklist import, a want list matched against friends' trade binders, a deck playtester, Scryfall-syntax card search, and an Expo mobile app with a live card scanner.
Where the details live — this file is only the front door.
CLAUDE.md: the directory map, data model, hard constraints and commands. Read it before changing anything..claude/rules/: area-specific rules (migrations, app router, data access, testing, mobile)..claude/ORGANIZATION.md: how the agent team works.docs/: feature guides, handoff logs and briefs.archive/: pre-rebuild planning, kept as evidence rather than direction.
| Concern | Choice |
|---|---|
| Web | Next.js 16 (App Router), React 19, TypeScript, Tailwind v4 |
| Database / auth | Supabase — Postgres + Supabase Auth, RLS everywhere |
| Card data | Scryfall: bulk export synced into cards; live search through Scryfall's API |
| Hosting | Vercel free tier; CI on GitHub Actions |
| Mobile | Expo + React Native, npm workspaces (apps/mobile, packages/*) |
Free tier is enough. From Project Settings → API, copy the project URL, the anon key, and the service role key.
cp .env.example .env.local
# fill in NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY,
# and SUPABASE_SERVICE_ROLE_KEY
SUPABASE_SERVICE_ROLE_KEY bypasses row-level security. It is used only by
scripts outside the Next build (the Scryfall sync and the mobile catalog
publisher) and must never reach the browser.
Optional: SIGNUP_INVITE_CODE requires an invite code to sign up (server-only);
SCRYFALL_SEARCH_CONTACT is put in the User-Agent Scryfall requires for search
requests. See .env.example.
With the Supabase CLI:
supabase link --project-ref <your-project-ref>
supabase db push
Or paste the files in supabase/migrations/ into the SQL editor in order.
Name suggestions, collection views and add-to-collection all read the local
cards table, so it must be filled first. (Submitted searches on /search run
on Scryfall's API instead, so they need no local data.)
npm run sync:scryfall # ~500MB download, several minutes
npm run sync:scryfall -- --limit 5000 # quick smoke test instead
npm install
npm run dev
npm run dev # dev server
npm run build # production build
npm run lint # eslint
npm run typecheck # tsc --noEmit
npm test # unit tests over the pure logic in src/lib/**
npm run test:db # apply migrations to a throwaway Postgres and assert on them
Before calling a change done: npm run lint && npm run typecheck && npm test.
npm run test:db needs a reachable Postgres (PGHOST/PGPORT/PGUSER, or
PGURL) and Postgres 15 or newer. It stubs auth.users and auth.uid() so the
schema — including RLS isolation between two users — can be exercised without
booting Supabase. CI runs it against a postgres:16 service container.
The full command list, including the mobile workspaces, is in CLAUDE.md.
scripts/sync-scryfall.ts pulls Scryfall's default_cards bulk export and
upserts every printing into cards. It is a scheduled job, not a one-off script:
updated_at against
the last successful run and skips the download. --force overrides.public.scryfall_sync_runs.It runs daily via .github/workflows/scryfall-sync.yml, which needs
NEXT_PUBLIC_SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY as repository secrets.
The same workflow refreshes the Oracle-card table and publishes the mobile
catalog.
Scryfall is a free service run on donations. Keep the sync at daily or slower —
the bulk data is only regenerated about that often — and keep search traffic
inside the shared limiter (claim_scryfall_slot, migration 48).
Every user-owned table has row-level security, but RLS is the floor, not the
whole filter: since a friend's tradable binder is readable by design, queries
that ask "what do I own" must also filter on the owner explicitly, and removing
one of those filters is a cross-user data leak. Nothing under src/, apps/ or
packages/ may hold a database credential stronger than the signed-in user's.
Trade transfers happen inside the public.accept_trade SECURITY DEFINER
function, never through a loosened policy, and ownership_history rejects
UPDATE and DELETE at the trigger level. The reasoning and the full list of
hard constraints are in CLAUDE.md.