token-js/token.js

Integrate 200+ LLMs with one TypeScript SDK using OpenAI's format.

56
/ 100
Established

This is a TypeScript SDK that helps developers integrate their applications with over 200 large language models (LLMs) from various providers, all using a consistent OpenAI-like format. It allows you to send text or image prompts to an LLM and receive generated text, JSON outputs, or even streaming responses. Developers who build applications that need to leverage multiple LLMs will find this useful.

304 stars. Used by 1 other package. No commits in the last 6 months. Available on npm.

Use this if you are a developer building an application in TypeScript and need to easily switch between or combine different LLMs without rewriting your integration code for each one.

Not ideal if you are not a developer, or if your application only needs to interact with a single LLM provider and you prefer to use that provider's native SDK.

LLM integration application development AI model management TypeScript development API integration
Stale 6m
Maintenance 2 / 25
Adoption 11 / 25
Maturity 25 / 25
Community 18 / 25

How are scores calculated?

Stars

304

Forks

42

Language

TypeScript

License

MIT

Last pushed

Apr 21, 2025

Commits (30d)

0

Dependencies

9

Reverse dependents

1

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/token-js/token.js"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.