@yamlresume/samples
v0.16.1
Published
Curated sample resumes for YAMLResume
Maintainers
Readme
@yamlresume/samples
Curated, locale-aware sample resumes for YAMLResume.
Installation
pnpm add @yamlresume/samplesUsage
Load a sample resume
import { getSampleResume } from '@yamlresume/samples'
const yaml = getSampleResume('software-engineer', 'en')
// with default layouts and deterministic YAML comments injected
const yamlWithLayoutsAndComments = getSampleResume('software-engineer', 'en', {
withLayouts: true,
withComments: true,
})List sample resumes
import { listSampleResumes } from '@yamlresume/samples'
const samples = listSampleResumes()
// full sample entries including metadata and localized YAML contentsQuery sample resumes
import {
listSampleResumesByCategory,
listSampleResumesByLanguage,
listSampleResumesByTag,
listSampleResumeCategories,
listSampleResumeTags,
} from '@yamlresume/samples'
const engineering = listSampleResumesByCategory('Engineering')
const english = listSampleResumesByLanguage('en')
const python = listSampleResumesByTag('python')
const categories = listSampleResumeCategories()
const tags = listSampleResumeTags()CLI
The yamlresume CLI can create a new resume from any sample:
yamlresume new resume.yml --sample software-engineer
yamlresume new resume.yml --sample software-engineer --language zh-hansAdding a new sample
- Add the position to
POSITIONSinsrc/types.ts. - Run
pnpm build:catalogto generatemeta.yml, allmeta.<locale>.ymlfiles, and all resume files for the supported locale languages, then regeneratesrc/catalog.json.
Build generation uses @yamlresume/ai and requires an OPENAI_API_KEY
environment variable. You can override the default model with
YAMLRESUME_AI_MODEL, or use another provider via MOONSHOT_API_KEY,
DEEPSEEK_API_KEY, or OLLAMA_HOST.
OPENAI_API_KEY=sk-... pnpm build:catalogIf you only want to rebuild src/catalog.json from existing files without
generating anything, use the --catalog-only flag:
pnpm build:catalog --catalog-onlyIf you only want to generate metadata files (meta.yml and meta.<locale>.yml)
without generating resumes or building src/catalog.json, use the --meta-only
flag:
OPENAI_API_KEY=sk-... pnpm build:catalog --meta-onlyTo force regeneration of all metadata and resumes, use the --force flag:
OPENAI_API_KEY=sk-... pnpm build:catalog --forceAll meta.yml and meta.<locale>.yml files are validated with Zod schemas,
and all resume YAMLs are validated against the @yamlresume/core schema at
build time.
