A static web app for exploring FIRST Robotics Competition (FRC) district history, event patterns, and championship streaks.
- Event Twins - Find teams that attended the same two district events
- Championship History - View district championship rankings, records, and Worlds advancement
- District Explorer - Browse all FRC districts across all available years (2009-present)
- SvelteKit with static adapter
- Tailwind CSS (dark theme)
- Vitest for testing
- Data from The Blue Alliance API
- Node.js (v18 or later)
- A TBA API key from The Blue Alliance
-
Clone the repository:
git clone https://github.com/your-username/FRCDistNav.git cd FRCDistNav -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:5173 in your browser
The app comes with sample data for Michigan 2024. To fetch complete data from The Blue Alliance:
$env:TBA_API_KEY="your_api_key_here"; npm run fetch-dataset TBA_API_KEY=your_api_key_here && npm run fetch-dataTBA_API_KEY=your_api_key_here npm run fetch-dataThis will download data for all districts and years, which may take several minutes.
After fetching new data, commit and push the JSON files:
git add static/data/
git commit -m "chore: update FRC data from TBA"
git push| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run preview |
Preview production build |
npm run test |
Run tests in watch mode |
npm run test:run |
Run tests once |
npm run fetch-data |
Fetch data from TBA API |
Build the static site:
npm run buildThe output in build/ can be deployed to any static hosting service:
- GitHub Pages
- Vercel
- Netlify
- Cloudflare Pages
MIT