尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Fantasy football auction and snake draft helper built with Next.js and PocketBase
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
A live draft-day command center for auction, snake, or hybrid fantasy football drafts.
Features
Built With
Prerequisites
Installation
PocketBase Setup
Usage
Architecture
Data Workflows
Testing
Deployment
Roadmap
Contributing
License
Contact
Acknowledgments
Fantasy Football Draft Helper is a multi-user draft room built for a 12-team, half-PPR league. It supports a $200 auction across seven paid roster slots, followed by snake rounds, while tracking budgets, rosters, nominations, values, and draft history in real time.檢視完整 README ↗Fantasy Football Draft Helper is a multi-user draft room built for a 12-team, half-PPR league. It supports a $200 auction across seven paid roster slots, followed by snake rounds, while tracking budgets, rosters, nominations, values, and draft history in real time.
Unlike generic draft tools, projected prices are trained on the league's own official auction history from 2018–2025. The app also includes deterministic AI mock drafts, player usage and scoring analysis, tier-cliff alerts, and live target-price estimates.
Run the Next.js frontend and PocketBase backend locally.
Clone the repository.
git clone https://github.com/nicholas-fierro/fantasy-auction-app.git
cd fantasy-auction-app
Install packages.
npm install
Create local environment configuration.
cp .env.example .env
Update .env if PocketBase does not use the default local address.
NEXT_PUBLIC_POCKETBASE_URL=http://127.0.0.1:8090
POCKETBASE_URL=http://127.0.0.1:8090
FANTASYPROS_API_KEY=
FANTASYPROS_API_KEY is optional for local development. It enables the FantasyPros comparison panel.
Start the development server.
npm run dev
Open http://localhost:3000.
PocketBase is required for the app to run. This project expects a local instance at ~/Pocketbase/main by default.
cd ~/Pocketbase/main
./pocketbase serve
PocketBase will be available at http://127.0.0.1:8090.
Canonical migrations and hooks live in this repository:
pb_migrations/ contains collection schemas, indexes, and API rules.pb_hooks/ contains server-side draft, permission, admin, and rate-limit behavior.Copy migrations and hooks into the matching directories under ~/Pocketbase/main, then restart PocketBase. PocketBase applies migrations at startup and caches its schema in memory.
[!IMPORTANT] Any schema-changing migration must also be reflected in
pb_migrations/1784300000_baseline_full.js. Integration tests compare an instance built from the baseline with one built from the incremental migration chain.
Commissioners can refresh draft data from the import view:
Create an official auction and invite league members into the shared draft room. Nominations and picks stream to connected clients through PocketBase realtime subscriptions.
Budget guardrails reserve at least $1 for every remaining paid roster slot. Completed auctions are immutable. Undo only removes the latest pick from an active auction and requires confirmation.
Create a mock auction with simulation enabled. When the auction includes the user's team, the local AI engine handles opponent nominations, auction bidding, and snake-round selections using per-team profiles.
Data scripts live in scripts/ and document their supported flags in each file header.
set -a
source .env
set +a
npx tsx scripts/<name>.ts
Standalone scripts do not load .env automatically. Player-stat bootstrap jobs are dry-run-first: sync IDs, repair reviewed identities, sync IDs again, then import game logs. Review every generated report before rerunning without --dry-run.
The browser talks directly to PocketBase through the SDK singleton in src/lib/pb-client.ts. Routine reads and writes do not pass through a Next.js server-side data layer.
src/hooks/ expose reads and mutations to components.pb_auth cookie for middleware and server actions. Logout and unauthorized responses clear both stores.NavigationContext switches views inside a single-page application shell rather than route-per-view navigation.Key domain modules:
src/lib/roster.ts — roster construction, league defaults, and max-bid mathsrc/lib/value-model.ts — historical comparable-player model for projected valuessrc/lib/estimated-value.ts — live target-price estimates using shared comparable logicsrc/lib/draft-insights.ts — tier cliffs, pace, recency, and budget pressuresrc/lib/mock-draft/ — deterministic auction and snake simulation enginesrc/lib/fantasy-scoring.ts — fantasy scoring derived from raw game-log inputsRead ARCHITECTURE_DECISIONS.md before changing data flow, authentication, authorization, or the value model.
More detail:
Project data comes from three categories:
Only official auction prices contribute to historical value estimates. Player game logs join through canonical gsis_id values, never player names.
See docs/data-sources.md for freshness, ownership, and join-key details.
Run full validation before submitting changes:
npm test
npm run test:integration
npm run build
npm run lint
Additional commands:
npm run test:watch
npx vitest run src/lib/mock-draft/mock-draft.test.ts
npx vitest run src/lib/mock-draft/mock-draft.test.ts -t "test name"
npm run build is the best full type-check. Integration tests start a temporary PocketBase instance and verify that the baseline schema matches the incremental migration chain.
The Next.js app is designed for Vercel. PocketBase is deployed separately behind HTTPS.
Production requires HTTPS values for both PocketBase environment variables:
NEXT_PUBLIC_POCKETBASE_URL=https://pocketbase.example.com
POCKETBASE_URL=https://pocketbase.example.com
Production infrastructure and migration procedures are intentionally kept outside this public repository.
No open-source license has been added yet. Copyright remains with the repository owner unless a license is added later.
Nicholas Fierro — @nicholas-fierro