
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@driftdev/cli
Advanced tools
Command-line interface for documentation coverage analysis and drift detection. Ships as the drift binary.
bun add -g @driftdev/cli
# Full scan: coverage + lint + prose drift + health
drift scan
# Check documentation coverage
drift coverage
# Find JSDoc accuracy issues
drift lint
# Validate @example blocks
drift examples
Entry auto-detects from package.json (types, exports, main, module, bin) for TypeScript packages with an exported API surface.
| Command | Description |
|---|---|
drift scan [entry] | Coverage + lint + prose drift + health in one pass |
drift health [entry] | Documentation health score (default command) |
drift ci | CI checks on changed packages with PR comments |
| Command | Description |
|---|---|
drift coverage [entry] | Documentation coverage score |
drift lint [entry] | Cross-reference JSDoc vs code signatures |
drift examples [entry] | Validate @example blocks (presence, typecheck, run) |
| Command | Description |
|---|---|
drift extract [entry] | Extract full API spec as JSON |
drift list [entry] | List all exports with kinds |
drift get <name> [entry] | Inspect single export detail + types |
| Command | Description |
|---|---|
drift validate <spec> | Validate a spec file |
drift filter <spec> | Filter exports by kind, search, tag |
| Command | Description |
|---|---|
drift diff <old> <new> | What changed between two specs |
drift breaking <old> <new> | Detect breaking changes |
drift semver <old> <new> | Recommend semver bump |
drift changelog <old> <new> | Generate changelog |
| Command | Description |
|---|---|
drift init | Create configuration file |
drift config | Manage config (list, get, set) |
drift context | Generate agent context file |
drift report | Documentation trends from history |
drift release | Pre-release documentation audit |
drift cache | Cache management (clear, status) |
# Machine-readable list of all commands + flags
drift --tools
--json Force JSON output (default when piped)
--human Force human-readable output (default in terminal)
--config <path> Path to drift config file
--cwd <dir> Run as if started in <dir>
--no-cache Bypass spec cache
Run coverage + lint + prose drift + health in one pass.
drift scan # single package
drift scan --min 80 # fail if health below 80%
drift scan --all # all workspace packages
drift scan --all --private # include private packages
Cross-reference JSDoc against code signatures. Detects 15 drift types across 4 categories (structural, semantic, example, prose). Prose detection scans markdown files for broken import references.
drift lint # single package
drift lint --all # all workspace packages
drift lint --json # JSON output with filePath/line
Documentation coverage score.
drift coverage # single package
drift coverage --min 80 # fail if below 80%
drift coverage --all # all workspace packages
Weighted health score: completeness (coverage) + accuracy (lint).
drift health # default command (bare `drift`)
drift health --min 80
drift health --all
Validate @example blocks.
drift examples # presence check
drift examples --typecheck # type-check examples
drift examples --run # execute examples
drift examples --min 50 # fail if example coverage below 50%
CI checks with GitHub integration: PR comments, step summaries, history tracking.
drift ci # check changed packages
drift ci --all # check all packages
drift ci --private # include private packages
Generates ~/.drift/projects/<slug>/context.md — machine-readable project state for agents.
{
"entry": "src/index.ts",
"coverage": {
"min": 80,
"ratchet": true
},
"lint": true,
"docs": {
"include": ["README.md", "docs/**/*.md"],
"exclude": ["node_modules/**"]
}
}
See Configuration docs for all keys and drift config commands.
All commands return structured JSON when piped or with --json:
{
"ok": true,
"data": { "score": 88, "documented": 243, "total": 275 },
"meta": { "command": "coverage", "duration": 1234, "version": "0.38.0" }
}
Human-readable output in terminal by default, or with --human.
All analysis commands support --all for workspace batch mode:
drift scan --all # scan all packages
drift coverage --all # coverage per package
drift lint --all # lint per package
Auto-detects workspace globs from package.json.
MIT
FAQs
Drift CLI - Documentation coverage and drift detection for TypeScript
We found that @driftdev/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.