Problem. A job search runs through find, qualify, apply, research, interview prep and debrief, and each job needs its own documents and next action along the way.
Idea. One self-hostable app tracks every job through seven stages from Saved to Offer. AI is an optional layer that reads postings and scores fit against the user's preferences.
Built. A Next.js 16 and React 19 app on Postgres with Drizzle and Better Auth: a board, companies, job pages with research, document and prep tabs, and a jobsmith command line to pull and push markdown documents. Live at https://jobsmith-lemon.vercel.app. 186 commits on 17 days, Sep 18 to Oct 25, 2026.
Decision. AI stays off unless AI_PROVIDER is set on purpose, instead of switching on whenever an ANTHROPIC_API_KEY is found in the shell. A key left over from another project then never sends a posting anywhere by accident.
Jobsmith is one app for a whole job search: find, qualify and research, apply, research deeper and prepare for each interview stage, debrief. It is open source under AGPL-3.0 and self-hostable with your own database and, later, your own AI provider key.
Captured from a local run with the fictional seed data (pnpm seed), not from a deployment. To
reproduce: docker compose up -d, pnpm install, pnpm db:migrate, pnpm seed, pnpm dev, then
sign in as the seeded demo user.
Next.js 16 and React 19 with Tailwind CSS 4, Postgres through Drizzle ORM, Better Auth for sign-in, and
the Vercel AI SDK for the optional AI features (package.json).
Pages: /board (jobs by stage), /companies, /jobs/<slug> (one job), /settings, and / (Home).
/preferences holds the filters that new jobs are checked against. /library is the answers, stories, intros
and facts you reuse across jobs (see below). Without a session, every page redirects to /login, except
/setup and /login themselves.
/library lists the items you reuse across jobs: an answer saved from a question ("Save to library" in the
Prep tab, in Listen and after a Drill), and stories, intros and facts you add by hand. Search by
text, filter by kind and tag, edit, and archive (a flag, not a delete). An item that came from a question shows
"Used in N jobs" and, on its page, the mark each job gave that question with its date, plus the library's own.
/library/quick-fire runs a ten-question round over every active job's questions that have a Spine and every
library item that has a question. /library/drill runs the Drill loop over the items that have a question;
their answers are spoken from clips made on demand, or by the browser voice when voice generation is off. Library
rounds and drills write marks in the library scope and no timeline event, because they belong to no job.
jobsmith pull writes the ## Prep and ## Library sections of the context file (see the CLI section).
- Node.js 24 (see
.nvmrc) - pnpm
- Docker, for the local Postgres in
docker-compose.yml
cp .env.example .envFill in .env:
DATABASE_URL: leave the default if you usedocker-compose.yml.BETTER_AUTH_SECRET: generate one withopenssl rand -base64 32.APP_URL: required for local development and self-hosting. Usehttp://localhost:3000here. On Vercel it can be left unset for Preview, and for Production unless a custom domain is used, because the app derives it from Vercel's system environment variables.SETUP_TOKEN: generate one withopenssl rand -base64 24(at least 16 characters). Until the first account exists, the setup page asks for this token, so only someone who can read the deployment's environment can create that account. A production build with noSETUP_TOKENkeeps first-run setup locked. Local development (pnpm dev) works without it.
Set SETUP_TOKEN before you deploy an instance that the internet can
reach.
The database scripts (db:migrate, seed, reset-db) load .env
themselves when the file exists, the same way next dev does. Then:
docker compose up -d
pnpm install
pnpm db:migrate
pnpm devOpen http://localhost:3000. The first visit redirects to /setup, which
creates the only account this instance will accept until you set
ALLOW_SIGNUP=true.
Click "Add job" on the board. Paste a link to the posting, paste the posting text, or both, next to the company and role fields it already had. Company and role are optional when a link or text is given; Jobsmith fills them in when it can read the posting.
A Greenhouse, Ashby or Lever link is read straight from that vendor's own public API. Any other link is fetched and read as a web page. LinkedIn is not read: paste the posting text instead, since LinkedIn requires a login Jobsmith does not have. A link that cannot be read for another reason (blocked, timed out, too large, not found, too short, or simply unreadable) asks for the pasted text too, unless company and role are already typed, in which case the job saves with the link alone.
When an AI provider is configured (below), pasted or fetched text is sent to it to read the company, role, location, work mode and pay. Only the posting text is sent, inside a fixed wrapper that tells the model to treat it as data, never instructions; nothing about your account goes with it. The stored posting itself is never rewritten by the model: it stays the pasted text or the fetched page, turned into plain markdown. When the model is off, fails, or cannot find the company and role, the dialog asks for them directly and the job is saved with a "Check this job's details" notice on its page, cleared by editing the details or by "Mark as checked."
Adding the same company, role and location again while the first one is still active shows "You already have this job." with a link to open it, and "Add anyway" to add a second copy.
"Where is it now" defaults to Saved. The job is always created with all seven stages. Choosing Applied moves it there once. Choosing a column after Applied moves it to Applied first and then to the chosen column, so its history shows two moves, unlike the single drag you would get from adding it plain and moving the card afterward.
Jobsmith works with no AI configured; intake then asks for the company and role by hand, and jobs
get no fit score (the hard filters from Preferences still run, in code). With AI on, each job added
with a posting is scored after it is saved: the posting, your resume and headline from Settings,
and your Preferences go to the model, cut to fixed lengths, and none of that text is ever logged.
Four environment variables turn it on, read in .env.example:
AI_PROVIDER:gateway(Vercel AI Gateway),anthropic(the Anthropic API directly), orfake(the test suite's own stand-in, which never sends text anywhere). Unset means AI stays off.AI_GATEWAY_API_KEY: needed forgateway, except on Vercel, where the project's own OIDC token is used instead.ANTHROPIC_API_KEY: needed foranthropic.AI_MODEL: optional, overrides the provider's default model.
AI_PROVIDER has to be set on purpose: a developer's own shell ANTHROPIC_API_KEY, left over from
another project, must never send a posting anywhere by accident. Every call to the Vercel AI Gateway
asks for zero data retention.
Focus a card (its title is a link, reached by Tab in the normal reading
order) and press a digit 1 to 7 to move it straight to that column, or
c to close it and choose a reason. Every card also has a "Move to" menu
listing the same seven columns and a Close item, for a mouse or a screen
reader user who would rather not remember the numbers. A move that
succeeds is confirmed out loud through a screen reader (a visually hidden
live region); a move the server refuses shows why in a toast and leaves
the card where it was.
Below 768px wide the board is a list grouped by stage instead of columns; each row's "Move to" button opens the same seven choices in a sheet.
Every document on a job's Research, Documents and Prep tabs is markdown, and the jobsmith command
line is the way to get a whole folder of it in, and a fresh copy of a job's own context out, without
opening the app.
Build it once from the repo, then install it globally:
pnpm cli:build
npm install -g ./clipnpm cli:build bundles cli/src into one dependency-free file, cli/dist/jobsmith.mjs (Node 22 or
newer); npm install -g ./cli links the jobsmith command from cli/package.json's own bin entry.
There is no published package yet - reinstall the same way after pulling a newer commit.
jobsmith login --url <base-url> asks for a token (paste it; it is read from standard input and
never echoed on a real terminal) and saves both to ~/.config/jobsmith/config.json (or
$XDG_CONFIG_HOME/jobsmith/config.json, owner-only permissions). Create a token first, in Settings.
Setting JOBSMITH_URL and JOBSMITH_TOKEN in the environment overrides the saved login, for
either variable on its own or both together.
jobsmith list prints your active jobs and their slugs.
jobsmith pull <slug> [--out <dir>] [--doc <key>]... [--requested] writes <slug>-context.md: the posting, stages, people, a
preferences summary, an index of existing documents, a ## Refresh requests section, a ## Prep section and a ## Library section, as
one markdown file with frontmatter (jobsmith: context/v1). ## Prep has a heading per question bank and
one line per question: its number, section, mark (solid, okay, shaky or none) and last drilled
date, so a skill can start from the shaky answers. ## Library lists each item's title, kind and tags.
Neither section carries an answer, a Spine, audio or a recording. --doc <key> also writes
<slug>-<key>.md for that document (latest version, with the jobsmith: document/v1 frontmatter),
and --requested writes one for every document with an open refresh request (see Refresh research).
jobsmith push <slug> [--dir <dir>] [--prefix <file-prefix>] [--dry-run] reads every
<prefix>-*.md file in --dir (default the current directory; the prefix defaults to the slug),
skips anything that looks like a document already pulled from this app, and uploads the rest. For
each file:
-
The key is the file name with the prefix and
.mdremoved, lowercased. -
Kind, stage, title and scope come from the file's own frontmatter first (
kind: cv,stage: Hiring manager,title: ...,scope: company), then from a suffix map - built in for the common names, or overridden per content folder by ajobsmith.config.jsonnext to the files:{ "suffixes": { "call-card": { "stage": "Hiring manager" } } }A suffix with no match anywhere is still pushed, as kind
other, with a note. Frontmatter is stripped before upload either way. -
A file over 1 MiB stops the push before anything is sent; a push holds at most 50 documents and 4 MB in total, and the CLI splits a larger folder into more than one request on its own.
--dry-run asks the server what would happen and prints it without saving anything. Pushing the
same folder twice is always safe: unchanged content reports unchanged and changes nothing.
jobsmith audio <slug> makes the audio clips for a job's question banks and pitches on your computer
and uploads them; see Voice below.
Credentials live in a different file from the suffix map on purpose: one is per machine
(~/.config/jobsmith/config.json), the other is per content folder (jobsmith.config.json, next to
the markdown files themselves, so a folder synced between machines carries its own mapping with it).
When you edit a pushed or generated document in the app and a newer version arrives from outside the editor (a push, a paste or a generated version), the compare page offers to carry your edits onto the new version. The app keeps the text your edit started from, so it can tell your changes from the new ones: edits to different lines apply on their own, and only a line both sides changed asks for a choice - "Keep my edit", "Take the new text" or "Write it myself". A version with no saved original (an edit made before the app kept one) is compared in two ways only, and every difference starts on the new text. Nothing is written until you press "Save to version N"; if the newer version was already marked as sent, your edits are saved as one version more.
The Prep tab of a job is a hub for its interview questions. Push an answers-full file (a markdown
file whose questions are lines like ### 1. "Tell me about yourself") and the hub shows one card per
question bank with the question count and a confidence line (0 solid · 0 okay · 0 shaky · 7 unmarked),
the questions grouped by section, a chip on the ones still unfilled, and Shaky, Okay and Solid marks
you set per question. A mark stays when the file is pushed again with changed text. Quick-fire runs a
round of up to ten questions: five seconds to recall the shape of the answer, then the Spine, then a
mark. It uses no audio (Listen does; see Voice). A finished round leaves a line on the job's timeline.
Drill rehearses the answers out loud. Open it from a bank card (or "Drill this section" on a section heading) and press Start drill: the interviewer asks, the question appears, and a silent countdown gives you time to answer aloud, sized to the length of the answer (Done ends it early, More time adds 30 seconds). Then the Spine shows first, the answer plays in your voice, and you mark it Shaky, Okay or Solid or Skip it. Keys: Space ends the wait or plays the answer again, 1 to 3 mark, the right arrow skips. A drill takes ten questions, shakiest and longest undrilled first, so the next run starts with what you marked Shaky. The summary lists the marks and links "Drill the shaky ones again". If your browser can record, "Record my answer" captures the wait and offers Keep or Discard after the reveal; nothing leaves the browser until Keep, and a kept recording is listed under its question on the Prep tab with a Delete button. A finished drill leaves a line on the job's timeline.
Questions are read from the pushed documents into their own table. If a row is ever missing, the card shows a Rebuild questions button. To fill the table for documents pushed before it existed, run this once against each database, after the migration has been applied:
pnpm prep:backfillIt is safe to run twice: it rebuilds the rows from the stored documents and never touches marks.
A research document, a fit brief or a people note can be refreshed from its Research tab: the "Refresh" button opens a dialog with an optional note of up to 500 characters and three ways to get a new version.
- Request a refresh marks the latest version "Refresh requested ", with a Cancel button.
The request appears in the context document's
## Refresh requestssection (key, kind, scope, version, date and note), sojobsmith pull <slug> --requestedwrites each requested document to<slug>-<key>.mdnext to the context file. Write the complete new version andjobsmith pushit under the same key: the new version clears the request. An edit made in the app keeps it open. - Copy refresh prompt copies a prompt built from the document and the context to the clipboard. Nothing is sent anywhere.
- Paste a new version adds a version from markdown you paste.
- Write a new version appears on a fit brief only, when an AI provider is set up. It uses the same run, credits and cost line as "Write fit brief" and does not pass the note.
A new version of a research document shows "What changed in version N" on its Research tab for a week: sections added or removed, changed numbers, new links and newly named people. The same list sits above the diff on the compare page. A document older than 30 days shows its age, and Home notes research that is 31 days old or more on an interview.
A document with two or more versions has a "Compare versions" link on its Research, Documents and
Prep tabs, and each row of its version list links to a comparison with the version before it. The
compare page marks removed and added words: side by side on a wide screen, inline on a phone, with
the screen reader text "removed" and "added" on every mark. Press ] for the next change and [
for the previous one, or use the Previous and Next buttons. The two version pickers choose any pair,
and ?view=split or ?view=inline forces one view. Two equal versions show "Pick two different
versions", and versions that differ too much to compare line by line are shown in full.
Every route below needs Authorization: Bearer <token>, a token created in Settings. The bridge
never accepts a session cookie, and the app's own pages never accept a bearer token - the two
authentication paths stay completely separate. Every response carries x-request-id and
cache-control: no-store; there are no CORS headers, so a browser calling this from another origin
is refused by its own preflight check before the request reaches the server at all.
| Method | Path | Purpose |
|---|---|---|
GET |
/api/bridge/opportunities?status=active|closed|all |
List your jobs (slug, company, role, current stage). status defaults to active. |
GET |
/api/bridge/opportunities/:slug/context |
The job's context document, as text/markdown. |
GET |
/api/bridge/opportunities/:slug |
One job as job/v1 JSON: company, stages, people, fit, documents, prep counts and open requests. |
PUT |
/api/bridge/opportunities/:slug/artifacts |
Upsert up to 50 documents; add ?dry_run=true to preview with nothing saved. |
GET |
/api/bridge/events |
Recent events across your jobs, newest page after a cursor (after, limit), for a runner that polls. |
POST |
/api/bridge/mcp |
The MCP endpoint (stateless Streamable HTTP, POST only). See the MCP section. |
GET |
/api/bridge/feed |
Roles the feed found, newest first: ?state=new|saved|all and ?limit=1..50. |
The push body:
{
"artifacts": [
{ "key": "cv", "kind": "cv", "title": "CV", "scope": "opportunity", "stage": "Hiring manager", "body_md": "# CV\n..." }
]
}title, scope and stage are all optional (scope defaults to opportunity; a missing stage
leaves the document unstaged). stage is matched against the job's own stage labels first, then
against stage kinds, case-insensitively. Each body_md is capped at 1 MiB, the whole request body at
4 MB.
The response:
{
"dryRun": false,
"results": [{ "key": "cv", "scope": "opportunity", "status": "created", "version": 1 }],
"warnings": [],
"requestId": "..."
}status is one of created, versioned, updated or unchanged. A per-document problem (an
unknown kind, a stage that does not match, company scope requested for a kind that cannot share)
shows up as a warning, and the rest of the push still saves.
Every error response shares one shape, { "error": { "code", "message" }, "requestId" }:
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_query |
A bad status or dry_run value |
| 400 | invalid_json |
The body is not valid JSON |
| 400 | invalid_payload |
The body does not match the expected shape |
| 400 | duplicate_key |
The same key appears twice in one push |
| 401 | unauthorized |
Missing, unknown or revoked token |
| 403 | origin_refused |
An Origin header from another site on the MCP endpoint |
| 404 | not_found |
No job with that slug for this token's account |
| 413 | payload_too_large / too_many_artifacts / artifact_too_large |
Over one of the size limits |
| 429 | rate_limited |
Over 120 requests per token per minute; Retry-After names the wait in seconds |
| 500 | server_error |
Something went wrong; the message names a request id for support |
The same bridge speaks the Model Context Protocol, so an AI tool you run can list your jobs, read a job's context and write a document back, with no files in between. Create a token in Settings first. There are three ways to connect.
Claude Code, straight to the server (the token goes in a header):
claude mcp add --transport http --scope user jobsmith <APP_URL>/api/bridge/mcp --header "Authorization: Bearer <token>"Claude Code, through the command line relay (it uses the token saved by jobsmith login, so no
token appears in the MCP configuration):
claude mcp add --scope user jobsmith -- jobsmith mcpClaude Desktop, in claude_desktop_config.json. A desktop app does not read your shell's PATH, so
give absolute paths to node and to the built command line file:
{
"mcpServers": {
"jobsmith": {
"command": "/absolute/path/to/node",
"args": ["/absolute/path/to/jobsmith/cli/dist/jobsmith.mjs", "mcp"]
}
}
}Token rules for jobsmith mcp: it reads the token saved by jobsmith login and refuses to start
when JOBSMITH_TOKEN is set in its environment, because a token in the environment of a process an
MCP client starts can leak into every tool that client spawns. Pass --allow-env-token to use the
environment's token on purpose. The saved file must be owner-only: chmod 600 ~/.config/jobsmith/config.json (the login command already sets this). The endpoint also refuses a
request that carries a browser Origin header from another site.
Tools:
| Tool | What it does |
|---|---|
list_jobs |
Your jobs: slug, company, role, current stage. |
get_job |
One job as structured data: company, stages, people, fit, documents, prep counts and open requests. The posting text is in the context document. |
get_job_context |
The job's context document (context/v1), the same text jobsmith pull writes. |
get_profile |
Your headline, time zone and preferences; pass include_resume for the resume text. |
list_feed_items |
Roles your feed found, newest first: state new (default), saved or all, limit 1 to 50 (default 20). The same list is at GET /api/bridge/feed. |
write_document |
Adds a version of a document under a key. |
write_document follows the push rules: a repeat with the same body reports unchanged and changes
nothing; a new body adds a version; it never deletes a document, never marks one sent and never
moves a stage. A write shows on the job page as pushed. dry_run: true previews without saving.
Clients that list resources can also read jobsmith://jobs/{slug} and jobsmith://jobs/{slug}/context.
Later, not built yet: get_prep, list_documents, read_document and the
document resource template.
To run it on your own server with Docker, Postgres and Caddy, follow the self-hosting guide. In short:
- The stack is the
deploy/folder:compose.yaml(app, Postgres and an optional Caddy profile for HTTPS),env.example,backup.shandrestore.sh. Copy the folder to the server, fill in.env, then rundocker compose --profile proxy up -d. - The image is
ghcr.io/weeeha/jobsmith, built forlinux/amd64andlinux/arm64by.github/workflows/release.ymlwhen av*tag is pushed.JOBSMITH_TAGin.envchooses the version; pin a full tag to upgrade only when you choose. GET /api/healthanswers without a session: 200 with statusokwhen the database answers and the schema matches the image, 503 otherwise. The image healthcheck uses it.- Backups and restores are
./backup.shand./restore.sh. The guide covers the nightly cron line, copying backups off the machine, upgrades and the Postgres major upgrade. - The first account is created at
/setupwithSETUP_TOKEN, the same as in First run above.
What has been verified, and what has not, is in docs/self-hosting-install-record.md.
On Vercel, the build command is tsx scripts/vercel-build.ts (see
vercel.ts). A Production deployment migrates the database before it
builds. Preview and development deployments only build, and print why.
Preview and Production should still use separate databases. A preview
never migrates, so code that needs a new migration fails on a preview that
shares Production's database instead of changing Production's schema early.
To migrate a preview that has its own database, set MIGRATE_ON_BUILD=true
on the Preview environment. MIGRATE_ON_BUILD=false stops migrations on
every deployment, Production included.
Migrations only move forward; there is no down migration. Rolling back a deployment restores the old code and leaves the schema as the newest migration made it. A column that a migration removed or renamed stays that way, even when the rolled-back code expects it.
Use the provider's pooled connection string for DATABASE_URL (what the
app itself uses at runtime, many short-lived queries) and keep its direct,
unpooled connection string in DATABASE_URL_UNPOOLED for migrations,
which need a session-scoped advisory lock a pooled connection cannot hold
(see scripts/migrate.ts).
With an AI provider set, a job can write four documents from your own material: a fit brief on the Research tab, a CV and a cover letter on the Documents tab, and a question bank for each interview stage on the Prep tab. Each is a draft built only from your resume, the posting and the notes already on the job; nothing is invented, and a CV or letter that names something the resume does not hold carries a "Check" line above it. A new write adds a version and never replaces one you edited. Research that needs a browser stays with the command-line skills, the paste dialog and the later research queue. The writing model is AI_MODEL_WRITE (a larger model than AI_MODEL). A self-hosted copy runs all of this unmetered on the operator's own key.
Setting HOSTED=true turns one copy of Jobsmith into a public service: sign-up for anyone (optionally behind one shared invite code), email verification before sign-in, password reset, public /privacy and /terms pages, a terms dialog, account deletion with a verifier, and a maintenance tick. With HOSTED unset nothing changes: the copy behaves as the sections above describe.
- The switch and its variables.
HOSTED,EMAIL_PROVIDER(smtporresend) withEMAIL_FROM,BILLING_PROVIDER(stripe) withSTRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET,STRIPE_PRICE_STANDARDandSTRIPE_PRICE_PLUS,STORAGE_PROVIDER(s3orvercel_blob),AI_PROVIDER(gatewayoranthropic) withAI_MODELandAI_MODEL_WRITE,ADMIN_EMAILS,CRON_SECRET(32 or more characters),CREDITS_GLOBAL_DAILY_CAP,LEGAL_OPERATOR,LEGAL_CONTACT_EMAIL,LEGAL_HOSTINGandSIGNUP_INVITE_CODE..env.examplelists each once, grouped and commented. A production hosted boot names every missing one in a single error. - A self-hosted copy never configures Stripe or an email provider. With
HOSTEDunset,BILLING_PROVIDERis ignored by the pages (they answer 404), nothing underlib/billingloads, no credit row is written and no plan is ever shown. An email provider is optional there and only turns on password reset. - Fake drivers for development.
EMAIL_PROVIDER=fakewrites messages as files underEMAIL_FAKE_DIR, andBILLING_PROVIDER=fakeadds a test checkout at/dev/billing/checkoutwith "Pay" and "Fail payment" buttons that post signed events to the real webhook. Both load only outside a production deployment, and a production build needsJOBSMITH_ALLOW_FAKE_DRIVERS=true(test only) to load them. - What the owner configures. The Stripe account, Prices, webhook endpoint and Customer Portal (
docs/billing-notes.md), the email domain, the storage store, the legal text, the plan numbers and the global cap.docs/launch-checklist.mdlists each item with how to check it. - Billing. Plans are Trial (14 days, 100 credits), Free, Standard and Plus, with placeholder prices and credits in
lib/billing/plans.ts. Checkout and the Customer Portal are Stripe's own hosted pages; Jobsmith loads no Stripe script. The webhook at/api/billing/webhookis idempotent by event id and mirrors Stripe's current subscription, so a replayed or out-of-order event changes nothing. A failed renewal keeps the paid plan for 7 days (a banner offers "Update card"), then the account drops to Free and keeps its data and bonus credits. Deleting an account cancels its subscription at once and deletes the Stripe customer. The tick (once a day) ends trials and lapsed plans, sends the "trial ending" mail 3 days ahead, and deletes event records after 90 days. - Fake drivers are refused in production. On a Vercel production deployment the fake drivers never load, whatever is set.
- The demo and hosted sign-up are exclusive.
HOSTED=truewithDEMO_MODE=truefails the boot, because demo accounts skip email verification. A public demo stays on its own, unhosted deployment, and the login page shows "Try the demo" or "Create an account", never both. - Self-hosted copies keep their last account. Deleting the only account of an unhosted instance is refused, so an instance is never left with no owner. A self-hosted copy that sets an email driver also gets password reset.
- The maintenance tick.
POST /api/jobs/tick(andGET, which Vercel's scheduler uses) takesAuthorization: Bearer <CRON_SECRET>and answers 404 when the secret is unset.vercel.tsschedules it once a day at 09:00 UTC, because Vercel Hobby allows daily cron only; on a plan that allows it, every 15 minutes is the intended schedule.pnpm jobs:tickcalls it by hand. - Onboarding. A new hosted account is sent to
/welcomeafter it verifies its address. It takes a PDF (up to 10 pages), a DOCX, a markdown or a text file of up to 5 MB, or pasted text of up to 60,000 characters, reads the text in memory, and shows a cleaned-up version with a suggested headline and job titles to check before anything is saved. The original file is never stored, and the reviewed draft is deleted on save, on discard or after 24 hours. A scanned PDF, an encrypted one or a macro-enabled document is refused with a message that points to the paste box. With no model configured, or when the model fails, the text read from the file is shown as it is and the headline and preferences are typed by hand. "Skip for now" works at every step. A self-hosted copy is never sent there; it reaches the page from "Fill my profile from a resume" in Settings. - Tests.
pnpm test:e2e:hostedstarts its own server (port 3100, databasejobsmith_hosted, both overridable withHOSTED_E2E_PORTandHOSTED_E2E_DATABASE) and runs on fake drivers.
Nothing in the repository holds a key. To try billing against Stripe with no real money:
- Create a Stripe account and stay in test mode. Make two Products with a monthly Price each (Standard and Plus) and note the two Price ids.
- Set up the Customer Portal as
docs/billing-notes.mdsays (card, invoices, plan change with a downgrade at period end, cancel). - Install the Stripe CLI, sign in, and run
stripe listen --forward-to http://localhost:3000/api/billing/webhook. It prints a signing secret for the forwarder. - Set
BILLING_PROVIDER=stripe,STRIPE_SECRET_KEY(a test key),STRIPE_WEBHOOK_SECRET(the forwarder's secret),STRIPE_PRICE_STANDARDandSTRIPE_PRICE_PLUSin your environment, not in a committed file, and start the app withHOSTED=true. - Buy Standard on
/pricingwith Stripe's test card, upgrade and cancel from Manage billing, and trigger the rest withstripe trigger invoice.payment_failed. - Run the live checks:
JOBSMITH_LIVE_STRIPE=1 pnpm vitest run tests/live(the second file also needsDATABASE_URLof the running app).
A hosted account runs on credits. Every model call and every in-app audio batch costs some: reading a posting or scoring a fit is 1, a fit brief 4, a cover letter 3, a CV 6, a question bank 12, reading a resume 3, and voice audio 3 per 1,000 characters. A 14-day trial starts when the address is verified and holds 100 credits; the Free plan holds none. The plans, their prices, their monthly credits and daily limits, and what each task costs are placeholders the operator edits in lib/billing/plans.ts and lib/credits/costs.ts (nothing else repeats a number). One credit is about one US cent of provider cost. A global daily cap (CREDITS_GLOBAL_DAILY_CAP, 20,000 by default) stops spending for everyone until 00:00 UTC and mails the admin addresses at 80 percent.
Everything that needs no model keeps working at zero credits: the board, jobs, pasting and editing documents, adding a job by hand, export, delete, the command line, and browser voices in the player. Fair use: each task also has a daily limit, a failed run gives its credits back, a double click is charged once, and the owner can suspend an account, which stops model calls, uploads and writes while sign-in, reading, export and delete stay open. Storage is capped per plan (documents and stored audio together) and refuses only writes that add bytes. A self-hosted copy never meters: no credit row is ever written.
The owner's pages are /admin (sign-ups, credits spent, failed runs), /admin/users and one account's page, where credits can be added to the bonus balance (1 to 1,000, with a reason) and an account suspended or restored. They show counts and metadata only, never a resume, a posting or a document, and answer 404 to anyone whose verified address is not in ADMIN_EMAILS.
The legal pages are templates. The operator fills in the name and contact address through the LEGAL_* variables and has the text reviewed before opening to the public.
DEMO_MODE=true puts a "Try the demo" button on the login page, for an
instance that exists to show Jobsmith to visitors. Each click creates a
throwaway account under the reserved demo.invalid domain, fills it with
the same six fictional jobs as pnpm seed, and signs the visitor in. The
visitor never sees a password, and nobody sees anyone else's copy.
Copies are deleted 24 hours after they were made: every demo click first
deletes the expired ones, so there is no scheduled job. At most 10 copies
are made per minute and 200 can exist at once (lib/demo/policy.ts).
The demo path opens sign-up only for its own in-process call (a random key
that never leaves the server process), so ALLOW_SIGNUP stays off and a
direct call to the sign-up endpoint is still refused. In demo mode the login
page no longer redirects to first-run setup.
Never turn it on for an instance that holds a real job search: anyone who
opens the login page can create an account on it. Leave AI_PROVIDER unset
on a demo instance unless you are willing to pay for visitors' AI calls.
The login rate limit counts attempts per client address, read from the
X-Forwarded-For header (advanced.ipAddress in lib/auth/index.ts). The
header is trusted only when it holds exactly one valid address. On Vercel
the platform sets it for you. Behind your own reverse proxy, have the proxy
overwrite the header with the address it sees (nginx:
proxy_set_header X-Forwarded-For $remote_addr;). A proxy that appends to a
header sent by the client produces a list, and a list is treated as
unknown.
Behind a chain of proxies (for example a CDN in front of nginx), let each
proxy append to the header and list the proxies' addresses in
advanced.ipAddress.trustedProxies.
Requests with no trusted client address share one counter. That is the
case with no reverse proxy at all, and behind a chain of proxies until
trustedProxies is set. For those requests the sign-in limit rises to at
least 30 attempts per minute, so a handful of failed sign-ins from anywhere
cannot lock every visitor out. Clients with a trusted address keep the
tighter per-client limit below.
AUTH_SIGNIN_MAX_PER_MINUTE is optional and defaults to 5.
The Listen screen reads a question bank or a pitch aloud: the interviewer's question in one voice, your answer in another, with a transcript that follows along, speed from 0.8 to 1.5, and Shaky, Okay and Solid marks that never stop playback. With no voice provider it speaks through your browser's own voices, and Settings, Voice picks which ones. With a provider, a bank card's Prepare audio button makes the clips once and stores them; changing a voice later keeps the old clips.
Two groups of environment variables, all optional, all listed with no values in .env.example:
- Speech provider, off unless
TTS_PROVIDERis set:openai_compatible(any server with/v1/audio/speech, such as a local Qwen3-TTS; needsTTS_BASE_URL, optionalTTS_API_KEY),gemini(GEMINI_API_KEY),elevenlabs(ELEVENLABS_API_KEYandTTS_MODEL) orfake(silent clips for the test suite, nothing leaves the machine).TTS_MODELoverrides the provider's default model. Unset means the server never sends text to a speech provider, whatever other keys are in the environment. - Clip storage:
STORAGE_PROVIDERislocal(the default; files underSTORAGE_LOCAL_DIR, default.data/storage; refused on Vercel),memory(tests only, refused in production),s3(S3_BUCKET,S3_REGION,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY, andS3_ENDPOINTplusS3_FORCE_PATH_STYLE=truefor MinIO or R2) orvercel_blob(BLOB_READ_WRITE_TOKEN; the store must be private). No clip is public: every one is served through/api/assets/<id>to the signed-in owner only, with Range support.
jobsmith audio <slug> [--tts-url <base>] [--voice-interviewer <v>] [--voice-candidate <v>] makes the missing
clips on your own computer and uploads them, so a deployed app needs no speech provider of its own. The
default speech URL is http://127.0.0.1:8890/v1, where a local Qwen3-TTS server listens; --tts-url names
another OpenAI-compatible server. Text goes only to that address. If the server wants a key, set
JOBSMITH_TTS_API_KEY in the environment of the command. Run it again to retry any clip that failed.
A role pack names the stages, the seniority levels and the guidance the model gets for one kind of job search. Jobsmith ships one, product design, and an account that never chooses another keeps it.
- Choosing: the first-run page has a "Roles you're looking for" select. Settings, under Profile, has a "Role pack" list. Picking another pack opens a dialog that shows the new stage names; Switch changes the board columns, the seniority levels on Preferences and the guidance used for new extractions and fit scores.
- Switching rewrites nothing: jobs keep their stages, scores, documents and saved preferences. A stage whose saved label differs from the new pack's label shows its old label as a chip on the card. A saved seniority choice the new list does not have stays checked until you remove it.
- Adding a pack: put a
*.jsonfile that followspacks/schema.jsonin a folder, setPACKS_DIRto that folder and restart. The pack then shows up in Settings and on the first-run page. A file that fails the schema, or reuses an id, stops the start withPackError: <file>: <reason>, so a typo never drops you quietly back to product design. - Updates and missing packs: when a pack file is edited and its version goes up, Settings shows a notice once, with the new stage names; Dismiss records the version. If the pack your account uses is no longer installed, Jobsmith uses product design and says so in Settings, and changes nothing stored.
- Export and context: the data export names the stored pack under
profile.pack, and the context a command-line tool reads carries apack: <id>@<version>line.
/funnel shows how the search is going. A job is in the window when it started inside it.
- Windows:
This search(since the search start date you set with Edit, off until one is set),Last 90 daysandAll time. The page opens onThis searchwhen a start date exists and onLast 90 daysotherwise; an unknown?window=value falls back to that default. - Reached: a job has reached a stage when it was ever in that stage or in a later one, so a job that skipped a round still counts for the round it skipped. Each stage also shows the share that got there from the stage before.
- Percentages need 10: a percentage is printed only when its denominator is at least 10; below that the page shows the counts as "7 of 9".
- No response: an open application with no sign of a response counts as unanswered only once 30 days have passed since its last event; until then it is waiting.
Every chart has a Table button that swaps it for the same numbers as a table. On a phone the tables become
two-line rows, so nothing scrolls sideways.
Jobsmith installs as an app. On an iPhone open it in Safari, then Share, then Add to Home Screen. On Android
or a desktop Chromium use the browser menu's Install item. It needs HTTPS (or localhost); the service worker
registers only in a production build, so pnpm dev never caches anything.
On a job's Prep tab, Save for offline stores that job on the device: its questions, its Listen, Drill and Quick-fire pages and every audio clip, with the size shown before you start. Remove saved copy deletes it. Nothing else is cached: the board, Home, the Library and every job you have not saved need a connection, and open to a short offline page that lists the saved jobs. Marks made offline wait on the device (a line shows "3 marks waiting to sync") and post when the connection returns, keeping the time you tapped; a newer mark made elsewhere wins. Signing out deletes the saved jobs and the waiting marks from that device.
Platform limits. Safari removes the saved copy of a site you have not opened for seven days unless the app is on the home screen. Audio on a locked screen depends on the phone. Session notes of a Quick-fire round started with no connection are not recorded on the timeline. After new clips are prepared on the server, Remove saved copy and save again to include them.
pnpm icons redraws the app icons in public/icons from scripts/make-icons.ts.
Track a company on the Companies page and Jobsmith watches its open roles. Give it the link to a Greenhouse, Ashby or Lever board, or the company's careers page; Jobsmith checks it on a schedule, lists new roles and tells you which ones match your Preferences. The first check runs when you track the company, so the dialog closes on a sentence like "Found 42 open roles. 3 match your filters."
- Readers. Greenhouse, Ashby and Lever boards are read through their public listing endpoints. A careers page is read for links to jobs, after its
robots.txtallows it; a page that wraps one of the three boards is read through that board. A page that builds its job list in the browser, or a LinkedIn link, cannot be read, and the card says so. - A card's line. Each tracked company shows its reader, the last check, how many roles are open and how many match, and its health in words: a failed check is a warning, three in a row are failing and back off up to 48 hours, and "Check now" is allowed once every 10 minutes.
- Scans. Scans run when something calls
pnpm feed:scan, on the hosted tick, or when you open Home and a source is over 90 minutes overdue ("Scans run when you open Home"). On a self-hosted copy add one line to cron:
*/15 * * * * cd /path/to/jobsmith && pnpm feed:scan
pnpm feed:scan takes --budget-seconds N (default 600, at most 3600), --user <email> and --source <id>, prints one line per source and exits 0 when the pass ran.
- The Feed page.
/feedlists what the scans found: To review, Saved, Dismissed and Expired, grouped by company or by source, with filters for source, minimum score, work mode and a search over title and company. A role you do not want is dismissed (with Undo); "Add to board" puts it on the board in one tap, already carrying its score when it has one. Jobs that miss your Preferences are hidden until you ask for them. A source can be snoozed for 1, 7 or 30 days, and Home shows the five best new roles in a "New roles" card. - Scoring and the cap. At the end of a scheduled or command scan, Jobsmith scores the new roles that pass your filters, tracked companies first, then newest, so a score is waiting when you look. A role that misses your filters is scored only when you open it and tap "Score this job". Scoring is capped per person per day (30 by default, set in the profile's feed settings) and every score also spends one credit on a hosted copy; a role refused by the cap is offered again the next day for a week and its sheet says "Scoring resumes tomorrow." With the cap at 2, a scan of 5 passing roles makes exactly 2 model calls. Adding a role to the board never spends the cap.
- Switches.
FEED_SCAN=offstops every scan.FEED_SCORES_PER_DAY_MAXis the instance ceiling on feed scores per day (default 100;0turns feed scoring off). - Politeness and privacy. Requests carry the user agent
Jobsmith/<version> (job feed; +https://github.com/weeeha/Jobsmith), no cookies and nothing about you, at most 4 at a time and one per host, and every address goes through the same guard as Add job. A list of tracked companies reveals a job search, so it stays in your own database.
| Script | Purpose |
|---|---|
pnpm dev |
Run the app locally |
pnpm build |
Production build |
pnpm start |
Run a production build |
pnpm typecheck |
Generate route types, then check them |
pnpm lint |
ESLint, then the token lint (check:tokens) |
pnpm check:tokens |
Fails on raw colors, palette classes or arbitrary values outside components/ui |
pnpm check:copy |
Fails on dash glyphs, exclamation marks, banned words and "not X but Y" shapes in the public docs and copy modules |
pnpm check:licenses |
Fails on a production dependency whose licence is not on the allowlist |
pnpm test |
Unit and integration tests (Vitest) |
pnpm test:e2e |
End-to-end tests (Playwright), resets the database first |
pnpm test:perf |
Performance budgets (Playwright, Chromium), against a running production server filled by pnpm perf:seed |
pnpm perf:seed |
Create the perf account with 60 fictional jobs |
pnpm db:generate |
Generate a SQL migration from the schema |
pnpm db:migrate |
Apply migrations |
pnpm seed |
Create a fictional demo user and profile (only while no account exists) |
pnpm feed:scan |
Scan the tracked companies that are due (see Feed) |
pnpm prep:backfill |
Read the questions of every pushed prep document into the question table (run once per database, safe to repeat) |
pnpm reset-db |
Drop and re-migrate a local database (refuses non-local hosts) |
Two more variables are read only by these scripts, never by the app itself:
ALLOW_DB_RESET=true: required to confirmpnpm reset-db.SEED_PASSWORD: the passwordpnpm seedgives its demo user, instead of generating and printing a random one.
pnpm test runs the unit and integration suite (Vitest).
pnpm test:e2e runs the end-to-end suite (Playwright), using the same
environment as First run. It needs the local Postgres running, resets it,
and starts its own server on port 3000, or on PORT when set, with a
matching APP_URL. It runs Chromium, WebKit, a 390 px phone and a Firefox
smoke project (firefox-smoke, the shell and pipeline specs only, run with
pnpm test:e2e --project=firefox-smoke). It includes an axe scan of every
page and the keyboard-only flows listed in docs/accessibility.md.
pnpm check:copy and pnpm check:licenses are the writing and licence checks
that CI runs beside the tests. pnpm test:perf measures the budgets in
docs/performance.md; it needs a production build and pnpm perf:seed, and
its numbers go to the job summary in CI.
pnpm import:applications <file> [--email <address>] [--dry-run] reads a
JSON array of applications and replays each one through the same rules the
app itself uses to add and move a job, so events and stage history stay
consistent with a job added by hand.
Each entry: company, roleTitle, stageKind (one of saved, applied,
recruiter_screen, hiring_manager, portfolio_case, panel_final,
offer), and optionally appliedAt (a date, landing on the Applied
stage's entered date, honored for every stageKind other than saved),
sourceUrl, notes and nextAction. See
tests/fixtures/applications.sample.json for a complete, fictional
example.
An entry whose company and role already exist for the target account,
active or closed, is skipped, so running the same file twice changes
nothing, even after one of the imported jobs is later closed. --email
chooses which account to import into: optional while the instance has
exactly one account, required once it has more than one. Every run
prints a summary: entries created, entries skipped as already tracked,
and any entry that failed, by its position in the file - including a note
or next action that failed to save after its job was already created.
--dry-run prints the same summary without writing anything.
Tokens, vendored primitives and the re-sync process are documented in
docs/design-system.md. pnpm check:tokens enforces the token rules
outside components/ui.
AGPL-3.0-only. See LICENSE. Third-party notices are in THIRD_PARTY_NOTICES.md.
Trademarks: the code is AGPL-3.0, and the Jobsmith name and logo are not licensed for another party's hosted service.
Read CONTRIBUTING.md first. Every contributor signs the license-grant CLA in CLA.md, which a bot asks for on the first pull request, and everyone follows CODE_OF_CONDUCT.md. Report a vulnerability as SECURITY.md says, not in a public issue.
SECURITY.md: how to report a vulnerability and what to expect.docs/accessibility.md: the accessibility statement and the check behind each line.docs/performance.md: the performance budgets and how they are measured.docs/releasing.md: how a version is cut.docs/ship-1-0.md: what the owner does before the first public release.docs/self-hosting.md: running Jobsmith on your own server.



