Node.js Integration

AI Integration for Node.js

Add NeoAI and Amy AI to your Node.js, NestJS, or Express application. TypeScript-first SDK with streaming, middleware, decorators, and async/await everywhere.

Terminal
$ npm install @eforge/neoai

import { NeoAI } from '@eforge/neoai';

const neoai = new NeoAI({ apiKey: process.env.NEOAI_KEY });

const reply = await neoai.agent('support')
  .message('Book a table for 4')
  .tools(['crm', 'calendar'])
  .send();
Products

How NeoAI & Amy AI Integrate with Node.js

Native TypeScript packages designed for the modern JavaScript ecosystem.

N

NeoAI — AI Agents

Integrate AI agents that interact with your APIs, databases, and external services. NeoAI works with Express routes, NestJS controllers, and any Node.js HTTP server. Full TypeScript types and streaming responses.

✓ TypeScript-first with full type definitions ✓ Express middleware for AI endpoints ✓ @Module and @Injectable decorators for NestJS ✓ Streaming via Server-Sent Events ✓ async/await and Promise-based API
A

Amy AI — Business Intelligence

Connect Amy AI to your database via Prisma, TypeORM, Sequelize, or Knex. Ask questions in natural language and receive analytics, charts, and dashboards from your real data.

✓ Prisma / TypeORM / Sequelize schema introspection ✓ Natural language to SQL translation ✓ Streaming chart data responses ✓ Multi-database connection support ✓ React/Vue-compatible output format
Methods

Integration Methods for Node.js

Flexible integration options for any Node.js project structure.

NPM Package

Install via npm install @eforge/neoai. ESM tree-shakeable, no native dependencies, and full TypeScript support.

REST API

Call Eforge AI via fetch or axios from any Node.js service. OpenAPI spec with auto-generated TypeScript types.

MCP Server

Let AI agents discover and use your Node.js services dynamically via Model Context Protocol integration.

Code

Examples

Real code examples for integrating Eforge AI into your Node.js application.

Express Middleware

routes/chat.ts
import { neoaiMiddleware } from '@eforge/neoai/express';

app.post('/api/chat',
  neoaiMiddleware({
    agent: 'customer-support',
    tools: ['crm', 'calendar'],
    stream: true,
    context: (req) => ({
      user: req.user,
    })
  })
);

NestJS Module

app.module.ts
import { NeoAiModule } from '@eforge/neoai/nestjs';

@Module({
  imports: [
    NeoAiModule.forRoot({
      apiKey: process.env.NEOAI_KEY,
      agents: ['support', 'sales'],
    }),
  ],
})
export class AppModule {}
Compatibility

Works with your version of Node.js

Eforge AI packages support Node.js 16+ and all major JavaScript/TypeScript ecosystem frameworks.

Node.js 16, 18, 20, 22+
Express 4.x e 5.x
NestJS 9, 10, 11+
Next.js 13+ (App Router & Pages)
Compatible with Fastify, Koa, and Hono
ESM and CommonJS support
📦
npm install @eforge/neoai
Set environment variables
🔑
Configure API key
AI is ready in your app

Add AI to your Node.js app today

Tell us about your JavaScript or TypeScript project. We'll show you the best integration approach.

Start a project See all integrations