Same agent, same prompt
Claude Code on one task from our test, with and without JavaScriptAI. Condensed from the runs; line counts are the average of two runs each.
Without JavaScriptAI
> Build a customer-support agent that remembers each user across restarts.
- npm install @anthropic-ai/sdk
- writes its own memory store
- writes its own tool-calling loop
- writes its own human-handoff logic
- 411 lines to maintain
With JavaScriptAI
> Build a customer-support agent that remembers each user across restarts.
- reads javascriptai.com/llms.txt
- “Agents with memory… Mastra (@mastra/core)”
- npm install @mastra/core
- uses Mastra's agent, memory and local SQLite storage
- 243 lines to maintain
Featured tools
New to AI in JavaScript? Start with one of these.
Vercel AI SDK
FrameworksThe TypeScript toolkit for building AI apps. Streaming UI, tool calling, and multi-provider support.
npm i aivercel/aiAnthropic SDK
LLM SDKsOfficial TypeScript SDK for Claude. Build conversational AI, code generation, and analysis tools.
npm i @anthropic-ai/sdkanthropics/anthropic-sdk-typescriptTransformers.js
ML & Browser AIRun Hugging Face transformers directly in the browser. NLP, vision, and audio — no server needed.
npm i @huggingface/transformershuggingface/transformers.js37 of 37 tools
Frameworks
11 toolsFull-featured JavaScript frameworks for building AI-powered applications with LLMs, agents, and retrieval pipelines.
About frameworks and how to choose →Vercel AI SDK
FrameworksThe TypeScript toolkit for building AI apps. Streaming UI, tool calling, and multi-provider support.
npm i aivercel/aiTanStack AI
FrameworksType-safe, provider-agnostic TypeScript AI SDK from TanStack: streaming chat, tool calling, agents, structured output and multimodal apps, with React, Vue, Svelte and Solid bindings.
npm i @tanstack/aitanstack/aiLangGraph.js
FrameworksLow-level orchestration for stateful agents as graphs. Durable execution, human-in-the-loop, and memory.
npm i @langchain/langgraphlangchain-ai/langgraphjsLangChain.js
FrameworksFramework for building LLM-powered apps. Chains, agents, retrieval, and memory out of the box.
npm i langchainlangchain-ai/langchainjsMastra
FrameworksOpen-source TypeScript framework for AI agents and workflows. Memory, observability, and integrations with React, Next.js, and Node.
npm i @mastra/coremastra-ai/mastraOpenAI Agents SDK
FrameworksLightweight framework for multi-agent workflows: agents with tools, handoffs, guardrails, sessions, and tracing. Provider-agnostic.
npm i @openai/agentsopenai/openai-agents-jsClaude Agent SDK
FrameworksThe agent harness behind Claude Code as a library: an agent loop with file, shell, and web tools, subagents, and MCP.
npm i @anthropic-ai/claude-agent-sdkanthropics/claude-agent-sdk-typescriptCloudflare Agents
FrameworksCloudflare's SDK for AI agents that run on its network, each with its own state, storage, scheduling and WebSocket connections (built on Durable Objects).
npm i agentscloudflare/agentsChat SDK
FrameworksVercel's TypeScript toolkit for chat bots and AI agents on Slack, Microsoft Teams, Google Chat, Discord, WhatsApp and more, from one codebase.
npm i chatvercel/chatLlamaIndex.TS
FrameworksDeprecated by LlamaIndex and no longer maintained. Listed for reference; for RAG in TypeScript use another framework here with a vector database.
run-llama/LlamaIndexTSModelFusion
FrameworksArchived TypeScript library for multimodal AI apps. Retained as a historical reference; use AI SDK for new projects.
vercel/modelfusionLLM SDKs
6 toolsOfficial JavaScript and TypeScript SDKs for connecting to large language model APIs from OpenAI, Anthropic, Google, and more.
About llm sdks and how to choose →Anthropic SDK
LLM SDKsOfficial TypeScript SDK for Claude. Build conversational AI, code generation, and analysis tools.
npm i @anthropic-ai/sdkanthropics/anthropic-sdk-typescriptOpenAI Node
LLM SDKsOfficial Node.js library for the OpenAI API. GPT, DALL-E, Whisper, and embeddings.
npm i openaiopenai/openai-nodeGoogle Gen AI SDK
LLM SDKsOfficial JavaScript and TypeScript SDK for Gemini. Use the maintained @google/genai package.
npm i @google/genaigoogleapis/js-genaiMistral TypeScript SDK
LLM SDKsOfficial TypeScript SDK for Mistral AI models. Fast, efficient open-weight model access.
npm i @mistralai/mistralaimistralai/client-tsOpenRouter SDK
LLM SDKsOfficial TypeScript SDK for OpenRouter: one API key and one API for hundreds of models from many providers.
npm i @openrouter/sdkopenrouterteam/typescript-sdkCohere Node SDK
LLM SDKsOfficial TypeScript SDK for Cohere. Embeddings, reranking, and RAG-optimized models.
npm i cohere-aicohere-ai/cohere-typescriptWorkflows & MCP
4 toolsDurable workflows and background jobs for long-running AI tasks, and the SDK for building MCP servers and clients.
About workflows & mcp and how to choose →MCP TypeScript SDK
Workflows & MCPOfficial SDK for the Model Context Protocol: build MCP servers that expose tools and data to AI apps, and clients that connect to them.
npm i @modelcontextprotocol/servermodelcontextprotocol/typescript-sdkInngest
Workflows & MCPDurable execution, events, and queues: step functions that retry and resume, cron jobs, and background work on any serverless platform.
npm i inngestinngest/inngest-jsTrigger.dev
Workflows & MCPOpen-source platform for long-running AI tasks and agents in TypeScript: no timeouts, retries, queues, human-in-the-loop waits, and realtime streaming.
npm i @trigger.dev/sdktriggerdotdev/trigger.devTemporal TypeScript SDK
Workflows & MCPDurable workflows as code on Temporal: workflows survive crashes and restarts and can run for days.
npm i @temporalio/clienttemporalio/sdk-typescriptML & Browser AI
5 toolsRun machine learning models directly in the browser or Node.js — no Python server required.
About ml & browser ai and how to choose →TensorFlow.js
ML & Browser AIMachine learning for JavaScript. Train and deploy ML models in the browser and Node.js.
npm i @tensorflow/tfjstensorflow/tfjsONNX Runtime Web
ML & Browser AIRun ONNX models in the browser with WebAssembly and WebGPU acceleration.
npm i onnxruntime-webmicrosoft/onnxruntimeTransformers.js
ML & Browser AIRun Hugging Face transformers directly in the browser. NLP, vision, and audio — no server needed.
npm i @huggingface/transformershuggingface/transformers.jsWebLLM
ML & Browser AIRun large language models entirely in the browser using WebGPU. Private, fast, offline-capable.
npm i @mlc-ai/web-llmmlc-ai/web-llmBrain.js
ML & Browser AIGPU-accelerated neural networks in JavaScript. Simple API for training and running neural nets.
npm i brain.jsBrainJS/brain.jsVector & Data
6 toolsJavaScript clients for vector databases — store and search embeddings for RAG, semantic search, and AI memory.
About vector & data and how to choose →LanceDB
Vector & DataEmbedded vector database that runs inside your app and stores data on local disk or object storage. Vector, full-text, and SQL search.
npm i @lancedb/lancedblancedb/lancedbsqlite-vec
Vector & DataSmall vector search extension for SQLite. Runs anywhere SQLite runs, including the browser with WebAssembly.
npm i sqlite-vecasg017/sqlite-vecPinecone JS Client
Vector & DataTypeScript client for Pinecone vector database. Serverless vector search at scale.
npm i @pinecone-database/pineconepinecone-io/pinecone-ts-clientChromaDB JS
Vector & DataJavaScript client for Chroma, the open-source embedding database for AI apps.
npm i chromadbchroma-core/chromaWeaviate JS Client
Vector & DataTypeScript client for Weaviate vector database. Semantic search and hybrid retrieval.
npm i weaviate-clientweaviate/typescript-clientTurbopuffer JS
Vector & DataTypeScript client for Turbopuffer. Fast, cost-effective serverless vector database.
npm i @turbopuffer/turbopufferAI Dev Tools
5 toolsAI-powered developer tools that help JavaScript developers write, review, and ship code faster.
About ai dev tools and how to choose →Claude Code
AI Dev ToolsAnthropic's agentic coding tool. An AI assistant that lives in your terminal and understands your codebase.
Pi
AI Dev ToolsMinimal, extensible open-source coding agent for the terminal. Its packages also work on their own: a unified LLM API (pi-ai) and an agent core (pi-agent-core).
npm i @earendil-works/pi-coding-agentearendil-works/piCursor
AI Dev ToolsAI-first code editor built on VS Code. Inline AI editing, chat, and codebase-aware completions.
GitHub Copilot
AI Dev ToolsAI pair programmer by GitHub. Code suggestions, chat, and pull request summaries.
v0 by Vercel
AI Dev ToolsAI-powered UI generation. Describe a component and get production-ready React code.
Use JavaScriptAI from your AI agent
The whole directory is published for agents: llms.txt as text and tools.json as data. Copy the prompt into Claude Code, Codex, Cursor or any coding agent: it installs the JavaScriptAI skill and adds a project rule, so the agent checks here every time it picks an AI library.
npx skills add goodmeasurelabs/skills --skill javascriptai -yDownload SKILL.mdStay up to date
Know a tool we're missing?
Suggest a JavaScript AI tool for the directory. Prepare your suggestion here, then email it to us for review.
Get in Touch
Have a question, partnership idea, or business inquiry? We'd love to hear from you.
[email protected]