Skip to content

Jev directory

Jev Swap

An npm CLI that scans TypeScript, JavaScript and Python codebases for LLM calls that are really decisions, converts them into Jev modules with confidence-gated fallbacks, and shadow-tests them on recorded traffic before you swap.
Stars
2
Language
HTML
License
MIT
Reading time
2 min
Published by
Community
Author
0xjba
Last verified
Oct 2026

0xjba/jev-swap

User repository on GitHub

View on GitHub

Find the LLM calls in your codebase that are really decisions, see what they'd save on TypeSafe Jev, and prove it on live traffic before you swap. TypeScript, JavaScript, Python.

Forks
0
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.Homepage

Highlights

  • Scan finds enum, boolean, small-integer-range and yes/no LLM calls across OpenAI, Anthropic, AI SDK, LangChain and raw HTTP client code.
  • Convert writes one Jev module per candidate as .ts or .py with a decide() function and a confidence-gated fallback to the original LLM.
  • Shadow replays recorded inputs and LLM outputs through Jev and writes REPORT.md; --mock runs the pipeline without any API key.
  • A live proxy at localhost:8787 mirrors traffic to Jev in parallel and shows agreement, latency, savings and a disagreement inbox.
  • Generated code targets @typesafe-ai/sdk 0.6.0 for TypeScript and typesafe-sdk 0.7.1 for Python, and requires Node 22.12+.

Quickstart

bash
npx jev-swap scan ./your-app
npx jev-swap convert
npx jev-swap shadow samples.jsonl --llm-price-in 1.25 --llm-price-out 10 --monthly-calls 1000000

Watch out

Grounded in the truncated repository README and GitHub metadata reviewed on 2026-10-15; the README's Public section was cut off. Proxy sample files contain users' inputs and should stay out of version control; streaming requests are forwarded but not mirrored, and Jev's state is only the last user message.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai