Skip to content

Jev directory

jevQL

psql-shaped CLI and Go, TypeScript, and Python SDKs that let you write jev(), jev_prob, jev_choice, and jev_score in queries against vanilla PostgreSQL, judging the surviving rows with Jev in batches. No CREATE EXTENSION or superuser required.
Stars
14
Language
Go
License
MIT
Reading time
3 min
Published by
Community
Author
kylemclaren
Last verified
Sep 2026

About this project

Semantic SQL for vanilla PostgreSQL. One extra family of functions, jev(), works in any query, from the CLI, from a shared HTTP and MCP node, or from the Go, TypeScript and Python SDKs. The database only ever sees ordinary SQL. jev calls are evaluated by the CLI using TypeSafe's System One model (Jev). No CREATE EXTENSION, no superuser, no wire-protocol proxy. Prebuilt binaries for macOS and Linux (arm64 and amd64) are attached to each GitHub release as jevql .tar.gz with a checksums.txt.

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

Highlights

  • Adds jev(), jev_prob, jev_choice, and jev_score to ordinary SQL on vanilla PostgreSQL with no extension.
  • Postgres runs the plain SQL; Jev judges the surviving rows in batches and answers are cached in local SQLite.
  • Statements without jev_* pass straight through, and --explain shows the row count and cost estimate before spending.
  • Ships a psql-shaped CLI plus Go, TypeScript, and Python SDKs and a shared HTTP and MCP node.
  • Every row that survives the SQL filters is sent to TypeSafe, so cheap predicates belong in SQL first.

Quickstart

bash
brew install kylemclaren/tap/jevql
export TYPESAFE_API_KEY=YOUR_API_KEY
export DATABASE_URL=postgres://user:pass@localhost:5432/app
jevql -c "SELECT * FROM people WHERE jev(people, 'could work from home')"

Watch out

MIT-licensed. Needs a Postgres connection and a TYPESAFE_API_KEY; building from source requires Go 1.23+ with CGO and a C compiler because libpg_query is bundled.

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: jev(): Postgres WHERE clauses in plain language

Hacker News: A MySQL plugin that filters rows by asking Jev whether a column matches a sentence.

maayanlevy-hn2 pointsA MySQL plugin that filters rows by meaning (built on TypeSafe Jev)Read the thread on Hacker News

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