Node.js Integration

The Vaikora Node.js SDK wraps your existing LLM client and automatically protects all requests through the gateway. Install via npm and add Vaikora to your application in minutes with full TypeScript support and streaming capabilities.

Get a demo · Open-source gateway on GitHub · MCP server

Installation

Install the vaikora package via npm, yarn, or pnpm. The SDK works with existing OpenAI-compatible clients and requires minimal configuration.

Basic Usage

Create a Vaikora client, configure your API key, and route LLM requests through the gateway. All requests automatically receive threat detection and real-time security scanning.

Configuration and Middleware

Configure authentication, customize request behavior, and deploy Vaikora as Express middleware for automatic protection across your application. Full TypeScript support included.

Streaming and Error Handling

Stream responses directly from protected LLM calls and handle errors with built-in retry logic. Use async/await patterns for clean, maintainable code.

Related pages