lmstudio-js
View on GitHubLM Studio TypeScript SDK
Official LM Studio TypeScript SDK for driving local LLMs: chat and text completion, embeddings, function/tool calling, autonomous agents, plus model load/unload and parameter control. Runs in Node and the browser, aimed at developers using local models instead of a cloud API.
Use Cases
Run local LLM chat completions from TypeScriptGenerate text completions with local modelsBuild autonomous local agents with function/tool callingGenerate text embeddings for local RAGLoad, configure, and unload models in memoryCall local LLMs from browser or Node appsManage context length and GPU offload settingsPrototype LLM apps without cloud API keys
Built With
- Language
- TypeScript
- Frameworks
- Node.js · Jest · Turbo · Rollup · Lerna
Tags
typescript · sdk · local-llm · llm-inference · embeddings · tool-calling · agents · nodejs · browser · model-management · streaming · structured-output