Skip to content
Projects

About

CV-Tailor(简小匠):免费开源 AI 简历制作与优化工作台|一份母版按岗位 JD 零编造定制,内置六维 ATS 体检、21 套出版级 A4 模板、矢量 PDF/Word 无水印导出、中英双语翻译,免注册本地存储,自带大模型 Key(BYOK)。Local-first open-source resume builder & ATS checker.

AI & Machine Learning

How these counts are measured

137 stars0 Forks +10 in 24h

Measured star growth

in 24h
+10
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

简体中文 · English

CV-Tailor

CV-Tailor

One master résumé, tailored into searchable A4 PDFs for every role — with zero fabricated metrics.

A no-signup, local-first web résumé studio for every job seeker — students and new grads, experienced hires across all industries, academic researchers, and international or bilingual candidates: a deterministic rules engine runs six-dimension ATS auditing and JD gap analysis completely offline, your own model key (BYOK) steps in only when you opt into guarded rewrites or incremental translation, and export ends as a searchable 210mm × 297mm vector A4 PDF, native OOXML .docx, and per-role delivery pack.

Author: duyunzhoudyz · 100% open source under the MIT License for self-hosting and customization; instant zero-signup access at cv-tailor.win (commercial transparency in LICENSING.md).

If this project saves you from résumé-tailoring busywork, leave a Star so you can find it for your next job search and help other candidates discover it.

GitHub stars Official Site CI & Pages License: MIT Node.js TypeScript Tests Local-First

Live Studio · Why CV-Tailor · Core Engines · Quick Start · Free vs Pro · 21 Templates · Agent Reference · Docs

The short version: this is not a wrapper that pastes your résumé into an LLM and prints whatever comes back. Work splits into two layers — a deterministic rules layer that runs 100% offline (six-dimension scoring, JD gap analysis, 0-second offline trial fixes, dual-track ATS inspection, A4 pagination, and export) and an opt-in model layer using your own key (BYOK). Without a key, everything in the first layer works in full. With a key, the model is never allowed to invent your numbers.

CV-Tailor landing page with live interactive A4 template and palette switching, requiring no sign-up

The landing page (#/) previews real A4 templates and palettes live in the browser; by default, every résumé draft stays exclusively on your device.

Sponsors

Sub4AI Sub4AI: AI subscriptions and digital memberships (direct top-ups for major AI plans, ready-made AI accounts, and tool or software memberships), with self-service checkout and automatic delivery on the majority of items. Team and institutional procurement is available at sub4ai.com, supporting corporate bank settlement and invoicing.
1KeyAPI 1KeyAPI: Steady as infrastructure with smooth concurrency, built for research benchmarks and production; one key connects major Chinese and international models via OpenAI and Anthropic protocols, with per-token RMB billing, corporate bank transfers, and invoicing. Mainland China users should use the service as needed under local laws, regulations, and platform terms.

What problem this solves, and how it differs

Asking a generic AI chat to rewrite your résumé fails on verification: it invents plausible metrics (like "boosted results by 300%"), inflates "assisted" into "spearheaded", and pads bullets with clichés that collapse under interview scrutiny. Word copies and subscription builders fail on maintenance and export: master experience details disappear across role-specific files, and export hits paywall watermarks or rasterized screenshot PDFs that ATS parsers read as blank noise.

CV-Tailor puts master-to-tailored version control, deterministic auditing, fabrication-guarded rewrites, dual-track ATS simulation, and physical A4 typography in one zero-account browser studio:

Dimension Generic AI Chat Subscription Résumé Builders CV-Tailor
Privacy & Data Ownership Full career history enters third-party chat logs Mandatory sign-up and cloud résumé storage Local-first browser storage: no accounts or cloud DB; checksummed dual-slot writes (primary + last_good + 3 cold backups) with IndexedDB avatar isolation
Master-to-Tailored Traceability Previous phrasing disappears once the chat moves on Paywalled draft limits with no cross-version merge-back 1 Master → Batch JD Queue: derive tailored versions per role with reorder-aware field/word Diff merge-back (Pro) and local rollback snapshots
Anti-Hallucination & Metrics Invents percentages, pads clichés, and inflates ownership scope Static form boxes or unguarded one-click text expansion Single methodology contract + aiRiskGuard: bans 5 buzzword classes, locks 3 ownership tiers, gates edits by score gain; isolates numbers per entry and emits [待补充指标: ...] / [needs metric: ...] when metrics are missing
JD Keywords & Deterministic Scoring Vibes-based feedback that drifts on every run No reproducible baseline to isolate hard skill gaps Pure-function 6-dim audit + symbol-aware lexicon: weights shift across 8 career stages with repeatable scores; matches .NET/C++17/Go plus 40 synonym groups, splitting master-recoverable proof from true gaps
Wording Refinement & Offline Trial Fix Rewrites the whole text; you hunt for changes by eye Little to no structured prose tightening or offline diff preview Preview real diffs without a key: repeated-verb diversification, widow trimming, chronology/tense audit, plus 0-second local XYZ / CAR / concise red-green diffs
Dual-Track ATS & Portal Delivery Outputs plain prose blind to column merge or portal rules Multi-column gimmicks and skill bars that scramble parsers Domestic & Global ATS X-Ray + portal copy: Domestic checks 4-element education & full-time/internship split (Beisen/Moka/Boss); Global checks bilingual EEO rules & column merge (Workday/Greenhouse/Lever); ships dual-pack copy, <=120-char Boss greeting, and per-role ZIP packs (Pro)
Incremental Bilingual Maintenance Full re-translation overwrites manual edits and drifts on units Separate Chinese and English files kept in sync by hand Block-level incremental translation (Pro): hashes blocks to re-translate only changed sections, respects user-locked blocks and glossaries, audits numeric/unit parity, and forks standalone English résumés
A4 Layout, Exports & BYOK Cost Manual re-layout in Word/LaTeX; repetitive prompt setup Watermarks or rasterized PDFs on free tiers; vendor-locked AI credits ISO 210mm × 297mm engine + model-agnostic BYOK: 21 templates (4 free watermark-free, 17 Pro live try-on), color & ink-saver vector PDF + native .docx; 5 protocols × 12 presets with your own key or local Ollama at zero markup

Verifiable evidence and upfront boundaries

Checkable proof in this repository:

  • Single Source of Truth (SSOT) enforced in CI: Scoring, 6-second F-pattern skimming, and widow tightening share src/methodology/methodologyContract.ts; all 21 templates (src/templates/templateCatalog.ts) and 5 BYOK protocols (src/byok/byokProtocols.ts) stay synchronized against docs via npm run docs:check.
  • Tests and 7 CI gates: Currently 36 Vitest test suites / 940 passing unit and integration tests, gated in CI by npm audit --omit=dev (0 high/critical vulnerabilities), typecheck, lint, docs:check, test, build, and check:pdf-assets.
  • 100% offline rules layer: Six-dimension scoring, JD gap analysis, dual-track ATS X-Ray, 0-second offline trial fixes, A4 pagination, and single-document export run with zero network calls or API keys; #/ats works completely offline.

Upfront boundaries:

  1. Offline ATS checkup is a deterministic structural simulation, not any commercial ATS vendor's proprietary algorithm. The 0–100 diagnostic score measures structural parseability, STAR/XYZ completeness, metric density, and JD alignment — diagnostic score != hiring probability, and it cannot guarantee a specific vendor's internal ranking.
  2. No bundled free LLM quota. The entire deterministic rules layer runs free forever without a key; live AI rewriting, batch polish, and bilingual translation require your own BYOK key (or local Ollama).
  3. Vector PDF relies on desktop browser native print pipelines. Searchable PDFs render via an isolated <iframe> using native browser print (desktop Chrome / Edge 120+ recommended, Margins None, Background graphics checked). The Delivery Pack ZIP deliberately bundles .docx plus 3 Markdown artifacts rather than blurry rasterized PDF screenshots.
  4. Static-only hosting has no Serverless runtime. On GitHub Pages, /api/byok-proxy and /api/license are unavailable; direct-CORS BYOK providers and local Ollama continue to work in full.
  5. Candidate preparation tool, not auto-apply bot spam. CV-Tailor produces reviewable candidate material and does not scrape job boards or auto-submit applications; factual accuracy remains the candidate's responsibility.

Workbench preview and five core engines

Dual-Pane Studio & Physical A4 Ruler (#/studio) Standalone No-Login ATS Check (#/ats) Client-Side Multi-JD Batch Queue
Studio workbench with physical A4 ruler Standalone ATS check workspace Client-side multi-JD batch queue
Synchronized editor, Methodology Clinic, and live 210mm × 297mm pagination Drop a PDF/DOCX or paste text for instant 6-dim scoring and CMap garble checks Paste multiple JDs at once to rank fit and split master-recoverable proof from true gaps

1. Local-First Master-to-Tailored Hub (Batch JD Queue & Reorder-Aware Diff)

  • 1 Master → Multi-JD Batch Queue: Keep one comprehensive Master résumé with your full project history. Paste multiple JDs delimited by ---, ===, or # Role: into the browser-local queue to rank role fit with instant cancellation. Missing keywords are checked against your Master copy to separate master-recoverable experience proof from true skill gaps.
  • Reorder-Aware Version Diff & Crash-Safe Storage: When refining tailored drafts, versionDiff.ts runs two-pass matching (stable ID first, semantic fallback) to highlight field edits, word-level diffs, and entry/bullet order rearrangements, allowing selective merge-back into Master. Active documents are guarded by checksummed StorageEnvelope dual-slot writes (primary + last_good + up to 3 corrupt-payload cold backups) and local snapshots, with avatars isolated in IndexedDB.

2. Zero-Hallucination Methodology Engine (Works Offline Without Keys)

  • Single Contract & Pre-Adoption Score Gate: methodologyContract.ts governs audit scoring, 6-second F-pattern skim checks (recruiterSkimEngine.ts), and prose tightening from one SSOT — banning 5 corporate buzzwords (抓手, 赋能, 闭环, 沉淀, 撬动) and locking 3 ownership tiers (collaborative, sole, lead) so "assisted" never becomes "spearheaded". Every candidate passes simulateBulletScoreDelta beforehand, filtering out buzzwords, weaker verbs, or >2.5-line walls of text.
  • Two-Stage STAR/XYZ/CAR Micro-Probes & 0-Second Offline Trial Fix: quantificationCoach.ts spots missing Scale, Mechanism, and Impact slots and offers clickable micro-probes plus campus benchmark presets. Given real before/after figures, it cleanly separates percentage points (+pp) from relative change (+%) and produces instant offline red/green diffs across Impact XYZ, Challenge-Action-Result (CAR), and Concise One-Page styles with zero network or API key.
  • Entry-Scoped Numeric Isolation (aiRiskGuard): When an LLM is connected, Post-LLM validation isolates verifiedFacts strictly by targetRef (section:itemId:bulletId) so metrics from Project A cannot leak into Company B. It blocks swapped metric objects (METRIC_OBJECT_SWAPPED) and ungrounded JD skill stuffing (UNVERIFIED_SKILL_ADDED), flags arithmetic derivations as opt-in DERIVED_RATIO (defaultChecked = false), and enforces explicit [待补充指标: ...] / [needs metric: ...] placeholders whenever metrics are absent.
  • Symbol-Aware Lexicon, 40-Group Synonym Graph & Chronology/Tense Audit: techLexicon.ts preserves .NET, C++17, C#, Node.js, CI/CD, HTTP/2, and glued versions (Vue3 ↔ Vue 3), never mis-matching C端/B2C/Objective-C as C or ready to go/go live/go-to as Go. Its 40 bidirectional domestic/global equivalence groups (K8s ↔ Kubernetes, RAG ↔ Retrieval-Augmented Generation) surface dual-writing hints for literal ATS filters. resumeAuditEngine.ts simultaneously audits inverted dates, overlapping full-time roles (1-month handover tolerance), and present-tense verbs on past English entries.

3. Domestic & Global Dual-Track Delivery Loop & Bilingual Workbench

  • Dual-Track ATS X-Ray (AtsXrayInspector): Pairs a PDF CMap / PUA garble circuit breaker with two switchable compliance regimes — Domestic Track (Beisen, Moka, Boss Zhipin: 4-element education completeness — institution, degree, major, exact year-month — plus full-time vs. internship separation) and Global Track (Workday, Greenhouse, Lever: bilingual EEO red-line checks catching personal age, DOB, marital status, political affiliation, and headshots while exempting product audience phrases like "target user age 25–35", English heading/date norms, and live 2-column interleaving previews).
  • Dual-Pack Quick-Apply Copy (QuickApplyCopyModal): Decouples UI language from portal output. The Overseas Pack leaves untranslated Chinese fields strictly blank rather than leaking Han characters into English forms; the Domestic Pack builds a <=120-character zero-fabrication Boss Zhipin greeting without truncating numbers mid-claim.
  • One-Role-One-ZIP Delivery Pack (jobDeliveryPack.ts, Pro): Bundles four synchronized files per role — editable native .docx, 01-change-receipt.md (with a baseline-verified Zero-Hallucination Evidence-Lock Receipt), 02-cover-letter.md, and 03-interview-prep.md (STAR pressure prompts anchored to adopted quantified bullets and diffs).
  • Incremental Bilingual Workbench (bilingualTranslator.ts, Pro): Fingerprints source blocks so only changed sections re-translate, skips user-locked blocks (lockedBlockIds), preserves company/title glossaries, audits numeric/unit magnitudes, and forks standalone English résumés in one click.

4. ISO A4 Print Engine & Context-Aware Redaction

  • 21 A4 Templates & 24 Palettes: Ships 4 MIT free templates, 12 Pro domain layouts, and 5 Pro Signature flagships (all 17 Pro support live real-résumé try-on in the gallery), paired with 24 tri-tone palettes (12 free + 12 Pro) and offline dual-font stacks (plus optional Cloudflare R2 cn-font-split fonts with a 2500ms silent fallback).
  • Physical Millimeter Ruler, O(N) Pagination & Binary 1-Page Fit: A4PageCanvas.tsx measures true device pxPerMm via a 210mm × 297mm ruler; paginationEngine.ts runs single-pass O(N) pagination keeping headings attached (keepWithNext) and splitting 4+ bullet entries cleanly at <li> boundaries. onePageFitter.ts fits to 1 page in <=7 binary steps while holding hard readability floors (>=8.5pt CJK body, >=1.28 line height, >=9.5mm margins), paired with proseTightenerEngine.ts widow-line trimming.
  • Dual Print Mode & Lossless Exports: printChannel.ts exports searchable full-color digital vector PDFs by default and includes a one-click monochrome office laser ink-saver mode (inkSafePrint), alongside native 3-skeleton OOXML .docx, JSON Resume v1, and Markdown.
  • Context-Aware Privacy Redaction: Across preview, PDF, .docx, and ZIP exports, importExport.ts strips personal contact details, employer names, locations, and avatars while protecting Chinese university names and Latin technical compounds via boundary lookarounds.

5. Model-Agnostic BYOK (5 Protocols × 12 Presets) & Dual-Platform Zero-Log Relay

CV-Tailor bundles no platform keys. API keys default to tab-scoped sessionStorage and bind strictly to the active protocol + origin + basePath identity:

Canonical Protocol ID (src/byok/byokProtocols.ts) Endpoint Path Auth Header Covered Presets & Services (12 Built-in Presets)
openai-chat-completions /chat/completions Authorization: Bearer DeepSeek, Qwen (DashScope), Kimi, Zhipu GLM, MiniMax, SiliconFlow, OpenAI, Custom Gateways
openai-responses /responses Authorization: Bearer OpenAI Responses API (gpt-4.1, gpt-4.1-mini, o4-mini, etc.)
anthropic-messages /messages x-api-key + anthropic-version Official Anthropic Claude Messages API (direct browser access + optional relay fallback)
ollama-chat /api/chat None (local) Local offline Ollama (http://localhost:11434, NDJSON streaming)
gemini-generate-content /v1beta/models/{model}:generateContent x-goog-api-key Google Gemini Native API (SSE streaming via :streamGenerateContent?alt=sse)
  • Reasoning <think> / <thought> Stripping, HTTP 400 Auto-Downgrade & Vision Probe: jsonExtractor.ts strips <think> / <thought> reasoning blocks without breaking JSON strings. When an endpoint returns HTTP 400 rejecting optional fields (temperature, top_p, seed, response_format, responseMimeType, or thinking), byokClient.ts strips the rejected parameter and retries automatically (up to 3x). Vision capability is verified via a 3-step swapped-color PNG + no-image control probe.
  • Isomorphic Vercel & Cloudflare Pages Zero-Log Relays: Both api/byok-proxy.ts (Vercel) and functions/api/byok-proxy.ts (Cloudflare Pages Functions) enforce DNS-pinned outbound connections, private/metadata IPv4 & IPv6 SSRF blocking, Origin allowlists, 60 req/min rate limits, 4 MiB caps, and zero payload logging. Full guide in docs/BYOK_PROVIDERS.md.

Quick Start

Use online immediately (no sign-up)

No local setup needed: open the official full-featured site https://cv-tailor.win (with Pro redemption, zero-log BYOK relay, and R2 sliced fonts live), or jump straight to #/ats for a full six-dimension checkup with no account or key. A pure-static backup mirror is also available at https://duyunzhoudyz.github.io/CV-Tailor/ (full client-side workflow, direct-CORS BYOK, and local Ollama).

Dual path/hash routing (src/core/appRouter.ts) serves three entry points:

Hash Route Path Route (Official / Self-Hosted) Purpose Login / API Key
#/ / Landing page: live A4 template/palette switcher and 4 career sample personas None
#/studio /studio Main workbench: Master library, batch JD queue, Methodology Clinic, translation, exports No login (own key only for live LLM calls)
#/ats /ats Standalone ATS check: drop a PDF/DOCX or paste text for 6-dim audit and 1-click studio import None

Run locally & self-hosting (developers)

Prerequisites: Node.js >=22.13.0 (pinned in .nvmrc) and npm >=10.0.0.

git clone https://github.com/duyunzhoudyz/CV-Tailor.git && cd CV-Tailor
npm ci
npm run dev

Open the printed URL (default http://localhost:5173). During npm run dev, vite.config.ts mounts /api/byok-proxy and /api/license middleware automatically — no separate backend needed.

Want to self-host on Cloudflare Pages, Vercel, GitHub Pages, or Node/Docker? See docs/DEPLOYMENT.md, .env.example, docs/LICENSE_AND_SHOP_OPERATIONS.md, and docs/R2_FONT_SPLIT.md for deployment setup, security headers, licensing, and optional R2 sliced fonts.


Free edition vs. hosted Pro

Every line of source code — all 21 template renderers, methodology engines, export pipelines, and Serverless functions — is open source under the MIT License without obfuscation. Pro is an optional hosted service; tier capabilities strictly match src/core/editionManager.ts and LICENSING.md:

Dimension Free Edition (¥0 Forever) Hosted Pro (¥8.8/mo or ¥28.8 One-Time)
A4 Templates 4 MIT base templates watermark-free forever; live try-on of all 17 Pro templates with your real résumé in the gallery All 21 templates (4 base + 12 Pro domain + 5 Signature flagship) unlocked for watermark-free export
Palettes & Dual Fonts 12 curated palettes + all offline dual-font stacks & 5 pairings + optional R2 sliced fonts All 24 palettes + custom Hex brand accent auto-derivation
Documents & Version Diff 2 documents (1 Master + 1 Tailored) Unlimited documents + reorder-aware cross-version field/word Diff merge-back
Local Snapshots 2 local rollback snapshots 30 local rollback snapshots
Deterministic Audit, Offline Fix & Import Full 6-dim audit, standalone #/ats, dual-track X-Ray, multi-JD batch queue, 0-second 3-style offline trial fix, legacy PDF/DOCX import Same + ATS X-Ray diagnostic report export
BYOK Live AI & Bilingual Single-bullet BYOK polish, micro-probes, entry-scoped aiRiskGuard verification Whole-document batch rewrite, block-locked incremental bilingual translation workbench (own BYOK key required)
Single-Doc Exports vs. Delivery Pack Single-document watermark-free forever: vector PDF (full-color & ink-saver), native .docx, JSON Resume v1, Markdown, dual-track Quick-Apply copy Same across all 21 templates + One-Role-One-ZIP Delivery Pack & Interview deep-probe ammunition pack

Local developer evaluation: Running npm run dev unlocks a dev-only preview toggle and local demo key (RMP-PRO-2026-OPEN) in the Edition modal so contributors can test all 21 templates and Pro flows locally; both are stripped from production builds.


21 A4 template catalog summary

Canonical template IDs, layout shells, and compression curves live in src/templates/templateCatalog.ts and docs/TEMPLATES_AND_METHODOLOGY.md; the 4-step guide for adding a template is in docs/TEMPLATE_AUTHORING.md:

Category Count (Free / Pro) Template IDs & Target Personas
Engineering & AI 4 (2 / 2) ats-standard (Free), silicon-architect (Free), geek-sample-programmer, ai-architect-pro — Backend/frontend, systems architecture, LLM & Agent engineering
Campus & Internship 3 (1 / 2) campus-scholar (Free), chinese-latex-clean, campus-honors-pro — Education-top layout, MS/PhD recruiting, management trainee programs
Bilingual & Global 2 (1 / 1) bilingual-modern (Free), global-bilingual-pro — MNCs, cross-border roles, distributed global teams
Product, Biz & Finance 3 (0 / 3) product-growth-pro, geek-pm-classic, finance-consulting-pro — Growth PM, business analytics, MBB consulting & pure-black WSO finance
Design & Creative 2 (0 / 2) sidebar-ink-pro, swiss-minimal — UI/UX design, design engineering, Bauhaus grid portfolios
Executive & Academic 2 (0 / 2) executive-slate-pro, academic-research-pro — Directors/VPs, researchers & faculty (with [1][2] hanging publication numbering)
Signature Series 5 (0 / 5) editorial-monograph-pro, deedy-modern-pro, atelier-swiss-pro, executive-ivory-pro, kinetic-tech-pro — Editorial serif monograph, 30/70 modern Deedy, numbered Swiss grid & frontier AI flagships

Agent / Developer Quick Reference

Machine-scannable index for AI coding agents, automated reviewers, and contributors (BoardUI design system rules live in root AGENTS.md).

1. Project Metadata

Property Verified Value Authoritative Source
Architecture Local-First client-side React SPA + optional stateless Serverless APIs package.json · vite.config.ts
Runtime Engines Node.js >=22.13.0 · npm >=10.0.0 .nvmrc · package.json
Core Stack React 19.1 · TypeScript 5.8 · Vite 6.3 · Tailwind CSS 4.1 · React Aria / BoardUI · Zod 4.6 package.json · tsconfig.json
Document & Crypto Libs pdfjs-dist (bundled cmaps + standard_fonts) · mammoth · jszip · @noble/curves (Ed25519) package.json
Catalog Baselines 21 A4 templates · 24 palettes · 5 canonical BYOK protocols · 12 provider presets scripts/docs-check.mjs
Verification Baseline 36 Vitest suites / 940 passing tests · 0 high/critical prod vulnerabilities (npm audit --omit=dev) docs/VERIFICATION_REPORT.md · .github/workflows/ci-deploy.yml
Source License MIT License (trademark & hosted Pro notice in LICENSING.md) LICENSE · LICENSING.md

2. Repository & Module Map

CV-Tailor/
├── src/
│   ├── App.tsx                          # Main studio workbench (#/studio) & state orchestration
│   ├── core/
│   │   ├── resumeSchema.ts              # ResumeDocument Zod schemas, migrations & deterministic hashing
│   │   ├── storageRepository.ts         # Checksummed StorageEnvelope dual-slot writes, 3 cold backups & doc hub
│   │   ├── versionDiff.ts               # Stable-ID + semantic-key pairing, field/word diffs & reorder detection
│   │   ├── bilingualTranslator.ts       # Block hash incremental translation, lockedBlockIds, glossary & unit audit
│   │   ├── importExport.ts              # Native 3-skeleton OOXML .docx, JSON Resume v1 & boundary-safe redaction
│   │   ├── jobDeliveryPack.ts           # Per-role ZIP (.docx + Evidence-Lock Receipt + cover letter + interview prep)
│   │   ├── editionManager.ts            # Free vs Pro capability catalog (EDITION_CATALOG SSOT)
│   │   ├── licenseService.ts            # Synchronous client-side Ed25519 ticket verification & device binding
│   │   ├── documentParser/              # PDF.js CMap garble circuit breaker, DOCX extractor, rule & AI mappers
│   │   └── appRouter.ts / i18n.tsx      # Path + Hash router (#/, #/studio, #/ats) and zh-CN / en-US localization
│   ├── methodology/
│   │   ├── methodologyContract.ts       # SSOT contract: banned buzzwords, 3 ownership tiers & score-gain gate
│   │   ├── resumeAuditEngine.ts         # Deterministic 6-dim audit (8 career stages), timeline & past-tense checks
│   │   ├── techLexicon.ts               # Symbol-aware tokenizer (.NET/C++17/Go/C guards) & 40-group ATS synonyms
│   │   ├── quantificationCoach.ts       # STAR/XYZ slot micro-probes, pp vs % math & 0s 3-style offline rewrite lab
│   │   ├── aiRiskGuard.ts               # Post-LLM guard: targetRef fact isolation, metric-swap & skill-stuff blocks
│   │   ├── proseTightenerEngine.ts      # Repeated opening-verb diversification, widow tightening & skill cleanup
│   │   ├── jdGapAnalyzer.ts             # JD keyword extraction & master-recoverable proof vs. true gap split
│   │   └── batchJdQueue.ts              # Client-side multi-JD parser, abortable queue & 1-click draft spawner
│   ├── byok/
│   │   ├── byokProtocols.ts             # 5 native protocol builders, reasoning exemptions & stream frame parsers
│   │   ├── byokClient.ts                # 12 presets, target-bound secrets, HTTP 400 downgrade retries & vision probe
│   │   ├── jsonExtractor.ts             # Quote-safe <think>/<thought> stripping & balanced JSON extraction
│   │   └── promptSecurity.ts            # Zero-width/bidi sanitizer & per-call random-nonce untrusted input fences
│   ├── templates/
│   │   ├── templateCatalog.ts           # 21 A4 template metadata catalog (SSOT)
│   │   ├── designTokens.ts              # 24 tri-tone palettes (12 free + 12 Pro), dual-font stacks & 5 pairings
│   │   ├── AtsXrayInspector.tsx         # Domestic/Global ATS checks, EEO red lines & 2-column interleaving sim
│   │   ├── r2FontLoader.ts              # Optional Cloudflare R2 cn-font-split loader with 2500ms silent fallback
│   │   └── renderer/                    # templateManifest, A4PageCanvas mm ruler, paginationEngine O(N) push,
│   │                                    # onePageFitter binary compact/elastic solver, printChannel color/ink-safe
│   ├── components/                      # QuickApplyCopyModal, studio panels & BoardUI component kit
│   ├── pages/                           # LandingPage.tsx (#/) and StandaloneAtsPage.tsx (#/ats)
│   └── __tests__/                       # 36 Vitest unit & UI integration test suites (940 tests)
├── api/                                 # Vercel Serverless: byok-proxy.ts & license.ts
├── functions/api/                       # Cloudflare Pages Functions isomorphic adapters: byok-proxy.ts & license.ts
├── docs/                                # Architecture, methodology, BYOK, deployment & operations documentation
└── scripts/                             # lint-check.mjs, docs-check.mjs, license key generator & admin CLI

3. 7-Gate Verification Suite

Run all 7 CI gates (.github/workflows/ci-deploy.yml) before submitting code or doc changes:

npm audit --omit=dev --audit-level=high
npm run typecheck
npm run lint
npm run docs:check
npm test
npm run build
npm run check:pdf-assets
Gate Command Enforcement Scope
npm audit --omit=dev --audit-level=high Audits runtime production dependencies and blocks on any High or Critical advisory
npm run typecheck Runs tsc --noEmit across src/, api/, and vite.config.ts with zero errors
npm run lint Runs scripts/lint-check.mjs: enforces BoardUI semantic tokens, blocks leaked secrets, forbidden relays, and console.log/debugger
npm run docs:check Runs scripts/docs-check.mjs: reconciles 21 template IDs, 5 protocols / 12 presets, .env.example keys, 4 screenshots, brand assets, and Markdown relative links
npm test Runs vitest run across all 36 suites (940 unit and integration tests)
npm run build Runs tsc -b && vite build to verify production bundling and pdfjs-dist asset copying
npm run check:pdf-assets Verifies dist/pdfjs/cmaps (>= 160 .bcmap files) and dist/pdfjs/standard_fonts (>= 14 font files) so CJK CID PDFs never garble silently

4. Core Architectural & Security Invariants

  1. Pure-Function Compute/Render Separation & Local-First Backward Compatibility: Scoring, gap analysis, and rewrite verification are pure functions testable directly in Node with zero DOM dependency; never add cloud résumé storage or login walls; new ResumeDocument fields must carry defaults inside migrateResumeDocument, preserving legacy storage prefixes (rmp_*, jj_device_fingerprint_v1, jianjiang_assets_v1).
  2. Zero Bundled Keys & Target-Bound Secrets: Never hardcode billing API keys or unofficial relays; rmp_byok_secret_v1 defaults to sessionStorage and unlocks only when v: 1 matches the active protocol + origin + basePath identity.
  3. Scoped Fact Isolation & Nonce Prompt Fences: All untrusted input passes through promptSecurity.ts control-character stripping and per-call random-nonce tags; aiRiskGuard.ts isolates verifiedFacts per targetRef and never merges global skill pools across entries.
  4. BoardUI Semantic Token Discipline: Follow AGENTS.md — use semantic color tokens and composite typography utilities instead of raw Tailwind palette classes (bg-white, text-gray-*) so light and dark themes flip automatically.
  5. Fail-Closed Licensing & DNS-Pinned SSRF Relay: /api/license returns 500/503 when signing keys or Upstash Redis are missing (never falls back to an in-memory Map); both api/byok-proxy.ts and functions/api/byok-proxy.ts maintain DNS-pinned sockets, HTTPS-only enforcement, and private/metadata IPv4 & IPv6 blocking.
  6. Code-to-Docs SSOT Parity: Any change to templates, BYOK protocols/presets, or env.* variables must update docs/TEMPLATES_AND_METHODOLOGY.md, docs/BYOK_PROVIDERS.md, and .env.example so npm run docs:check passes.

5. Explicit Non-Goals & Known Engineering Limitations

  • Explicit Non-Goals (see docs/ROADMAP.md):
    • No user account system, cloud résumé database, or cross-device cloud sync;
    • No job-board scrapers, job feeds, automated mass-apply bots, or social communities;
    • No native mobile apps, mini-programs, or Electron wrappers — focused on modern web browsers;
    • Zero server-side logging of API keys, résumé content, or job descriptions;
    • Zero fabricated metrics, and zero watermarks or rasterized PDF downgrades on free exports.
  • Known engineering limitations:
    • Image-only scanned PDFs contain no text stream; the local parser halts with a clear warning and requires either a vision-capable BYOK model or pasted text;
    • Privacy redaction relies on field variants and heuristic regexes — review free-form prose before sharing a redacted draft externally;
    • Browser print pagination varies slightly across engines; desktop Chromium (Chrome or Edge 120+) is recommended for final vector PDF export.

Documentation map

Layer Document Scope
Usage & Methodology docs/BYOK_PROVIDERS.md 5 protocol specs, 12 preset endpoints, per-OS OLLAMA_ORIGINS, vision probing, and troubleshooting
docs/TEMPLATES_AND_METHODOLOGY.md All 21 A4 templates (SSOT), 24 palettes & dual-font rules, XYZ/STAR/CAR/ATS decision trees, and 8-stage weights
docs/FAQ.md Live Pro try-on, Master library vs. snapshots, CMap circuit breaking, color/ink-saver print settings, recovery
Deployment & Extension docs/DEPLOYMENT.md Deploying to Cloudflare Pages (cv-tailor.win), Vercel, and GitHub Pages, security headers, and env vars
docs/LICENSE_AND_SHOP_OPERATIONS.md Self-hosted Pro key generation (generate-shop-keys.mjs), Ed25519 keypairs, redemption ops, device transfer
docs/R2_FONT_SPLIT.md Optional Cloudflare R2 + cn-font-split sliced web fonts and 2500ms silent offline fallback
docs/TEMPLATE_AUTHORING.md 4-step checklist for adding A4 templates, domain lexicons, and JSON Resume v1 mapping
Architecture & Governance docs/ARCHITECTURE_AND_DECISIONS.md Layered system architecture, open-source comparisons, and Architecture Decision Records (ADR-01 to ADR-11)
docs/VERIFICATION_REPORT.md CI quality gates, Vitest coverage matrix, and manual A4 print verification checklist
docs/ROADMAP.md Five product guardrails, delivered milestones, and v1.1+ community directions
SECURITY.md · LICENSING.md · CONTRIBUTING.md · CHANGELOG.md · CODE_OF_CONDUCT.md Private vulnerability disclosure, MIT + hosted Pro transparency, contribution guide, changelog, code of conduct

Community and feedback

  • Hit a parser edge case, pagination quirk, or feature idea? Open an Issue or submit a Pull Request (workflow in CONTRIBUTING.md).
  • If CV-Tailor helped during your job hunt, leave a Star or click Watch → Releases to follow upcoming updates.
  • For security vulnerabilities, use the private disclosure process in SECURITY.md — please do not open a public issue.

Acknowledgements

Thanks to the maintainers of React, Vite, Tailwind CSS, React Aria / BoardUI, Zod, PDF.js, mammoth, JSZip, @noble/curves, and the other open-source packages this repository builds on. See package.json for the full dependency list; each package's own license applies.


Other open-source projects by the author

Project Description
dyz-gongwen-skills (Chinese Official Document Skills / 公文写作 Skills) 22 AI skills for writing Chinese official documents (gongwen) in government agencies, schools, public institutions, and enterprises: drafts use only user-supplied facts, format Word files to the GB/T 9704 national standard, run 13 automated lint categories, and stop on classified markings across 7 coding agents, web LLM chat prompts, and air-gapped intranets.
dyz-plain-talk-decoder (Plain-Talk Decoder / 人话解码器) An information-filtering and substance-extraction assistant. Uses AI Agents to fetch, classify, fact-check, and strip filler or PR spin from articles, press releases, and videos, laying out the plain facts, subtext, and practical takeaways.
dyz-med-paper-skills (Medical Paper Writing Skills) Agent skills for Chinese clinicians and medical graduate students writing academic papers, with 32 skills covering PubMed literature search, statistical analysis, Chinese and English manuscript drafting, journal selection, submission, and peer-review rebuttal for Claude Code and Codex.
dyz-patent-copyright-skills (Patent & Software Copyright Skills) Agent skills and local utilities for patent, software copyright, and technical-standard workflows. Drafts and cross-checks only from user-provided materials to produce internal candidate drafts for professional review.

License

All source code in this repository is released under the MIT License — free to clone, audit, modify, and self-host commercially. Brand names, logo assets, and the optional hosted Pro service are detailed in LICENSING.md.

Explore related projects

Loading…