OhMyGame
OhMyGame is the open-source studio for making games with AI. Design, build, playtest, and publish games in one app, with your own model keys.
NYC Premodern Magic: The Gathering league standings and statistics
GamesTypeScript · AstroGitHub @wyattdangerOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full 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: