# Jobley volunteer board Website: https://jobley.ai [jobley.ai](https://jobley.ai/) lists open, unpaid volunteer opportunities. Each role has an email link to volunteer. No application or résumé is collected for volunteer roles. [Board moderator access](https://jobley.ai/moderators/) is separate. The separate [career directory](https://jobley.ai/careers/) uses all 848 civilian detailed titles from the BLS 2018 Standard Occupational Classification. Its 22 groups are guides to volunteering, not staffing commitments. ## Editing and testing - Edit `tools/atom-volunteer-roles.py` to update the roster, and `tools/build-site.py` for site copy and metadata. - `/volunteer/` and `/careers/` load `assets/volunteer.css` after `assets/site.css`, under a versioned URL. When you change it, bump `VOLUNTEER_CSS_V` in `tools/build-site.py` and the matching `?v=` in both pages so browsers fetch the new file; other pages are unaffected. - To refresh source titles, save the official BLS major-groups HTML and run `python3 tools/import-soc.py path/to/major_groups.htm`. The build uses the committed source snapshot, not a network request. Edit `tools/career-families.py` for search aliases, family labels, examples and community routes. - Run `python3 tools/build-site.py --community-pages` with Python 3.12+ to regenerate only the volunteer and career pages, then `npm test` with Node 22.5+. - Run `DB_FILE=:memory: npm run dev` locally. Run `node tools/check-site.cjs /tmp/jobley-proof` with Playwright installed to check the public pages at mobile/desktop widths and capture screenshots. - Cloudflare Pages builds with `bash tools/cf-build.sh`; `dist/` is its output. `_redirects` covers retired web paths and `_routes.json` bounds the Functions routes. ## Compatibility and private records The old public job feed returns an empty list for compatibility with older clients. Old individual job APIs, candidate intake, and job creation/publication are closed. No database migration or data deletion is required for this change. Existing records remain private, and the authenticated moderator routes and permissions remain in place. Production Pages bindings: `DB` (D1), `JOBLEY_PASSKEY_SETUP_SECRET` (at least 32 characters), `TURNSTILE_SECRET`, `TURNSTILE_SITE_KEY`, and `IP_SALT` (the rate-limit salt; it falls back to the retired `ADMIN_TOKEN`). Public installer and feed routes are retired without deleting stored release artifacts. ## Passkeys only The curator and moderators sign in with passkeys (`src/passkeys.js`, `@simplewebauthn/server`, relying party `jobley.ai`). No passwords, pasted tokens, email links or codes; recovery is a second passkey. `ADMIN_TOKEN` and the old `jl_mod_…` moderator tokens no longer sign anyone in. - The curator's first passkey: `curl -X POST -H "x-setup-secret: $JOBLEY_PASSKEY_SETUP_SECRET" https://jobley.ai/api/passkeys/setup` returns a one-time link (15 minutes). Open Jobley, choose Add a passkey and paste it. Without the right secret the endpoint answers 404. - Moderators: approving an application returns a one-time setup link instead of a token. `POST /api/admin/moderators/:id/setup-link` makes a new one (for moderators approved before passkeys). - Signed in: `GET /api/admin/passkeys`, `POST /api/admin/passkeys/options` then `POST /api/admin/passkeys` to add another, `DELETE /api/admin/passkeys/:id` (never the last), `POST /api/admin/sign-out`. - Apple app-site association (`webcredentials`) is served at `/.well-known/apple-app-site-association` by `functions/_middleware.js`. - Migration `migrations/0002_passkeys.sql`: `npx wrangler d1 migrations apply jobley-db --remote`.