User repository on GitHub
Offline Jev token counting and request accounting for Node.js and Next.js. MIT TypeScript port of LabGuy94/jevtok.
- Forks
- 0
- Last pushed
- Updated Sep 2026
Repo stats from the GitHub API, cached Oct 2026.
Jev directory
User repository on GitHub
Offline Jev token counting and request accounting for Node.js and Next.js. MIT TypeScript port of LabGuy94/jevtok.
Repo stats from the GitHub API, cached Oct 2026.
import { getEncoding, estimateRequestTokens } from 'jevtok-ts';
const enc = getEncoding('jev-1.13');
enc.count('evidence'); // 3
const questions = {
relevant: { type: 'noul' as const, instructions: 'Is this about software?' },
};
const inputTokens = estimateRequestTokens({ title: 'Managed Postgres' }, questions);Watch out
Copy reviewed against the truncated repo README on 2026-10-15; the capture ends inside the API documentation, so parts of the question-cost semantics were not reviewed. Encoder parity with the upstream jevtok is the port's own claim for one specific model version.
Short answers drawn from the linked project or page.
Original write-ups on what this entry is for.
Posts from builders shipping with Jev right now.