jevbooks

← All projects

advocaat

pithings/advocaat

Type-safe client for asking Jev questions about your data.

What it is

Advocaat is a small TypeScript client for asking AI questions about a dataset, powered by TypeSafe Jev. It returns probabilities, choices, and scores in one request, aimed at developers building type-safe data triage and classification.

How it uses Jev

Jev answers typed questions about a state: yes/no (ask.if, ask.chance), choices (ask.choice, ask.switch), and scores (ask.score). Results are returned under the same keys, with .choice, .chance, .ratio, and .confidence used directly in code.

Primitives:choicescorenoul

Technique worth stealing

Send several typed questions about the same state in one ask call instead of separate requests.

Try it

npx nypm i advocaat, set TYPESAFE_API_KEY, then call ask(state, { ... }).

View on GitHub

judged by Jevjev-1.13.0

Evidence

Each line is one question put to Jev about the README. ≥ 0.60 reads as yes, ≤ 0.40 as no; in between Jev is not making a call.

  • Jev-centricyes0.89
  • Shows a System One patternyes0.79
  • Handles uncertaintyno0.05
  • Measuredno0.05
  • Runnableyes0.98
  • Worth recommendingunclear0.45
  • Model replicano0.04
  • Problem scopescore on a 0–2 scale1.03
  • About Jevyes0.96

Signals by Jev jev-1.13.0, card written by DeepSeek V4.1 Flash from the README on 20 Sept 2026.