Skip to content

Installation

Prerequisites

  • Node.js version 18 or later
  • TypeScript is fully supported out of the box (types are bundled with every package)

Install the core package

Terminal window
npm install @synkro/core

Choose a transport

Synkro ships with two built-in transports. Your choice determines how events are delivered and where workflow state is stored.

In-MemoryRedis
Use caseDevelopment and testingProduction
External depsNoneRunning Redis instance
Multi-instanceNoYes

In-memory (default for dev)

No additional dependencies required. Just set transport: "in-memory" in your configuration.

You need a running Redis instance and its connection URL:

const synkro = await Synkro.start({
transport: "redis",
connectionUrl: "redis://localhost:6379",
// ...
});

Integration packages

Install only the packages you need. Each integration uses peer dependencies so your application controls the version of @synkro/core.

Terminal window
# Dashboard UI
npm install @synkro/ui
# NestJS integration
npm install @synkro/nestjs
# Next.js integration
npm install @synkro/next
# AI agent orchestration
npm install @synkro/agents

Verify your installation

Create a quick smoke test to confirm everything is wired up:

import { Synkro } from "@synkro/core";
const synkro = await Synkro.start({ transport: "in-memory" });
console.log("Synkro started successfully");
await synkro.stop();

Run it with npx tsx smoke.ts (or your preferred TypeScript runner). If you see the success message, you are ready to move on to the Quick Start.