typesafe-jev-examples
Worked Jev examples for ticket triage and reranking, runnable through OpenRouter without an early-access key, with offline tests.
Overview
typesafe-jev-examples provides worked Python examples for Jev that run today through OpenRouter (typesafe/jev-1.13), so you do not need TypeSafe's early-access key. A small client picks TypeSafe direct if TYPESAFE_API_KEY is set, otherwise OpenRouter. The README notes OpenRouter pricing of $0.042 per million input tokens with free output, and that only the OpenRouter path has been verified.
Example 01 routes a support ticket using seven narrow questions in a single parallel request, and a reranking example is included. Each example ships with sample data and a Makefile; make test runs offline without a key or network, and make run triages three sample tickets. It is MIT licensed and suits developers learning how to structure questions.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Choice | Which department should handle this ticket? | — |
| Yes / no | Is this ticket urgent? | yes · no |
| Score | How frustrated is the customer? | — |
How it works
- make setup and add an OpenRouter or TypeSafe key.
- Run offline tests with make test.
- Run make run to triage sample tickets with seven questions in one request.
- Read typed answers and adapt the patterns.
Strengths
- Runs without a TypeSafe early-access key via OpenRouter.
- Offline tests.
- Shows many questions in one request.
Caveats
- Direct TypeSafe path is written but untested.
- Examples, not a library.
Getting started
git clone https://github.com/rajivkuriakose/typesafe-jev-examples && make setup && make test && make runAt a glance
- Type
- Project
- Status
- prototype
- Language
- Python
- Runtime
- scripts
- Has code
- yes
- Has tests
- yes
- License
- MIT
Use cases and integrations
How curated lists describe it
Starter examples: worked ticket-triage and reranking examples runnable through OpenRouter without an early-access key, shipped with their own sample data and Makefile.
yibie/awesome-jevWorked examples for TypeSafe's Jev System One decision model, runnable today through OpenRouter
logicrw/awesome-jev-projects
Frequently asked questions
Do I need TypeSafe early access?
No, the examples run through OpenRouter.
What does it cost via OpenRouter?
The README lists $0.042 per million input tokens and $0 output.
Can I run tests without a key?
Yes, make test is offline.
Related projects
Agent skill that teaches coding agents to hand bulk semantic judgments to Jev and to find where a product could use Jev decisions.
Agent skillbetaRunnable Jev cookbooks, a plain-English guide and sixteen interactive simulations of how a typed decision model changes architecture.
AppbetaPythonResearch notes on Jev plus a live Cloudflare Worker playground that triages support messages by department, urgency and frustration.
AppprototypeTypeScriptPublic Jev playground and API site that answers typed Choice, Score and yes/no questions about pasted text in about 0.5 s.
ServiceOfficial TypeSafe cookbook recipes for guardrails, re-ranking, RAG passage classification, citation checks and more with Jev.
ArticleproductionTypeSafe cookbook showing how to evaluate many typed questions over one shared state in a single Jev request.
Articleproduction