synthetic-recruiting
v0.2.1
Published
Seeded, reproducible fake recruiting funnel data with optional labeled injected bias and a ground-truth file.
Maintainers
Readme
synthetic-recruiting
Fake recruiting data you can generate in one command, for testing recruiting software without touching real candidates.
npx synthetic-recruiting generate --preset hardware_defense --seed 42 --out ./outThat writes a complete, believable hiring funnel to ./out: jobs, candidates, applications, stage-by-stage events, interviews and offers, as CSV files you can load into a database, spreadsheet, ATS import or dashboard. Every name, email and phone number is fake (@example.com, 555 numbers), and every company is invented.
Free to use, MIT licensed. Needs Node 22.6 or newer. No dependencies.
Why it exists
Anyone building or buying HR tech runs into the same problem: you need realistic recruiting data to test with, and you can't use real candidate data. Screenshots and demos with five hand-typed rows don't show how a dashboard, report, AI agent or bias audit behaves on 50,000 applications.
This tool gives you that data, and it is reproducible: the same seed and options always produce byte-identical files, so test results are comparable between runs and between people.
What you get
- Three presets.
hardware_defense(clearances, engineering roles, long funnels),software_engineering, andhigh_volume_hourly(retail, logistics, call centers). - A realistic funnel. Applications move through screens, interviews, onsite and offer. Some are rejected, some withdraw, some go silent. Time in stage, seasonality, paused requisitions and referral versus job board pass rates are all modeled.
- Candidate profiles that matter. Role family, seniority, skills, clearance, current and prior employer. Better skill match and meeting a clearance requirement change outcomes, so a tool under test has real signals to find.
- Tiered employers. Invented companies grouped into tiers (for example
unicorn,credible_startup,big_tech_adjacent), so you can ask for candidates from particular kinds of companies. - Planted bias with an answer key. Add a hidden pattern, such as one group passing the technical interview at 70% of the normal rate. The tool records exactly what it planted in
ground_truth.json, so you can check whether your analytics or audit tool finds it.
A taste of the output
candidates.csv (trimmed):
| candidate_id | full_name | role_family | seniority | current_employer | current_employer_tier | clearance | | --- | --- | --- | --- | --- | --- | --- | | C000001 | Blake Calloway | Propulsion Engineer | mid | Juniper Forge | funded_defense_startup | secret | | C000002 | Elliot Underhill | Propulsion Engineer | junior | Meridian Aerosystems | defense_prime | none | | C000003 | Cameron Bellamy | Propulsion Engineer | senior | Redwood Hollow Dynamics | defense_tech_unicorn | none |
And the summary the command prints (seed 42, 2,000 applications):
applied entered 2000 measured 19.2% median 6 days
recruiter_screen entered 363 measured 69.0% median 5 days
hiring_manager_screen entered 234 measured 74.9% median 7 days
technical_interview entered 167 measured 74.1% median 7.5 days
onsite entered 120 measured 51.3% median 10 days
offer entered 60 measured 82.5% median 6 daysTry it
Basic run (about 2,000 applications):
npx synthetic-recruiting generate --preset hardware_defense --seed 42 --out ./outPlant a bias and see whether the four-fifths check catches it (use --scale full, 100,000 applications, so the pattern is reliably detectable):
npx synthetic-recruiting generate --preset hardware_defense --seed 42 --scale full \
--inject group_pass_shift:technical_interview:group_b:0.7 --out ./outCandidates only from unicorns and credible startups:
npx synthetic-recruiting generate --preset software_engineering --seed 7 \
--employer-tier unicorn --employer-tier credible_startup --out ./outSee the employer tiers for a preset: npx synthetic-recruiting list-employers --preset software_engineering
Output files in ./out: jobs.csv, candidates.csv, applications.csv, stage_events.csv, interviews.csv, offers.csv, employers.csv, applications_flat.csv (one row per application with everything joined, easiest to import elsewhere), ground_truth.json, data_dictionary.md (every column explained), manifest.json (row counts and SHA-256 checksums, no timestamps).
Install
npx needs no install. To install globally: npm install -g synthetic-recruiting, then run synthetic-recruiting generate .... It also works as a library: import { generate } from "synthetic-recruiting" (no type declarations yet).
Working from a source checkout? Run npm run build (needs Node 22.13+) to compile src/ to dist/, then node dist/cli.js generate .... The build step exists because Node refuses to run TypeScript files inside node_modules, where npx puts a package; dist/ is plain JavaScript. npm test checks that dist/ and the TypeScript source give byte-identical output.
Options
| Option | Meaning |
| --- | --- |
| --preset | hardware_defense, software_engineering, high_volume_hourly |
| --seed | Integer. Same seed and options give byte-identical files. |
| --scale small\|full | 2,000 or 100,000 applications. --applications N sets an exact number. |
| --start, --months | First application date (default 2025-01-01) and months of arrivals (default 12). Decisions are observed 90 days past the last arrival. |
| --employer-tier <tier> | Only generate candidates whose current employer is in this tier. Repeatable. list-employers shows the tiers. |
| --employers <file.csv> | Use your own employer list instead of the preset's. Columns: name, tier, optional size_band, industry, weight. |
| --clients | Number of hiring companies the jobs are spread across, 1 to 10 (default 1). Use more than 1 to test agency or multi-client setups. |
| --inject type:stage:target:factor | Repeatable. group_pass_shift multiplies the pass probability of a group at a stage; source_pass_shift does the same for a source; employer_tier_pass_shift does the same for candidates whose current employer is in a tier (a planted "pedigree" effect). Example factor 0.7 means 70% of the normal pass rate. |
How the funnel behaves
Each application moves through the preset's stages (applied, recruiter screen, hiring manager screen, technical interview, onsite, offer). At each stage it can be advanced, rejected, withdrawn, or stall (go silent and never get a decision). Time in stage is log-normal. Application volume follows a monthly seasonal curve, requisitions open and close, and some pause (no applications arrive while paused). Applications whose decision is not yet due at the observation date stay open.
Sources differ by design (referrals pass more often than job boards), and so do candidates: later stages are enriched for good fits and high-pass sources. The expected pass rates in ground_truth.json account for this by averaging the model's own pass probability over the applications that actually reached each stage.
Candidate profiles and fit
Each candidate has a role family, seniority, years of experience, education, home metro, an invented current employer, a clearance level (defense preset only) and a list of skills drawn from their role family's skill list. Each job lists required skills, a level and (defense preset) a clearance requirement. About 85% of candidates apply within their own role family. Between 8% and 15% of applications (depending on preset) come from someone who has applied before, always to a different job in their family.
Profiles change outcomes, so a tool under test has real signals to find:
| Effect | Where | Strength (hardware_defense) | | --- | --- | --- | | Skill match (share of required skills the candidate has) | applied through technical_interview | pass probability multiplied by 1 + 1.2 x (match - 0.5), so 0.4x to 1.6x | | Clearance shortfall (candidate below the job's requirement) | applied | 0.25x | | Level gap of two or more steps (for example junior applying to a senior role) | hiring_manager_screen | 0.6x |
Strengths are per preset (fit in ground_truth.json). The hourly preset has no clearance or levels and a weak skill effect.
Employers and tiers
Every company is invented. Each preset has its own list of employers grouped into tiers, written to employers.csv (name, tier, size band, industry, and whether it is a hiring company in this run). Tiers are labels assigned by this tool; they rank no real company. A tier changes no outcome unless you plant one with --inject employer_tier_pass_shift:<stage>:<tier>:<factor>; it is then recorded in ground_truth.json like any other injection, and the run prints a four-fifths check by employer tier.
| Preset | Tiers |
| --- | --- |
| hardware_defense | defense_prime, defense_tech_unicorn, funded_defense_startup, aerospace_mid_market, established_manufacturer, small_business |
| software_engineering | big_tech_adjacent, unicorn, credible_startup, early_startup, enterprise_software, it_services |
| high_volume_hourly | national_retailer, national_carrier, third_party_logistics, contact_center_bpo, regional_chain, local_small_business |
Each job has a hiring_company. Each candidate has a current_employer and current_employer_tier, and candidates with at least 3 years of experience usually have a prior_employer and prior_employer_tier too, so moves such as unicorn to startup can be queried. Candidates never currently work at a hiring company. The tier mix is in ground_truth.json (employerTiers, hiringCompanies).
To build a dataset of candidates from particular tiers, use --employer-tier unicorn --employer-tier credible_startup. Prior employers are not filtered, so moves from other tiers into those still appear. To use your own companies, pass --employers mine.csv; the names and tiers are used exactly as given and nothing checks them. If you put real company names in that file, everything generated about them is still fake and says nothing about those companies, and ground_truth.json says so.
Bias injection and the ground-truth file
ground_truth.json records the seed, the configured rates, every injection, and what the generated data actually shows for each injection (realized: affected-group rate, reference rate, ratio, and counts). Groups are neutral labels (group_a, group_b) on fake people. With no injection, groups share identical pass rates and the adverseImpact check stays quiet; sources differ by design, so a source-level check will show differences even with no injection.
Realized values vary with sample size. At 2,000 applications very few reach the later stages, so a configured 0.7 factor can realize anywhere from about 0.5 to 1.0 and the four-fifths check can miss it. Use --scale full when you need the planted pattern to be reliably detectable.
Using it as a library
import { generate, buildFiles, adverseImpact, stageFunnel, validate } from "synthetic-recruiting";
const ds = generate({ preset: "hardware_defense", seed: 42, applications: 60000,
injections: [{ type: "group_pass_shift", stage: "technical_interview", group: "group_b", factor: 0.7 }] });
adverseImpact(ds.tables, { stage: "technical_interview", by: "group_label" }); // flags group_b
validate(ds.tables, ds.asOf); // [] means internally consistentWhat this is not
- The default rates, durations and source effects are labeled assumptions chosen to look plausible. They are not measurements of real hiring, and nobody has reviewed them against real data.
- Structured profiles only: no free-text resumes, no work-history timelines, no scorecards beyond a pass/fail per interview. Skill lists are short and generic.
- Profile effects are assumed, not measured. Real hiring has far messier signals.
- Employer tier is a label unless you plant an effect with
employer_tier_pass_shift. The default data has no pedigree effect, and tiers say nothing about how real companies compare. applications_flat.csvis a generic one-row-per-application shape for importing into other tools. It is not the export layout of any ATS vendor, and has not been loaded into one.- The schema is a generic one made for this tool. It does not follow any vendor's or industry standard.
- Not a hiring tool. Do not use it to score or rank real candidates.
- Reproducibility relies on JavaScript math functions (
Math.log,Math.cos) giving identical results across Node versions and platforms. The golden checksum test will tell you if yours differ.
Tests
npm testCovers: seed reproducibility, a golden checksum, internal consistency of every preset, profile completeness, repeat applicants, skill-match and clearance effects, calibration of pass rates, stall and withdrawal shares, durations and seasonality on a 60,000-application run, the four-fifths check staying quiet without injection and flagging an injected pattern, input validation, fake-PII checks, CSV quoting, the CLI, employer lists and tiers per preset, hiring companies and --clients, the employer tier injection, the tier filter, custom employer lists, the flat export, and the built dist/.
