xn1cklas

xn1cklas/tokenlens

Typed model metadata and context/cost utilities that help AI apps answer: Does this fit? What will it cost? Should we compact now? How much budget is left for the next turn?

TypeScript
239
11
MIT License

TokenLens is a TypeScript library that provides typed model metadata and context/cost utilities for AI applications, helping developers answer questions about token usage, budgeting, and cost estimation. It works seamlessly with the Vercel AI SDK and remains SDK-agnostic, offering a canonical model registry with alias resolution and strong TypeScript support.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

xn1cklas's profile
xn1cklas
116 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet