# lmstudio-ai/lmstudio-js

LM Studio TypeScript SDK

Repository: https://github.com/lmstudio-ai/lmstudio-js
Canonical: https://ross.abutalabs.com/products/lmstudio-js
Homepage: https://www.npmjs.com/package/@lmstudio/sdk
Language: TypeScript
License: MIT
License Family: permissive
Topics: llm, lmstudio, nodejs, typescript, lm-studio
Last push: 2026-08-26T16:52:28+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 77
- inputs: {"age_days": 1083, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1761, forks 298 (observed 2026-08-28T04:05:32.667001+00:00)

## What it is
lmstudio-js is the official TypeScript/JavaScript client SDK for LM Studio, enabling use of locally running LLMs for chat, completions, embeddings, and tool-based agents. It also supports loading, configuring, and unloading models from memory in Node and browser environments.

## Use cases
- chat with local llms from typescript
- build autonomous agents that run locally
- generate text embeddings locally
- load and unload llm models from memory programmatically
- define tools for llm function calling
- replace openai sdk with local model client

## When to choose
- you use LM Studio to run local models and want a typed SDK
- you need model lifecycle management (load/unload, GPU offload, context length)
- you want fully local agents with tool calling
- you develop in TypeScript/JavaScript on Node or browser

## When to avoid
- you only call OpenAI or other cloud-hosted APIs
- you need a Python SDK (use lmstudio-python instead)
- you don't run LM Studio or a compatible local server

## Facets
- artifact type: library
- maturity: active
- function: llm-inference, agent-framework, sdk, chatbot, rag
- domain: large-language-models, artificial-intelligence, developer-tools
- platform: browser, cross-platform
- tags: local-llm, lm-studio, client-sdk, embeddings, tool-calling, model-management, ai-agents, nodejs, typescript

## Member repositories
- lmstudio-ai/lmstudio-js (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:32.667001+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:27:11.639605+00:00, confidence not recorded.
  - readme: https://github.com/lmstudio-ai/lmstudio-js (fetched 2026-08-28T04:05:32.667001+00:00, sha 24566cf00e47)
- Data as of 2026-08-30T08:39:29.467469+00:00.
