Rankings and statistics for Philippine speedcubers, built from the official WCA results export. One Go binary serves the API and static frontends; a worker syncs WCA data and runs background jobs.
| Path | What it is |
|---|---|
apps/web |
Public site. TanStack Start, prerendered to static HTML, then hydrated. |
apps/admin |
Staff admin. TanStack Router SPA under /admin. |
apps/api |
Go API and worker, SQLite. See apps/api/README.md. |
packages/shared |
Regions, events, API types, and formatting shared by the frontends. |
seed/ |
pca.sqlite3.gz: small development seed (in git). full/: complete seed (ignored). |
Needs Node 22+, pnpm 11, and Go 1.26. No Docker required.
pnpm install
pnpm dev- Site: http://localhost:3000
- Admin: http://localhost:3001/admin/ (
admin/admin) - API docs: http://localhost:8000/api/docs
The first run creates apps/api/data/pca.sqlite3 from seed/pca.sqlite3.gz, which includes every competition, result, and ranking without scrambles, names, or emails. To use the full seed instead, set SEED_DIR=seed/full and run pnpm db:reset.
Settings load from .env (see .env.example), then your shell environment.
| Command | What it does |
|---|---|
pnpm dev [api worker web admin] |
Run all services, or only the named ones, with hot reload. |
pnpm start / pnpm serve |
Build (or skip build) and serve everything from Go on :8000. |
pnpm db:reset |
Recreate the local database from the seed. |
pnpm typecheck |
Check all TypeScript packages. |
- Deployment — Dokploy, Netlify, Docker Compose, environment variables, and database seeding.
- Adding an app — Mounting a new frontend, Go API module, or upstream service.
- Analytics — Public GA4 opt-in, staff analytics workbench, and local verification.
- Backend & worker — Go CLI commands, caching, SQLite storage, and backups.
Copyright (C) 2026 Philippine Cubers Association.
Licensed under the GNU Affero General Public License v3.0. If you run a modified version as a public service, you must publish its source code under the same license.
Competition results in seed/ and those synced by the worker come from the World Cube Association and are subject to its terms, not this license.