{"data":{"slug":"r2d4-llm-ts","name":"llm.ts","tagline":"Call any LLM with a single API. Zero dependencies.","github_url":"https://github.com/r2d4/llm.ts","owner":"r2d4","repo":"llm.ts","owner_avatar_url":"https://avatars.githubusercontent.com/u/896032?v=4","primary_language":"TypeScript","stars":214,"forks":9,"topics":["ai","cohere","huggingface","llm","llms","openai"],"archived":false,"github_pushed_at":"2023-05-09T21:20:25+00:00","maintenance_label":"Dormant","stars_delta_30d":1,"url":"https://www.graphcanon.com/tools/r2d4-llm-ts","markdown_url":"https://www.graphcanon.com/tools/r2d4-llm-ts.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/r2d4-llm-ts","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=r2d4-llm-ts","description":"Call any LLM with a single API. Zero dependencies.","homepage_url":null,"license":"MIT","open_issues":2,"watchers":6,"ai_summary":"A TypeScript library for interacting with various Large Language Models via a unified API interface, supporting providers like OpenAI, Cohere, and HuggingFace.","readme_excerpt":"### Install\n#### npm\n```bash\nnpm install llm.ts\n```\n#### yarn\n```bash\nyarn add llm.ts\n```\n\n---\n\n### Hosting providers supported (want to add one, open a PR!):\n* OpenAI\n* Cohere\n* HuggingFace","github_created_at":"2023-05-03T02:07:24+00:00","created_at":"2026-07-11T10:53:52.472542+00:00","updated_at":"2026-09-20T05:32:04.872173+00:00","categories":[{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"},{"slug":"model-training","name":"Model Training","url":"https://www.graphcanon.com/categories/model-training","markdown_url":"https://www.graphcanon.com/categories/model-training.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/model-training"}],"tags":[{"slug":"ai","name":"ai"},{"slug":"cohere","name":"cohere"},{"slug":"huggingface","name":"huggingface"},{"slug":"llm","name":"llm"},{"slug":"llms","name":"llms"},{"slug":"openai","name":"openai"}],"trust":{"provenance":{"is_fork":false,"github_id":635579297,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-08-15T18:00:52.622Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":1193,"last_release_at":"2023-05-09T21:06:05Z","stars_delta_30d":1,"open_issues_delta_30d":0},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T10:53:55.305Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"mcp":{"source":"repo_scan","observed_at":"2026-08-15T18:00:53.077Z","server_manifest":false},"scan":{"source":"repo_scan","observed_at":"2026-08-15T18:00:53.077Z"},"languages":{"value":["typescript","javascript"],"source":"github.language+package.json","observed_at":"2026-08-15T18:00:53.077Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-08-15T18:00:53.077Z"}},"decision_facts":{"hosting":{"model":"unknown","summary":"Supports multiple providers including OpenAI, Cohere, and HuggingFace. Can be extended by opening a PR."},"pricing":null,"requirements":null,"constraints":{"hosting_model":"unknown"},"when_to_use":["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."],"when_not_to_use":["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."],"source":"enrich:decision_facts","observed_at":"2026-07-12T16:51:33.319Z"},"constraint_facets":{"hosting_model":"unknown"},"decision_summary":[{"label":"Hosting","value":"unknown - Supports multiple providers including OpenAI, Cohere, and HuggingFace. Can be extended by opening a PR."},{"label":"Adopt for","value":"llm.ts is a TypeScript library for interacting with various Large Language Models via a unified API interface."},{"label":"License detail","value":"MIT License - permissive license that is short and simple, allowing you to use the software in any project as long as this licensing information is retained"}]}}