jev-compiler weekly downloads statistics
Compile natural-language instructions into Jev programs: narrow evidence questions for the model, the verdict computed in code.
jev-compiler has 143 recorded weekly downloads on npm, a decrease of 78.2% over the past 30 days, ranking #2552 of 3,247 tracked listings.
About jev-compiler
jevc
Turn the rules your agent keeps ignoring into gates you can test.
Your CLAUDE.md says NEVER commit unless the user explicitly asks, and the agent commits
anyway — because a markdown rule is a suggestion the model re-reads fresh every turn.
jevc compiles a rule like that into a Jev program: a few narrow typed questions
answered by TypeSafe's System One model (jev-1.13.0 — non-generative, returns
probabilities, never text), plus a reducer that computes the verdict in ordinary code. The
rule stops being prose the model weighs and becomes an invariant you can read, diff and
unit-test.
It is for anyone shipping a gate an LLM currently judges — a Claude Code PreToolUse hook,
a tool-call guard, a model router, an output verifier — who needs that decision to be
reproducible and reviewable.
Start here
npm install -g jev-compiler # the package is jev-compiler; the command it installs is jevc
jevc check # replays the recorded corpus, offline
jevc scan . # what this project could enforce
From source instead: git clone https://github.com/doronp/jevc && cd jevc && npm install && npm run build,
then npx jevc … from the checkout. Node >= 22 to run the test suite.
$ npx jevc check
58 fixtures, 58 passing, 0 failing
No API key, no network — not for the tests, the examples, or anything in this README
except jevc check --live.
Your rules are already in the repo
Point jevc scan at a project. It finds the instruction files agent harnesses actually
read — CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules,
.github/copilot-instructions.md, .claude/skills/**, .claude/agents/** — and sorts
what it finds into what can be enforced and what cannot:
$ npx jevc scan examples/sample-project
examples/sample-project
CLAUDE.md 13 rules 7 decidable 4 procedure 2 generation
AGENTS.md 7 rules 5 decidable 2 procedure 0 generation
.claude/skills/release/SKILL.md 12 rules 4 decidable 6 procedure 2 generation
32 rules across 3 files. 16 look decidable — those are the ones that can become typed Jev questions.
Start with CLAUDE.md, which has the most:
7 NEVER commit unless the user explicitly asks. Produce the message; let the human ru…
8 Never delete tracked files. If something looks unused, say so and stop.
9 Do not push to `main`. Open a branch and a PR.
10 Ask before adding a dependency. We audit the lockfile by hand every release.
11 Migrations under `db/migrations/` are append-only once merged. Write a new one inst…
… and 2 more
Next:
jevc compile examples/sample-project/CLAUDE.md --lift
Hand the request it prints to the agent you already have open. No second API key.
...
The ... is one elided paragraph: scan's own note that this classification is a text
heuristic and the list is worth reading rather than the counts
(why that is fine here).
A prompt braids three different things together, and only one of them compiles:
| Part | Example | Compiles? |
|---|---|---|
| Decision | "is this command dangerous?", "which team owns this?" | yes |
| Generation | "write a summary", "explain your reasoning" | never — Jev emits no text |
| Procedure | "read the file before editing it" | no — that is control flow; it belongs in code |
No tool can turn a whole prompt into an equivalent Jev program.
jevc separates them, and every compilation emits all three parts: the decision set, the
residual prompt for whatever genuinely still needs a generative model, and the wiring
that evaluates the first and calls the LLM only for the second. A compilation that produces
no decisions is a valid answer — that prompt had no System One content, and jevc says so
instead of inventing questions.
jevc compile <file> --lift prints a lowering request for the agent you already have open
(Claude Code, Codex, Cursor), which returns candidate decisions as JSON. No second API key,
no second bill. JSON Schema is still a first-class input — it is just no longer the front
door, because your existing files are.
Before and after, for one rule
Before. The rule lives in CLAUDE.md and the model weighs it against everything else
in the file. It usually holds. When it does not, there is nothing to inspect: no record of
which part was weighed, no way to write a test, and the only available fix is to make the
sentence louder. Escalating to a second LLM call — "you are a policy checker, return
JSON" — trades one unreviewable judgment for another and bills you for it. That prompt is
real, and it is in this repo: 1,089 characters of instructions, four judgments held in one
head, a hand-parsed JSON envelope (fixtures/agent-harness-rules.json,
commit-only-when-explicitly-asked).
After. Three typed questions. Measured against the fixture's state — a user who said "yeah that reading looks right, go ahead" and an agent that decided to commit:
is_commit_operation 0.96
user_explicitly_asked_to_commit 0.06 <- a bare approval is not consent
commit_required_by_requested_task 0.16
verdict, computed in code: deny
And the verdict is a block you can read in a pull request:
"rules": [
{ "when": [{ "id": "is_commit_operation", "op": "lte", "value": 0.5 }], "then": "allow" },
{ "when": [{ "id": "user_explicitly_asked_to_commit", "op": "gte", "value": 0.5 }], "then": "allow" },
{ "when": [{ "id": "commit_required_by_requested_task", "op": "gte", "value": 0.5 }], "then": "allow" }
],
"otherwise": "deny"
```…
Description from the npm listing.
- jev
- typesafe
- llm
- guardrails
- policy
- agents
- claude-code
- langchain
- ai-sdk
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm AI SDKs plugins
All 20 jev-compiler alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/jev-compiler. First seen Oct 16, 2026; last successful collection Dec 3, 2026. See the methodology.