npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

resume-agent

v0.1.4

Published

A personal, local-only resume-tailoring tool. It keeps a reusable library of your work/project experience, distills it into structured, quantified resume highlights via AI conversation, and generates a one-page Typst resume tailored to a specific job desc

Downloads

807

Readme

Resume Agent

A personal, local-only resume-tailoring tool. It keeps a reusable library of your work/project experience, distills it into structured, quantified resume highlights via AI conversation, and generates a one-page Typst resume tailored to a specific job description — with AI-driven auto-shortening/auto-filling to keep it on exactly one page.

Everything runs on your own machine; data lives in a local SQLite database. There is no account system and no multi-user support — see docs/technical-doc.md for why.

(中文说明见 README.cn.md。)

Quick Start

Option A — Install via npm (recommended)

resume-agent is published to npm as a self-contained CLI:

npm install -g resume-agent
resume-agent

That's it. On first run it automatically creates ~/.resume-agent/ (the SQLite database and saved PDFs live there, independent of whatever directory you run the command from), applies any pending database migrations, starts the server, and opens http://localhost:3000 in your browser. Ctrl+C stops it. Custom port/host: PORT=4000 HOST=0.0.0.0 resume-agent.

Make sure Claude access works before running it — see "About Claude access" below.

Option B — Run from source (for development / contributing)

git clone https://github.com/Minghao-Han/Resume-Agent.git
cd Resume-Agent

# 1. Install dependencies (postinstall copies Typst's wasm files into public/typst/)
npm install

# 2. Point at a local SQLite database
echo 'DATABASE_URL="file:./dev.db"' > .env

# 3. Apply migrations, create dev.db, generate the Prisma Client
npx prisma migrate dev

# 4. Run it
npm run dev        # development, http://localhost:3000
# or
npm run build && npm run start   # production mode, still local-only

About Claude access

Either way, there's no in-app settings page for Claude credentials — it relies on whatever Claude access is already configured on the machine running it. Pick one:

  • The Claude Code CLI is installed and logged in on this machine, or
  • ANTHROPIC_API_KEY is set in your environment (or .env, for Option B).

Recommended first-time flow: Templates → Profile → Experience Distillation → Generate Resume (& Save) → review/edit in Resume History. See docs/user-manual.md for the full walkthrough.

Architecture at a Glance

Next.js (App Router) + Prisma/SQLite, with all AI behavior driven by the Claude Agent SDK.

Browser (client components)
   │  fetch via src/lib/apiClient.ts
   ▼
src/app/api/*                 route handlers (Zod-validated)
   │                              │
   │                              ▼
   │                        src/lib/agent/*        one-shot Claude Agent SDK
   │                          core.ts                turns per request, continued
   │                          starq.ts / resumeGen.ts / assistant.ts   via `resume: sessionId`
   │                          autoConverge.ts, templateCalibration.ts, ...
   ▼
Prisma (better-sqlite3 adapter) ──► dev.db (SQLite)
                                       + storage/resumes/*.pdf on disk
  • Pages (src/app/{experience,generate,resumes,templates,profile}): Templates → Profile → Experience Distillation → Generate Resume → Resume History, plus a floating "assistant" chat (mounted globally) that edits this repo's own .claude/CLAUDE.md/.claude/skills/ rather than app data.
  • Agent layer (src/lib/agent/): each feature (starq.ts, resumeGen.ts, assistant.ts) is a thin, narrowly-scoped wrapper around core.ts's runAgentTurn, each with its own canUseTool allowlist and skills allowlist so one feature's session can never reach another integration's tools by accident. Resume generation additionally runs through autoConverge.ts, which automatically re-prompts the same session up to 3 times to converge on "exactly one page, well filled."
  • Typst compiling happens twice, on purpose: client-side (src/lib/typstClient.ts, WASM in the browser) for live editor previews, and server-side (src/lib/agent/typstServerCompile.ts) for the programmatic page-count/fill-ratio measurements the auto-convergence loop and template calibration need inside API routes.
  • Data: 5 Prisma models (PersonalInfo, Education, Experience, Highlight, ResumeTemplate, GeneratedResume) in SQLite; array/object fields are stored as JSON strings. Session IDs for the Claude Agent SDK are the only "conversation state" the app itself persists — full transcripts live in the CLI's own on-disk session store.

Full architecture, data model, and implementation details (including how unsaved-changes detection works) are in docs/technical-doc.md. Full feature-by-feature usage is in docs/user-manual.md.