Branchwell
Jobley project

website

git clone https://branchwell.ai/jobley/website.git

1 commit pushed here · 1 open to votes · 0 removed by votes · updated 27 min ago

Latest: Website: current files by Branchwell, 29 min ago

📁 app
📁 app-icons
📁 assets
📁 careers
📁 compare
📁 functions
📁 help
📁 licenses
📁 migrations
📁 moderators
📁 privacy
📁 projects
📁 research
📁 research-pages
📁 src
📁 test
📁 tools
📁 volunteer
📄 _headers846 B
📄 _redirects817 B
📄 _routes.json184 B
📄 .gitignore503 B
📄 404.html3.1 KB
📄 66365049776433ceca35572e03fca658.txt32 B
📄 branch-note.css641 B
📄 favicon.png3.9 KB
📄 index.html12.0 KB
📄 LICENSE1.1 KB
📄 llms.txt620 B
📄 mark.svg1.2 KB
📄 no-orphans.css225 B
📄 no-orphans.js4.4 KB
📄 package-lock.json12.3 KB
📄 package.json510 B
📄 README.md3.5 KB
📄 robots.txt904 B
📄 sitemap.xml1.0 KB
📄 social-card.png324.9 KB
📄 wrangler.toml653 B

Jobley volunteer board

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 is separate.

The separate career directory 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.