Skip to content

Jev directory

Hunch (TypeScript)

Probabilistic control flow for TypeScript: Hunch asks a System One model such as Jev yes/no questions, thresholded booleans, picks and ratings, and returns typed answers you can branch on in ordinary code.
Stars
1
Language
TypeScript
License
MIT
Reading time
2 min
Published by
Community
Author
carldaws
Last verified
Oct 2026

This is one of several Jev listings for the same project. The canonical entry is Hunch — carldaws.

Highlights

  • Wraps decisions in plain English: chance returns 0-1, and possibly/likely/probably/almostCertainly map to thresholds 0.25/0.5/0.75/0.93.
  • pick chooses among named options and rate returns a level with a position and atLeast comparisons; answers are typed as the union of your option names.
  • hunch.decide batches several questions about the same data into one API call, returning answers, probabilities and per-answer confidence.
  • Points at any System One endpoint; the README's example uses OpenRouter's decisions endpoint with typesafe/jev-1.13.
  • The example Next.js app includes Zod validation and tests, and the library is a port of the hunch Ruby gem.

Quickstart

bash
npm install @carldaws/hunch

Watch out

Grounded in the truncated repository README and GitHub metadata reviewed on 2026-10-15; the README cuts off inside the Next.js validation example, the package is published on npm as @carldaws/hunch, and the digest documents no benchmarks or latency numbers.

Questions about this entry

Short answers drawn from the linked project or page.

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