All projects
Case study3 min read

YAJT, my job-search workspace

I built YAJT to keep the posting, recruiter conversation and my résumé together. Before I spend time on an application, I want to know what fits and what I still need to ask.

My contribution
I kept job-fit scoring in TypeScript so missing evidence stays visible. I also designed a shared PostgreSQL budget that prevents concurrent model requests from spending the same allowance twice.
Result
I can correct a vacancy, rerun Fit and see which evidence changed the recommendation.

How a vacancy becomes a decision

YAJT combines the posting, recruiter messages and my saved corrections with my profile. The model returns evidence for each criterion. TypeScript checks that response, calculates a score over the known criteria and reports how much of the assessment they cover.

One synthetic vacancy, before and after the recruiter’s reply

Before the reply · Maybe

Fit panel with two open questions about base salary and remote work.

86/100 fit · 65% coverage. The backend work matches. I still need the pay range and remote policy.

After the reply · Good fit

Updated Fit panel showing evidence for salary and work location alongside the original skills assessment.

91/100 fit · 100% coverage. The recruiter confirms remote work and pay above my minimum. I can move on to tailoring.

Visit the public product page

From the local brief to the running system

The original brief put the profile and recruiter conversations in SQLite on my laptop. Claude received the context for one assessment or draft. I reviewed and sent replies myself. That design worked for one person. Sharing it meant giving each account its own records and coordinating spending across accounts.

Current architecture · a signed-in user runs Fit on a vacancy with new information
The browser requests Fit from Next.js on Fly.io. The server reads the account’s context from Neon PostgreSQL, reserves budget and sends the résumé and vacancy context to Claude. Next.js validates the reply, settles usage, saves the assessment and returns the verdict.

Why keep scoring in TypeScript? Claude interprets the text and supplies evidence for each criterion. A fixed rule computes the weighted score and coverage, so missing salary information stays visible even when the skills match is strong.

Why put the reservation in PostgreSQL? Two app instances can spend the same allowance. A short transaction gives both instances one budget to check and update. The lock is released before the model call. When the input is unchanged, the app can reuse the saved assessment and skip that call altogether.

Decisions during development

  1. Prepare the database switchSQLite queries were synchronous. I moved callers to an async query interface while SQLite still worked. This added a refactor up front and let the driver change separately.
  2. Open the workspace to othersVercel and Supabase hosted the first shared version. Conversations needed account-level access, and model calls from different users could now spend the same budget.
  3. Move hosting in stagesBackground Fit jobs sometimes stalled, and the fixed database bill was hard to justify. The app moved to Fly.io, then data and authentication moved to Neon. Existing account IDs had to survive both steps.

What if the model call times out?

YAJT reserves budget in PostgreSQL, releases the database lock, then calls the model. A timeout leaves the charge uncertain. Keeping the reserve may delay another request. Releasing it immediately could spend the same allowance twice.

const uncertain = await reserve(entry());
await finish(uncertain, { status: "unknown" });
await assert.rejects(() => reserve(entry()), AiBudgetError);
await finish(uncertain, { status: "succeeded", usage });
await reserve(entry());

From tests/ai-budget.test.mts. The next reservation fits again once actual usage settles the first one. In operation, an unresolved charge requires a check against the provider’s records.

What changed in how I check the work

Follow a correction all the way to the verdict. I once saved a salary and got asked for it again. The form had persisted the value, but Fit never read it. Fit now labels facts by source and invalidates the cached assessment when its input changes.

Exercise the driver that serves the page. The follow-up dashboard passed its local database tests and failed in production on a timestamp parameter. The fix used Drizzle’s timestamp encoder. A driver check and a signed-in browser check verified that the dashboard opened again.

I can measure when YAJT reuses a result and what a model call costs. My next evaluation asks a different question: when the evidence conflicts, does YAJT leave the right question open?

All projects

Get in touch

For a backend or platform role, or to talk about a project, reach me on LinkedIn.