llm.ts logo

llm.ts

r2d4/llm.ts

Call any LLM with a single API. Zero dependencies.

GraphCanon updated 1w · GitHub synced 1w

214 stars9 forksLast push 3y TypeScript MIT

Decision brief

llm.ts is a TypeScript library for interacting with various Large Language Models via a unified API interface.

Good fit when

  • You need to interact with multiple LLM providers like OpenAI, Cohere, and HuggingFace through a single API.
  • Your application is built in TypeScript, as llm.ts is designed specifically for TypeScript projects.

Avoid when

  • If you require functionalities that are specific to one provider that are not yet unified or supported within the llm.ts framework.
  • For projects that aim to minimize dependencies, though llm.ts itself claims zero dependencies, its reliance on external LLM providers could indirectly introduce complexities.
Hosting:
unknown - Supports multiple providers including OpenAI, Cohere, and HuggingFace. Can be extended by opening a PR.

Observed Jul 12, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (1193d since push)
As of 1w
Provenance
Not a fork · Personal account
As of 1w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install llm.ts
npm

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A TypeScript library for interacting with various Large Language Models via a unified API interface, supporting providers like OpenAI, Cohere, and HuggingFace.

Capability facts

MCP server
No MCP server detected

Source: repo_scan · Aug 15, 2026

Languages
typescript, javascript

Source: github.language+package.json · Aug 15, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Aug 15, 2026)

npm install llm.ts
Source link

Tags

README

Install

npm

npm install llm.ts

yarn

yarn add llm.ts

Hosting providers supported (want to add one, open a PR!):

  • OpenAI
  • Cohere
  • HuggingFace

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.