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