Skip to content

Jev directory

Jev for Elixir — dannote

An Elixir client that treats Jev as a peer GenServer: you reply with questions and its typed answers arrive as messages you pattern-match, with network-free tests.
Stars
36
Language
Elixir
License
MIT
Reading time
4 min
Published by
Community
Author
dannote
Last verified
Sep 2026

dannote/jev

User repository on GitHub

View on GitHub

TypeSafe Jev for OTP: reply to Jev from a GenServer and pattern match on its answer

Forks
6
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

TypeSafe Jev and compatible decision models for OTP. Jev is a peer process. You reply to it from a GenServer, and its answer is a message you pattern match on. Nothing below handleanswer/3 touches the network, so tests call it with a literal map. The server never blocks on Jev: a hundred calls can be in flight, and each answer finds its clause when it lands. Or, without a key, point at a self-hosted model that speaks the same wire format, see Endpoints.

Quoted from the project's README. Read the full README.

Highlights

  • Question shorthands are typed by criteria shape: a string is a Noul, a question and map tuple is a Choice, and a question and list tuple is a Score.
  • Replies are plain maps with label atoms, expected score floats, probabilities, confidence, usage, and the concrete model that answered.
  • The server never blocks on Jev: a hundred calls can be in flight and each answer finds its handle_answer/3 clause when it lands.
  • Backends are swappable via the Jev.Backend behaviour, so a cascade can ask a local model first and escalate to Jev when confidence is low.

Quickstart

elixir
# mix.exs
def deps do
  [{:jev, "~> 0.1"}]
end

# config
config :jev, api_key: System.get_env("TYPESAFE_API_KEY")

Watch out

MIT-licensed. Requires Elixir 1.18+ and Erlang/OTP 27+ and a TYPESAFE_API_KEY, though a self-hosted model speaking the same wire format works without one.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: An Elixir port of the official SDK

Other listings of this project

Forks and copies of this project in the directory. This entry is the canonical one.

10GitHub stars
A small, idiomatic Elixir client for Jev: Jev.ask?/2 returns a real boolean, choose/3 picks among supplied options, score/3 rates ordered levels, and analyze/3 sends several typed questions in one provider request.
Jev Repos & SDKs#community#catalog-import#madewithjev

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