尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A static site for tracking NYC Premodern League standings and player statistics, built with Astro.
Before deploying or previewing the site, you must generate all data files. Run these commands in order:
Scrape match and standings data from a specific tournament:
npm run scrape <tournament-id>
Example:
npm run scrape 384681
Aggregate standings across tournaments for each league:
npm run league
This reads from leagues.yml and generates league standings files in output/league/.
Calculate individual player statistics and head-to-head records:
npm run player-stats
This generates player stat files in output/players/ with per-league breakdowns and head-to-head matchup data.
Build the static site with all generated data:
npm run build
# Scrape latest tournaments (if needed)
npm run scrape 384681
npm run scrape 382756
# Generate all stats
npm run league
npm run player-stats
# Build the site
npm run build
# Preview locally (optional)
npm run preview
| Command | Action |
|---|---|
npm install | Install dependencies |
npm run dev | Start local dev server at localhost:4321 |
npm run build | Build production site to ./dist/ |
npm run preview | Preview your build locally before deploying |
npm run scrape <id> | Scrape tournament data by ID |
npm run league | Generate league standings from all tournaments |
npm run player-stats | Generate individual player stats and head-to-head records |
npm run sync-league | Sync latest league data (scrape + league + player-stats) |
npm test | Run tests |
npm run format | Format code with Prettier |
npm run format:check | Check code formatting without modifying files |
/
├── output/ # Generated data (not in git)
│ ├── tournament_*/ # Scraped tournament data
│ ├── league/ # League standings JSON files
│ └── players/ # Player stats JSON files
├── src/
│ ├── components/ # Reusable Astro components
│ │ ├── Leaderboard.astro
│ │ ├── HeadToHead.astro
│ │ ├── PlayerLeagueStats.astro
│ │ └── ...
│ ├── pages/ # Routes
│ │ ├── index.astro # Homepage (newest league)
│ │ ├── league/
│ │ │ └── [slug].astro # Dynamic league pages
│ │ └── player/
│ │ └── [username].astro # Dynamic player pages
│ ├── utils/ # Utility functions
│ │ ├── data.ts # Data loading utilities
│ │ ├── playerData.ts # Player stats calculations
│ │ └── helpers.ts # Helper functions
│ ├── types.ts # TypeScript type definitions
│ ├── scraper.ts # Tournament data scraper
│ ├── league-aggregator.ts # League standings generator
│ └── player-stats-generator.ts # Player stats generator
├── tests/ # Jest tests
├── leagues.yml # League configuration
└── package.json
Edit leagues.yml to configure leagues and their tournaments:
leagues:
- name: Q4 2025
tournaments:
- 384681
- 382756
- name: Q3 2025
tournaments:
- 380585
- 377629
When a new weekly tournament finishes, follow these steps:
Add the tournament ID to leagues.yml:
leagues:
- name: Q4 2025
tournaments:
- 388334 # ← Add new tournament ID here
- 384681
- 382756
Scrape the tournament data:
npm run scrape 388334
Rebuild all data and the site:
npm run rebuild-all
This command runs:
npm run league - Regenerates all league standingsnpm run player-stats - Regenerates all player statsnpm run build - Rebuilds the static siteVerify locally (optional):
npm run preview
Commit and deploy:
git add .
git commit -m "Add tournament 388334 to Q4 2025"
git push
The site is deployed on Vercel and automatically rebuilds when changes are pushed to GitHub.
Before deploying, ensure all data is up-to-date:
npm run league && npm run player-stats && npm run build
Run the test suite:
npm test
Tests include: