# openai/openai-node

Official JavaScript / TypeScript library for the OpenAI API

Repository: https://github.com/openai/openai-node
Canonical: https://ross.abutalabs.com/products/openai-node
Homepage: https://www.npmjs.com/package/openai
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: nodejs, openai, typescript
Last push: 2026-08-26T23:55:55+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 1723, "days_push": 7, "days_rel": 7, "gap_med": 2, "n_releases_24m": 210}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11145, forks 1562 (observed 2026-08-28T04:10:46.219244+00:00)

## What it is
The official JavaScript/TypeScript SDK for the OpenAI REST API, auto-generated from OpenAI's OpenAPI specification. It provides typed access to models, chat completions, the Responses API, embeddings, vision, and other OpenAI services from Node.js, Deno, and browser environments.

## Use cases
- call the openai api from nodejs
- generate text with gpt models in typescript
- build a chatbot with chat completions
- stream llm responses in javascript
- analyze images with openai vision api
- create embeddings for semantic search
- manage multi-turn conversation state with the responses api

## When to choose
- you use TypeScript or JavaScript and want official, typed access to the OpenAI API
- you need streaming, tool calls, or the Responses API with up-to-date features
- you want an auto-generated client that tracks the OpenAPI spec closely

## When to avoid
- you need a provider-agnostic LLM client that works across OpenAI, Anthropic, and local models
- you are not using the OpenAI API at all
- you need a runtime other than Node.js/Deno/browsers without fetch support

## Facets
- artifact type: library
- maturity: stable
- function: http-client, sdk, llm-inference, chatbot, agent-framework
- domain: large-language-models, artificial-intelligence, developer-tools, apis
- platform: cross-platform
- tags: openai-api, api-client, openapi-generated, streaming, responses-api, chat-completions, official-sdk, nodejs, deno, typescript, javascript

## Member repositories
- openai/openai-node (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:46.219244+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-29T17:16:45.601231+00:00, confidence not recorded.
  - readme: https://github.com/openai/openai-node (fetched 2026-08-28T04:10:46.219244+00:00, sha 7495a7558431)
  - homepage: https://www.npmjs.com/package/openai (fetched 2026-08-29T08:15:41.429591+00:00, sha 32dc9229a63e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
