Skip to content

Demo site plan

Live: Phase 1

Upload and feedback are live at wfheaven.app since 2026-12-05. See Demo site. Phases 2 and 3 below are still a plan. Each phase is one pull request, and updates this page as it ships.

The demo is a small, invite-only site at wfheaven.app for 5 to 10 testers. A tester:

  1. Opens a personal invite link, such as wfheaven.app/?invite=CODE.
  2. Uploads a CV and gets Claude's remarks, clarifying questions, and a draft profile, as the CV prototype makes today.
  3. Reviews the profile, adds where they can work from, and enters an email address.
  4. Confirms the address from an email (double opt-in).
  5. Gets WFHeaven's daily picks, ranked for their profile.

Between steps 2 and 3, a follow-up chat answers Claude's questions and updates the profile (Phase 3).

Decisions: ADR 0011 (hosting on Cloudflare) and ADR 0012 (personal data). For testers, the privacy notice.

How it fits together

flowchart LR
    T[Tester's browser] -->|code, CV, sign-up| W[Cloudflare Worker at wfheaven.app]
    W -->|CV, once| A[Claude API]
    W -->|confirmation email| R[Resend]
    W <-->|codes, testers, profiles| D[(D1, EU)]
    G[Daily GitHub Actions run] <-->|profiles in, keyed hashes out| D
    G -->|one email per tester| R
    R --> T

The Worker serves static pages and these endpoints:

Endpoint Phase What it does
POST /api/access 1 Says whether the invite code in the link is valid, so the page shows the upload card. The code is in the body, not the address, so logs don't record it.
POST /api/draft 1 Checks Turnstile and the invite code, sends the CV to Claude, and returns the draft, remarks, and questions. Stores nothing but the code's upload count.
POST /api/chat 3 One message of the follow-up chat: the draft profile, the questions, the conversation, and the message in; the updated profile, a reply, the next question, and suggested answers out. Stores only a message count (ADR 0014).
POST /api/signup 2 Checks Turnstile and the code, saves the edited profile as a pending tester, and sends the confirmation email
POST /api/resend 2 Sends the confirmation email again, counted against the same code
GET /confirm and POST /api/confirm 2 The page the email links to, and its button, which turns a pending tester into an active one. Opening the page alone changes nothing, so mail scanners can't confirm.
GET /leave and POST /api/leave 2 The page the unsubscribe link opens, which deletes the tester and their data as it loads
POST /leave 2 The one-click unsubscribe that mail apps use (RFC 8058)

ADR 0013 explains the two-step confirm, the signed unsubscribe links, and why tokens go after #.

The prompt and the JSON schema move from profiler/cv_to_profile.py into one shared file, so the prototype and the Worker always ask Claude the same thing.

Abuse and cost protection

Every limit sits on the server. The free plans stop at their limits and don't bill, so the only cost that can grow is Anthropic's, and that has a spend limit.

Protection How
Invite codes One code per tester, 12 random characters, created by the maintainer with a script. D1 stores only the code's SHA-256 hash. Codes expire after 30 days.
CVs per code At most 3. The Worker counts the upload in D1 before it calls Claude, in one statement that fails when the count is reached, so two uploads at once can't go over.
CVs per day At most 30 across all codes, a backstop if a code leaks
Upload size 5 MB; PDF, .docx, or .txt only. Claude's answer is capped by max_tokens.
Bot check Turnstile on the upload and sign-up forms; the Worker checks every token with Cloudflare before it does anything else
Anthropic spend limit A separate workspace, wfheaven-demo, with its own API key and a monthly spend limit of USD 5, about 150 CVs. When it's reached, Claude refuses the call, and the site says the demo is paused.
Sign-up emails Only after a successful draft with the same code; at most 3 confirmation emails per code
Off switch A Worker variable, DEMO_OPEN, closes uploads and sign-ups without a deploy

Expected cost per month, at 10 testers: Cloudflare USD 0, Resend USD 0 (about 310 emails, against 3,000 a month and 100 a day on the free plan), GitHub Actions USD 0 for a public repository, and Anthropic about USD 1 for 30 CVs.

Email from the WFHeaven domain

Today, the daily email comes from Resend's test sender, which can only send to the account owner's address. Testers need a verified domain. The plan is to verify wfheaven.app itself and send from picks@wfheaven.app. Resend recommends a subdomain to keep the main domain's sending reputation separate; at 10 testers that's not worth a longer address.

Verify the domain in Resend

  1. In Resend, go to Domains, select Add domain, and enter wfheaven.app. As the region, choose Ireland (eu-west-1): it sets where email is sent from. Resend stores data in the US either way.
  2. Resend shows three DNS records. Select Sign in to Cloudflare to add them automatically, or add them by hand: in the Cloudflare dashboard, open wfheaven.app, go to DNS > Records, and select Add record for each one. Paste names without the domain.

    Type Name Value Notes
    MX send feedback-smtp.eu-west-1.amazonses.com, as Resend shows it Priority 10. Handles bounces.
    TXT send v=spf1 include:amazonses.com ~all SPF: lets Resend send for the domain
    TXT resend._domainkey The long p=... key that Resend shows DKIM: signs every email

    Copy the values from Resend, not from this table: they're specific to the account and region. Set every record to DNS only, not proxied.

  3. Add a DMARC record yourself: type TXT, name _dmarc, value v=DMARC1; p=none; rua=mailto:dmarc@wfheaven.app;. Start with p=none, and move to p=quarantine once the reports show that all mail passes.

  4. In Resend, select Verify DNS records. It usually takes minutes, and can take up to 72 hours.

The DMARC reports and privacy requests need addresses that receive mail. Cloudflare Email Routing forwards dmarc@wfheaven.app and privacy@wfheaven.app to the maintainer's own inbox for free. It adds its own MX records on wfheaven.app itself, which don't clash with the send records.

What changes in the email

  • From WFHeaven <picks@wfheaven.app>, with a Reply-To of privacy@wfheaven.app.
  • A footer that says why the tester gets the email, with an "Unsubscribe and delete my data" link.
  • The List-Unsubscribe and List-Unsubscribe-Post: List-Unsubscribe=One-Click headers, so mail apps show their own unsubscribe button.
  • Two new Resend API keys, both limited to sending from wfheaven.app: one for GitHub Actions, one for the Worker.

How the daily workflow changes

Before Phase 2, one run collected, ranked against profiles/gergely.yaml, emailed one address, and remembered the picks in the Actions cache. With testers, it collects once and ranks per tester, as the roadmap planned. Built in Phase 2, in daily/; see Daily collection:

flowchart LR
    D[(D1)] -->|active testers| L[Load and check profiles]
    L --> C[Collect once]
    C --> R1[Rank for tester 1]
    C --> R2[Rank for tester 2 ...]
    R1 --> E1[Email tester 1]
    R2 --> E2[Email tester 2 ...]
    E1 -->|keyed hashes| D
    E2 -->|keyed hashes| D
  1. Load testers. A new script reads the active testers from D1 with Cloudflare's D1 HTTP API, and checks each profile with the profile rules the ranker uses (profile_from_dict). A profile that fails is skipped and counted, not fatal. Standard library only.
  2. Collect once. One worldwide Himalayas query, plus one country= query for each distinct country chosen from the testers' can_work_from, as ADR 0008 does for one profile. ADR 0013 sets the rule: one country per tester first, then shared ones, up to 10. The log numbers the queries instead of naming the countries. Jobicy and Remote OK don't change. With up to 10 country queries of 10 pages, the run can make more than 100 Himalayas requests, so it switches to a free Himalayas API key (10,000 requests a day). Himalayas is still read in one run a day.
  3. Rank per tester. The same ranker, once per profile, with that tester's sent-job hashes as the memory. Each tester's ai_training setting applies to their own email. Collection asks Himalayas to hide AI-training gigs only if every tester is set to hide.
  4. Email per tester. One email each, with an idempotency key made from the tester and the date, so a rerun can't send twice: a tester already emailed that day is skipped, not counted as failed. One failed email doesn't stop the others; the run fails at the end if any failed.
  5. Remember per tester. After a tester's email is sent, the run writes HMAC-SHA256 hashes of the picks to D1, and deletes hashes older than 60 days (ADR 0012).
  6. Summary. Counts only: testers, profiles skipped, emails sent, and emails failed. Never an address, a profile, a country, or a job.

profiles/gergely.yaml stays in the repository as the reference profile and test data. The test email mode keeps using the fictional sample jobs. The Actions cache memory and the WFHEAVEN_TO_EMAIL secret are retired once the maintainer is a tester in D1, added with daily/add_tester.py. The test email mode emails only testers with the maintainer role.

Phases

Each phase is one pull request, with its code, tests, and docs.

Phase 1: upload and feedback

Built: the Worker in TypeScript with the static page, invite codes, Turnstile, POST /api/access, and POST /api/draft; the shared prompt file; a script that creates invite codes and prints the links; tests that mock Claude and Turnstile; a CI job for the Worker's tests; a developer page; this page and the privacy notice updated. Nothing personal is stored. Testers can try the upload, but don't get email yet.

The screens and their copy follow mock-up screens the maintainer designed and approved first. They're kept privately, in private/design/. The invite check is one setting, INVITE_REQUIRED, so the site can later go public (ADR 0011).

By hand, before the pull request:

  • Create the Anthropic workspace wfheaven-demo, set its USD 5 spend limit, and create its API key.
  • Create a Turnstile widget for wfheaven.app.
  • Set up Email Routing for privacy@wfheaven.app.

By hand, after the pull request: create the D1 database with the eu jurisdiction, with the command the developer page gives; this can't be changed later. Set the Worker secrets yourself with wrangler secret put, so no key passes through a chat, a file, or a log. Deploy, test with your own CV and a fictional one, and check the Worker's CPU time against the 10 ms limit (ADR 0011). Then accept ADR 0011.

Phase 2: email sign-up and daily picks

Built: the sign-up and "check your inbox" screens, from the approved mock-ups; POST /api/signup, /api/resend, the confirm page, and the unsubscribe page in the Worker; the confirmation email; the daily workflow changes on this page, in daily/; the email's footer and unsubscribe headers; a script that loads the maintainer's profile into D1; tests with a fake D1 and a mocked Resend; docs and ADR 0013. Remote OK's general terms were reviewed, and its jobs never quote descriptions (Job sources).

By hand, before the pull request:

  • Verify wfheaven.app in Resend, and add the DMARC record and dmarc@wfheaven.app forwarding. Done.
  • Create the two Resend keys, a Cloudflare API token with D1 access for GitHub Actions, a Himalayas API key, and a random WFHEAVEN_HASH_KEY. Add them as secrets yourself.
  • Accept ADR 0008 if the daily runs have confirmed it.

By hand, after the pull request: follow Deploy Phase 2: apply the migration, set the secrets, deploy, add yourself with add_tester.py, and run one test email. Then create the invite codes and send them to the testers with the link to the privacy notice. ADR 0012 is accepted; accept ADR 0013 after the first daily run for testers.

Phase 3: follow-up chat

Built: after the draft, the tester answers Claude's questions in a short chat on the feedback screen, built from the approved mock-up, and a second call updates the profile, with a "Sheet updated" note and Undo. ADR 0014 decides that the conversation stays in the browser, that each draft allows 20 messages, and that Haiku 5.5 answers. Tests use a fake Claude.

By hand: apply migration 0003, deploy, try the chat with a fictional CV, and measure the CPU time of a chat message with wrangler tail (Deploy Phase 3). Check the spend so far, and raise the limit only if the testers use it. ADR 0014 is accepted.

Before Phase 1

What the maintainer provides before Phase 1 starts:

  1. Review and merge this plan, or change its defaults: 3 CVs per code, 30 a day, 5 MB uploads, USD 5 a month, 6 months at most.
  2. Do the three "before the pull request" steps of Phase 1. Node.js is already installed; Phase 1 adds Wrangler, Cloudflare's command-line tool, to the project.

The privacy notice's controller details are confirmed: Gergely Hajdi, at privacy@wfheaven.app.