Web app for the WhatTheStack 2026 conference. Public-facing site, CFP system, reviewer workflow, admin tools, ticketing, and content (blog/agenda/speakers).
Live: wts.sh
- SolidStart (Solid.js meta-framework) on Nitro
- PocketBase backend (auth, data, hooks, migrations)
- Tailwind CSS 4 + DaisyUI
- Velite for MDX content (blog, pages)
- TypeScript
- Node
>= 22, pnpm
- Marketing pages (home, about, agenda, speakers, sessions, FAQ, sponsors, partnerships)
- Blog (MDX via Velite)
- CFP submission flow with reviewer/admin dashboards
- Weighted committee scoring with per-reviewer weight votes
- Admin: user management, proposal leaderboard, weight averages
- Ticketing integrations (Tito, HiEvents)
- Newsletter via Listmonk
- OG image generation (Satori)
- Trip cost calculator
# 1. Install deps
pnpm install
# 2. Download PocketBase binary
pnpm pocketbase:download
# 3. Copy env template (see "Environment" below)
cp .env .env.local # or create .env manually
# 4. Start dev (runs PocketBase + Vite concurrently)
pnpm devThen:
- App: http://localhost:3000
- PocketBase admin UI: http://localhost:8090/_/
First launch auto-creates the superuser from POCKETBASE_SUPERUSER_EMAIL / POCKETBASE_SUPERUSER_PASSWORD.
| Script | What it does |
|---|---|
pnpm dev |
Full dev: PocketBase + Velite watch + Vite |
pnpm start:dev |
App only (Velite watch + Vite), no PocketBase |
pnpm build |
Production build (Velite + Vite) |
pnpm start |
Run built app |
pnpm pocketbase:download |
Fetch PocketBase binary into pocketbase/ |
pnpm pocketbase:start |
Start local PocketBase only |
pnpm pocketbase:createsuperuser |
Manually create superuser |
pnpm docker:up / docker:down |
Docker Compose stack |
Required in .env (or .env.local):
# PocketBase
POCKETBASE_URL="http://127.0.0.1:8090" # server admin API (local)
PUBLIC_POCKETBASE_URL="http://127.0.0.1:8090" # browser + SSR file URLs (default if unset)
POCKETBASE_SUPERUSER_EMAIL="admin@example.com"
POCKETBASE_SUPERUSER_PASSWORD="supersecret"
# Canonical site origin
PUBLIC_SITE_URL="https://wts.sh"
# Optional comma-separated additional browser Origins for the MCP endpoint
MCP_ALLOWED_ORIGINS="https://trusted-client.example"Production (Coolify / Docker): set the public PocketBase hostname for anything rendered in HTML or loaded by the browser. Keep POCKETBASE_URL as the internal service URL for server-side admin API calls only. Native and server MCP clients do not send an Origin; browser clients must use the canonical PUBLIC_SITE_URL Origin or an Origin listed in the server-only MCP_ALLOWED_ORIGINS value.
PUBLIC_POCKETBASE_URL="https://pb-2026.wts.sh" # canonical — speaker avatars, file URLs
POCKETBASE_URL="http://pocketbase:8090" # webapp → pocketbase on Docker networkOptional aliases for local dev or older compose files: POCKETBASE_PUBLIC_URL, VITE_POCKETBASE_URL (same value as PUBLIC_POCKETBASE_URL).
# Tito (tickets)
TITO_ACCOUNT="wts"
TITO_EVENT="conference-2026"
# HiEvents
HIEVENTS_API_URL="https://hievents.example.com"
HIEVENTS_API_KEY="" # optional alternative to email/password/account ID
HIEVENTS_EMAIL=""
HIEVENTS_PASSWORD=""
HIEVENTS_EVENT_ID=1
HIEVENTS_ACCOUNT_ID=1
HIEVENTS_REQUEST_TIMEOUT_MS=10000
HIEVENTS_MAX_RETRIES=2
HIEVENTS_RETRY_BASE_MS=200
# Gamification (server-only; required for Mission-code operations)
GAMIFICATION_CODE_PEPPER="replace-with-a-random-high-entropy-secret"
# Listmonk (newsletter)
LISTMONK_USERNAME="bot"
LISTMONK_API_TOKEN=""
LISTMONK_URL="https://listmonk.wts.sh"
LISTMONK_LIST_ID=2
VITE_LISTMONK_LIST_ID=2Hooks run inside the PocketBase container. Pass variables through docker-compose.yml (or Coolify env on the pocketbase service).
Outbound email — CFP notifications and the daily report use PocketBase Admin → Settings → Mail (e.app.newMailClient()). Configure SMTP there (e.g. Resend). RESEND_API_KEY in Coolify is not read by hooks unless you wire SMTP in the admin UI.
Listmonk user sync (listmonk_sync.pb.js, on new users record):
| Variable | Purpose |
|---|---|
LISTMONK_USERNAME |
Basic auth user (required) |
LISTMONK_API_TOKEN |
API token (preferred) |
LISTMONK_PASSWORD |
Used as token if LISTMONK_API_TOKEN is unset (Coolify naming) |
LISTMONK_URL |
Listmonk base URL (default https://listmonk.wts.sh) |
LISTMONK_LIST_ID |
Subscriber list ID (default 2) |
Daily CFP report (daily_report.pb.js, cron 08:00 UTC):
| Variable | Purpose |
|---|---|
CFP_DAILY_REPORT_RECIPIENT |
To address(es); comma-separated for multiple (default darko@wts.rocks) |
CFP_DAILY_REPORT_FORCE |
Set to true to send even when there were no new users/submissions in 24h |
HiEvents vars (HIEVENTS_*) are passed to both the web app evidence service and PocketBase ticket-report hooks. GAMIFICATION_CODE_PEPPER is passed only to the web app; never expose it through a PUBLIC_ or VITE_ variable.
Admins create one-time MCP credentials at /admin/mcp. Select only the scopes the client needs:
programme:readreads private Session and Speaker programme data.cfp:readreads private CFP Submissions and review context. Aggregate programme snapshots require both private read scopes.partners:readlists private Partner summaries and reads a Partner Note only after a human approves its current version for agent visibility.partners:draft:writecreates and patches drafts. It cannot upload logos, publish, delete, approve notes, or modify Published Partners.
Every current admin can inspect safe team-wide token metadata and recent Admin Actions. Any current admin can revoke an active token with a required reason; token material remains visible only in the creation response.
The authenticated Streamable HTTP endpoint is /api/mcp. Native clients send the generated credential as a bearer token. Browser clients must also use an allowed Origin as described under Environment.
Keep the one-time credential in an environment variable, then add the remote server to opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"wts-admin": {
"type": "remote",
"url": "http://localhost:3000/api/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer {env:WTS_MCP_TOKEN}"
}
}
}
}Start OpenCode with WTS_MCP_TOKEN set in its environment. Use the deployed https://wts.sh/api/mcp URL outside local development.
Inspector's CLI can verify discovery or call a tool directly:
export WTS_MCP_TOKEN='wts_mcp_...'
npx -y @modelcontextprotocol/inspector --cli \
http://localhost:3000/api/mcp \
--transport http \
--method tools/list \
--header "Authorization: Bearer $WTS_MCP_TOKEN"- Call
list_partnersbefore creating a record. Exact normalized names and canonical URLs are blocked; similar names and shared hosts produce warnings. - Call
create_partner_draftwith allowlisted metadata and a uniqueoperation_id. Retrying the exact input with the same ID safely replays the result. - Read the current
expected_updated_atfromget_partner, then pass it with a newoperation_idand an allowlistedpatchtoupdate_partner_draft. - If a write is pending or failed, retry the exact input and operation ID. Use a new operation ID whenever input changes.
- A human admin reviews the draft, uploads the official logo, optionally approves the current Partner Note for agent visibility, and publishes it.
Partner tools return JSON structured content plus a text fallback. Safe errors include a code, retry guidance, and the current record where relevant. MCP mutations appear in Admin Action activity without storing Partner Note text or token secrets.
Two-tier per PocketBase guidance:
Client-tier — browser SPA talks directly to PocketBase Web API via pocketbase-js SDK. Collection API rules enforce access.
Server-tier — privileged server actions use superuser credentials for operations that can't be gated with API rules (admin reads, cross-collection aggregations, webhooks).
Key files:
src/lib/pocketbase-client-service.ts— client SDK wrappersrc/lib/pocketbase-admin-service.ts— server superuser servicesrc/lib/auth-service.ts— client auth storesrc/lib/admin-actions.ts— server actions for admin opssrc/lib/reviewer-actions.ts— server actions for reviewerssrc/routes/api/admin.tsx— admin API routepocketbase/pb_hooks/— server-side PB hooks (JS)pocketbase/pb_migrations/— schema migrations
See POCKETBASE_SETUP.md for PocketBase setup details and PB_TYPES_GUIDE.md for regenerating types after schema changes.
MDX posts live under content folders picked up by Velite. Velite emits JSON consumed by routes. Run pnpm dev (which runs velite --watch) while authoring — output lands in .velite/.
pnpm build
pnpm startThe build produces a Nitro Node server. Open http://localhost:3000.
pnpm docker:updocker-compose.yml spins up the web app + PocketBase with persistent volume for pb_data. Deploys to Coolify. Superuser auto-provisions on first run from env.
Drain every web replica running the 2cce0be baseline before converting persisted MCP scopes, then deploy the PocketBase image and its migrations before or together with the new web image. Migration 1787000005_migrate_mcp_token_scopes.js expands persisted program:read grants before the new runtime scope allowlist is used; authenticated MCP also durably expands a legacy grant on first use as a web-first rollout safeguard. Do not run baseline and new web replicas concurrently during that conversion, and do not treat the safeguard as a substitute for deploying the remaining Partner, Admin Action, and token-governance migrations and hooks.
The public MCP burst, process-wide rate, and concurrency counters are in-memory per web process. Keep /api/mcp/public on one serving web replica unless the reverse proxy or another shared layer enforces equivalent aggregate limits across replicas.
The September gamification award, redemption, code-operation, score-schedule, and rate-limit paths coordinate through PocketBase-backed locks and uniqueness constraints. Multiple webapp replicas must share the same PocketBase database and the same GAMIFICATION_CODE_PEPPER; do not split these services across independent PocketBase databases.
- user — default, can submit CFP and buy tickets
- reviewer — rates proposals, votes on weights
- applicant — linked speaker profile for CFP submissions
- admin — full access to admin routes (
/admin/*)
See LICENSE.md.