jev\_dart
Pure Dart client for Jev that sends state and typed questions from CLI, server or Flutter apps, tuned for low overhead.
Overview
jev_dart is a Dart package for calling TypeSafe's Jev. You send state and typed noul, choice or score questions and get structured answers your code can branch on. It has no Flutter dependency, so it works from command-line tools, servers and Flutter apps alike.
The README emphasises client-side speed and memory use: one long-lived HTTP client reuses its HTTP/2 connection, request JSON is encoded straight to UTF-8 bytes and reused across retries, and responses are parsed directly from bytes with Crimson on VM, mobile and desktop, with a standard dart:convert fallback. It reads TYPESAFE_API_KEY or JEV_API_KEY, including from .env in tests and examples.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Choice | What is this ticket about? | billing · technical · other |
How it works
- Add jev_dart to pubspec dependencies and set TYPESAFE_API_KEY
- Create a TypeSafeClient
- Call systemOne with state and typed questions
- Read typed answers and close the client
Strengths
- Works in CLI, server and Flutter
- Lower client-side encoding overhead and connection reuse
- Typed helpers for choice, noul and score
Caveats
- Community SDK; API coverage beyond the example not detailed
- Requires a TypeSafe key
Getting started
Add `jev_dart` to pubspec.yaml, set TYPESAFE_API_KEY, and call `TypeSafeClient().systemOne(state: ..., questions: ...)`.At a glance
- Type
- CLI
- Status
- beta
- Language
- Dart
- Runtime
- Dart VM, Flutter, CLI
- Has code
- yes
- Has tests
- yes
- License
- MIT
Use cases and integrations
How curated lists describe it
Jev Dart SDK to build cli, server and Flutter apps.
logicrw/awesome-jev-projects
Frequently asked questions
Does it need Flutter?
No, it is pure Dart and works in CLIs and servers too.
What makes it different?
It focuses on low client overhead: connection reuse, direct byte encoding and byte-level JSON parsing.
Which key does it read?
TYPESAFE_API_KEY or JEV_API_KEY.
Related projects
Hack Club's lightweight LLM proxy, listed for adding a Jev forwarding endpoint behind its auth, limits and usage logging.
MCP serverproductionTypeScriptAx, a DSPy-style multi-language LLM framework, listed with a native TypeSafe provider for Boolean, Choice, Score and raw Jev questions.
PluginproductionTypeScriptEffect TypeScript library whose @effect/ai-typesafe package maps classify, probability and rating operations to Jev questions.
ProjectproductionTypeScriptPHP monorepo whose Polyglot module adds a TypeSafe driver for typed Noul, Choice and Score decisions alongside LLM inference.
ProjectproductionPHPGo MCP server giving any client typed Jev decisions via OpenRouter or TypeSafe, with validated answers and no paid retries.
MCP serverproductionGoSimon Willison's LLM plugin that adds Jev as a model for yes/no, choice and score questions from the command line.
PluginproductionPython