Single-page site for Open Frontier Labs: open infrastructure for collective frontier intelligence. Static HTML + Tailwind CSS v4 on Cloudflare Workers Static Assets, plus a small Worker (worker/) and a D1 database (ofl-waitlist, schema in migrations/) for GitHub sign-up, the waitlist questionnaire, the contributor workspace (/console) and the Operator Console (/admin). /contributors is built from GitHub at build time: commit authors, the compute ledger and CREDITS.md.
make setup # bun install
make migrate # apply D1 migrations to the local database
make dev # build, then wrangler dev with local D1 (secrets in .dev.vars)
make check # build, typecheck, lint, tests
make release # build, apply remote D1 migrations, deploy Worker (broker token), and upload Sentry sourcemaps when ~/.config/ofl/sentry.env exists
Secrets (wrangler secret put): GITHUB_CLIENT_SECRET, SESSION_SECRET, SWARM_INGEST_TOKEN, SENTRY_DSN, SENTRY_TEST_KEY; GITHUB_CLIENT_ID goes in [vars]. Until both GitHub values exist, /auth/github answers 503. Local .dev.vars needs SESSION_SECRET and APP_ORIGIN=http://localhost:<port>. Operators are active admins of the OpenFrontierLabs org, or the logins in ADMIN_GITHUB_LOGINS.
Server-side Worker instrumentation only (@sentry/cloudflare withSentry in worker/index.ts, configured in worker/sentry.ts, with compatibility_flags = ["nodejs_compat"] and upload_source_maps = true in wrangler.toml). No browser/client-side script is loaded, and the script-src 'none' CSP in public/_headers and worker/html.ts is unchanged. The shared footer (src/partials/footer.html) displays "Error monitoring sponsored by Sentry" linking to https://sentry.io.
- Reported: uncaught Worker exceptions and sampled request traces (
tracesSampleRate: 0.1whenSENTRY_DSNis set,0when unset;environment: "production";release= git short SHA injected via--var SENTRY_RELEASE:<sha>). - Source maps (
make release):scripts/release.tsreads upload-only Sentry credentials from~/.config/ofl/sentry.envon the build host by path only (SENTRY_AUTH_TOKEN, plus optionalSENTRY_ORGdefaulting toopen-frontier-labs,SENTRY_PROJECT_WEBSITE/SENTRY_PROJECTdefaulting towebsite, andSENTRY_URLdefaulting tohttps://sentry.io/). On fleet builds, sync that file by path (heavy-build-route --release --needs-path ~/.config/ofl/sentry.env). When present,scripts/release.tsdry-run bundles to.wrangler/sentry-dist, injects debug IDs via@sentry/cli, deploys that--no-bundleoutput, creates/uploads/finalizes the Sentry release, and cleans up.wrangler/sentry-dist. If~/.config/ofl/sentry.envorSENTRY_AUTH_TOKENis absent, sourcemap upload is skipped with a warning and the Worker deploy still runs. - PII policy and scrubbing (
worker/sentry.ts):dataCollectionsetsuserInfo: false,cookies: false,httpBodies: [],httpHeaders.response: false,urlQueryParams: false,databaseQueryData: false, and denies request headersauthorization,cookie,set-cookie,cf-connecting-ip,cf-connecting-ipv6,cf-pseudo-ipv4,true-client-ip,x-forwarded-for,x-real-ip,x-client-ip,x-sentry-test,forwarded,via, andreferer.httpServerIntegrationsetsmaxRequestBodySize: "none".beforeSend(scrubEvent) deletesevent.userandrequest.data/cookies/env/query_string, drops those denied headers plusx-api-keyandproxy-authorization, replaces email addresses with[email], and filters keys matchingemail|cookie|auth|token|secret|password|passwd|pwd|jwt|bearer|session|sid|body|ip_address|client_ip|remote_addras[Filtered](deleting matchingcontextskeys; nested object traversal stops at depth 4, so keys in deeper nested objects remain unfiltered).beforeSendSpan(scrubSpan) dropsclient.address,network.peer.address,url.query,user.email,user.id, andhttp.request.header.<denied>attributes and redacts email strings in span attributes. In Sentry, thewebsiteproject setting Prevent Storing of IP Addresses is enabled. - Secrets, rotation, and disabling: set or rotate
SENTRY_DSNandSENTRY_TEST_KEYwithwrangler secret put(names only; never commit or log values). RemoveSENTRY_DSN(wrangler secret delete SENTRY_DSN) to disable Sentry reporting (enabled: false) and tracing (tracesSampleRate: 0); removeSENTRY_TEST_KEY(wrangler secret delete SENTRY_TEST_KEY) to disable the test probe. - Verification probe:
/__sentry-test(inrun_worker_first) returns the normal 404 page unlessGET /__sentry-testcarries anx-sentry-testheader matchingSENTRY_TEST_KEY(constant-time SHA-256 comparison viasecretMatches), in which case it throwsError("ofl sentry test"). Non-GET requests also return 404.
Brand tokens (src/styles.css): Frontier Green #66E36E, Compute Green #1B7F46, Graphite #0B0E0D, Silver Gray #6B7177 (decor only; body text uses the lighter #A1A8AD for AA contrast), Soft White #F5F7F6. Font: Inter variable, self-hosted.
Commits need a DCO sign-off (git commit -s).
Licence: Apache-2.0.