Semantic-CV - a schema.org/Person based CV Generator
Semantic‑CV is a minimal, idiomatic convention for expressing CV data using the global standard schema.org/Person. It does not introduce a new schema. Instead, it applies existing fields consistently and adds only a few carefully chosen extensions.
The goal is a future‑proof, machine‑readable, deterministic CV format that can be rendered into clean, professional documents — without lock‑in, bloat, or proprietary structures.
Features
- Analyze JSON‑LD CVs
- Normalize CVs (sort experience, correct types, trim fields, enforce conventions)
- Watch mode for continuous validation
- HTML rendering via templates
- Minimal runtime dependencies
- Deterministic, reproducible output
Roadmap
- More HTML templates
- Hosted rendering at https://semantic.cv
Installation
npm i -g semantic-cv
Usage
semantic-cv init
semantic-cv add <section>
semantic-cv set <name> <value>
semantic-cv analyze
semantic-cv watch
semantic-cv normalize
semantic-cv convert <filename|url>
semantic-cv render <theme>
semantic-cv help
Philosophy
Semantic‑CV is built on four principles:
Use global standards
- No proprietary schemas
- No reinvention
Be minimal
- Only the fields needed to express CV data
- No plugins, no extensions, no ecosystem sprawl
- Minimal dependencies — only essential, stable libraries like semver or HTML rewriting primitives.
Be deterministic
- Predictable, reproducible output
- No hidden heuristics
Be semantically correct
- Every field carries meaning beyond the CV
- Data should remain valid outside the rendering context
Base Structure
A Semantic‑CV document is a JSON‑LD object shaped as a schema.org/Person:
{
"@context": "https://schema.org",
"@type": "Person",
"...": "other Person fields"
}
Minimal Valid semantic-cv Example
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Henrik Becker",
"jobTitle": "Software Engineer",
"description": "Henrik Becker is an experienced .Net developer and solution architect dedicated to delivering quality software practicing Agile Processes, Test Driven Development, applying SOLID principles and a healthy dose of dad-jokes."
}
Getting started & adding content
Examples
# Prompts for basic info (name, job title, etc.) and creates cv.json
semantic-cv init
# Prompts for adding work experience entries
semantic-cv add worksFor
# Prompts for adding education entries
semantic-cv add alumniOf
# Prompts for adding keywords (skills) to a work or project entry
semantic-cv add keywords
# Adds a project (a role in a Project instead of an Organization)
semantic-cv add project
# Sets a single value
semantic-cv set name Yoda
add sections
| Section (and aliases) | Adds |
|---|---|
worksFor, work, employer, employment |
A job, as a Role at an Organization |
project |
A project, as a Role in a Project |
keywords, keyword |
Keywords on a work or project entry |
alumniOf, education, school |
Education |
skills, skill |
Skills |
knowsAbout, competence |
Knowledge areas |
knowsLanguage, language |
Languages |
sameAs |
A link to a profile elsewhere |
hasCertification, certification, cert |
A certification |
hasCredential, credential |
A credential |
lifeEvent |
Awards, talks and other milestones |
Unknown sections are ignored. Every command normalizes the file before it saves it.
set
semantic-cv set <property> [value] [filename] prompts for the value if you leave it out. It supports name, jobTitle (title), description, email, telephone (phone), url (website), image, workLocation, nationality and theme. Other properties are rejected and the file is left untouched.
Converting a JSON Resume
semantic-cv convert <filename|url> [output]
Converts a JSON Resume file, given as a path or a URL, to a Semantic‑CV file. It asks before overwriting an existing output file. Data with no schema.org equivalent is dropped. Other formats are rejected with "Unsupported format".
Analysing JSON‑LD CVs
One‑off analysis
semantic-cv analyze <filename>
The command exits with code 1 if it finds errors (warnings do not count), so it can gate a CI job.
Continuous analysis
semantic-cv watch <filename>
Both commands operate recursively on all JSON‑LD files in the current working directory when no filename is provided.
Normalization
semantic-cv normalize <filename>
The normalize command:
- Sorts work experience, education, projects, certifications, and life events in descending chronological order
- Converts single values to arrays (and arrays to single values) when the schema expects it
- Trims surrounding whitespace from strings
Required fields
Schema.org is permissive, but a CV still needs a few core fields to be meaningful:
- @context
- @type
- name
- description
- jobTitle
Everything else is optional.
Additional checks
The analyzer also checks for:
- invalid URLs
- missing or malformed fields
- structural inconsistencies
- unexpected types
Errors and warnings are printed directly to the console. Template authors should assume all fields are optional and implement appropriate null checks.
Rendering
semantic-cv render <theme> [filename=cv.json]
Renders your CV using the selected theme. If no filename is provided, cv.json in the current directory is used
Language and headings
The headings follow the language of your CV. Give it in @context, the JSON-LD way:
"@context": ["https://schema.org", { "@language": "sv" }]
Swedish (sv, sv-SE, …) gets Swedish headings; any other language, or none, gets English. The language also ends
up as <html lang> on the rendered page.
To use your own headings or labels, give your theme as an object and add the ones you want to change. Those you leave out follow the language of your CV:
"theme": {
"@type": "Theme",
"name": "lena",
"headings": { "worksFor": "Uppdrag", "skills": "Verktyg" },
"labels": { "present": "nu" }
}
The headings are contact, description, knowsLanguage, knowsAbout, skills, certifications, worksFor,
alumniOf, projects and lifeEvent; the only label is present, shown instead of an end date for a role that hasn't
ended. semantic-cv analyze warns about any other key.
Conventions by CV Area
Conventions for each CV area — including recommended fields, ordering rules, and semantic patterns — are documented in the dedicated reference: https://semantic.cv/docs/conventions
Contributing
Bug reports, ideas and pull requests are welcome. See CONTRIBUTING.md and the code of conduct.