尚未检测到更新。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