Skip to content
Tanveer Hoque
All projects
Open source2025 to presentAuthor

llmwire

A zero-dependency TypeScript client with one request shape for hosted and local language models.

Problem

Each model provider ships its own SDK, error shapes and streaming format, so switching provider, or moving between a local model and a hosted one, means rewriting the calling code.

Approach

One request shape over native fetch for OpenAI, Anthropic, Gemini, Ollama, LM Studio and OpenAI-compatible APIs, with no runtime dependencies in the main entry. Agents, sessions, an MCP client and embeddings are separate entry points that the core never imports.

Outcome

  • Published to npm, version 2.3.0, with a documentation site.
  • Streaming, tool calling, structured output and typed provider errors behind the same call.
  • The core plus one provider bundles to 12.4 kB gzipped.

Stack

TypeScript Node.js OllamaMCP