Small experiments with Jev, each in its own folder.
TypeSafe builds System One models: models that make fast, structured decisions instead of writing text. Jev is their first one. You send it some text and a set of typed questions, and it answers each one with probabilities and a confidence. A Choice picks one option from a list, a Score rates against a scale, and a Noul answers yes or no as a probability. Jev answers in well under a second, and only input tokens are billed. Read more in the TypeSafe docs.
| Experiment | What it tries | Questions per reading | Run from the root |
|---|---|---|---|
| flight-search | Turns a trip described in plain words into a live flight search. | 43 | npm run dev:flight-search |
| expense-tracker | Tags an expense typed in plain words and keeps a running total. | 5 | npm run dev:expense-tracker |
| news-filter | Filters the Hacker News front page with a rule, asking about 30 posts in one call or one call each. | 30 | npm run dev:news-filter |
Every experiment is Next.js, TypeScript and Tailwind, and shows the cost, tokens and speed of each Jev call. Shared pieces live in packages/kit. Together they show what drives cost: the number of questions, not the length of what you type, and batching questions into one call is far cheaper than sending them one at a time.
- Run
npm installat the root. It installs every experiment and the git hooks. - Create your local env file with
cp .env.example .env.local. - Paste your key from the TypeSafe console into
.env.local. - Keep the file private with
chmod 600 .env.local. - Start an experiment with the command in the table.
Every experiment reads the key from this one root .env.local.
It is gitignored, and a pre-commit hook blocks any commit that contains it.
Run npm run lint, npm run typecheck and npm test at the root to check every experiment at once.
Create a folder at the root, add it to workspaces and add a dev:<name> script in the root package.json.
Give each app its own port, so several can run at once.
Reuse @jev/kit for the look, the confidence bands and the cost panel.
Give it a README that explains how it works and how it uses Jev, then add it to the table above.