/intellinode:intellinodefrom IntelliNode
Builds AI features in JavaScript/TypeScript using the IntelliNode npm package: chat apps, assistants with memory, RAG over documents, vector databases, Gemini/Vertex AI features, and a unified API across OpenAI, Anthropic, Gemini, Mistral, Cohere, NVIDIA, and local models.
Ships in IntelliNode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Follow these rules, then use the recipes. Details live in references/google.md (Gemini and Vertex AI), references/stores.md (vector databases and chat history) and references/providers.md (providers, models, the MCP server). A runnable chat app template is in assets/chat-app.
npm install intellinode (3.1.0 or later; check with npm ls intellinode). CommonJS
(const { Assistant } = require('intellinode')) and ESM (import { Assistant } from 'intellinode') both work.
TypeScript types ship with the package (node_modules/intellinode/index.d.ts)..env file use require('dotenv').config({ quiet: true }) (without
quiet, dotenv 17 prints a line to stdout). Never hardcode, print, log or commit a key, and never send a server
key to a browser. Stop with a clear message when a needed key is missing.OPENAI_API_KEY,
ANTHROPIC_API_KEY, GEMINI_API_KEY, VERTEX_API_KEY, then a local Ollama model. Tell the user which one you used.| The user wants | Use |
|---|---|
| One prompt in, text / JSON / code out | Gen (Gen.generate_text, Gen.generate_json, Gen.generate_component, ...) |
| Chat turns, streaming, tool calling, structured output on any provider | Chatbot with Chatbot.createInput(provider, system, options) |
| A whole chat app: saved conversations, answers from documents with sources, memory, attachments | Assistant + a ChatHistory + VectorStores |
| Gemini-only features: image / video / music / speech generation, Live API, Files API, caching | GoogleAIWrapper |
| Store and search vectors | a VectorStore class with an embedder |
| Cross-provider tools inside the code editor | the MCP server, see references/providers.md |
'gemini', or new GoogleAIWrapper(key).AQ.) uses Vertex AI express mode: provider 'vertex', or
new GoogleAIWrapper(key, { vertex: true }). Sent to the Developer API it fails with API_KEY_SERVICE_BLOCKED.projectId ({ vertex: true, projectId }) for Veo video, Lyria 2 music, the Live API and Agent Engine.gcloud auth application-default login, a service account in GOOGLE_APPLICATION_CREDENTIALS, or accessToken.require('dotenv').config({ quiet: true });
const { Assistant, FileChatHistory, MemoryVectorStore } = require('intellinode');
const key = process.env.VERTEX_API_KEY;
if (!key) throw new Error('Set VERTEX_API_KEY');
const embedder = { provider: 'vertex', apiKey: key, dimensions: 768 };
const knowledge = new MemoryVectorStore({ embedder, path: './data/knowledge.json' });
const assistant = new Assistant({
provider: 'vertex', apiKey: key,
systemMessage: 'You are the support assistant for Acme.',
history: new FileChatHistory({ dir: './data/conversations' }), // or FirestoreChatHistory
knowledge,
memory: new MemoryVectorStore({ embedder, path: './data/memory.json' }), // recalls earlier conversations
inputOptions: { generationConfig: { thinkingConfig: { thinkingLevel: 'low' } } },
autoTitle: true,
});
// embed documents once, not on every start; chunk ids are '<id>#0', '<id>#1', ... and the same id replaces them
if (await knowledge.count() === 0) {
await assistant.addDocuments([{ id: 'policy.md', text: policyText, metadata: { title: 'Refund policy' } }]);
}
const reply = await assistant.chat('How long do refunds take?', { userId: 'u1' });
// reply: { conversationId, text, references, citations, memories, usage, model }
const sources = reply.references.filter((reference) => reference.cited); // the chunks the answer cites as [n]
const next = await assistant.chat('And for laptops?', { conversationId: reply.conversationId, userId: 'u1' });
Stream to a browser with server-sent events:
for await (const event of assistant.stream(message, { conversationId, userId, attachments, googleSearch })) {
res.write(`data: ${JSON.stringify(event)}\n\n`); // start (retrieved sources), text chunks, done (the saved answer)
}
res.end();
For a complete local app (Node http server + one HTML page, streaming, cited sources, a web search toggle, /image),
copy assets/chat-app/ into the project and follow its README.
chatbot.chat(input) returns an array of replies: strings, or { content, tool_calls }; chatbot.lastResponse
keeps the raw provider response. assistant.chat() returns one object with usage and model (Assistant uses a
per-turn view of its chatbot, so read those from the reply, not from assistant.chatbot.lastResponse).reply.references are the chunks retrieved for the question (up to topK), not proof of use: the answer cites
the ones it used as [n] and those have cited: true. Raise minScore to drop weak matches.systemInstruction: true to Chatbot.createInput('gemini' | 'vertex', system, options)
so the system message is a real system instruction. Without it the old user / model turn pair is sent.generationConfig: { thinkingConfig: { thinkingLevel: 'low' } }.
A small maxTokens can be spent on thinking and return an empty string; raise it rather than retrying.googleSearch: true on the Assistant (every turn) or in the turn options (one turn),
gemini and vertex only. Web citations are { title, uri } where uri is a Google redirect link and title is
often just the domain; show them as links.GoogleAIWrapper.extractImages(response)[0] is
{ mimeType, data (base64) }; pick the file extension from mimeType. Shape it with
{ imageConfig: { aspectRatio: '16:9' } }. Speech: await wrapper.textToSpeech(text, { voice: 'Kore' }) returns
a WAV Buffer.dimensions breaks the stored vectors.
gemini-embedding-001 returns 3072 numbers unless dimensions is set.{ id, score, text, metadata }, score as similarity (higher is closer); filter is
metadata equality ({ lang: 'en' }, an array means one of). VertexRAGStore queries by text only.Assistant conversations belong to the first userId they were used with; another userId gets an error.
Pass the signed-in user's id on every call, and keep servers that hold keys on 127.0.0.1 or behind auth.Run a short script with the real key and read the output: the text must answer the question, a document question
must cite at least one reference (cited: true), and saved conversations must reload (assistant.getMessages(id)).
An empty string usually means the thinking budget ate maxTokens. Report reply.model, the provider, where
conversations and vectors are stored, and what you did not test (for example OAuth-only Google Cloud services
without credentials).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
TypeScript, JavaScript, Node, OpenAI, Anthropic, Pinecone, Qdrant, Elasticsearch
npx claudepluginhub intelligentnode/intellinode --plugin intellinodeOther plugins' skills for the same job