Choose Your Path
Visual Workflow Builder
@crystalflow/react + core - For building visual workflow applications with React
Core Package Only
@crystalflow/core - For backend workflows, automation, and custom UIs
Not sure which to choose? See Which Package Do I Need?
Visual Builder Installation
For building visual workflow applications with drag-and-drop UI.Prerequisites
- Node.js v18 or higher
- React v18 or higher
- npm, pnpm, or yarn package manager
Install Packages
- npm
- pnpm
- yarn
Core-Only Installation
For backend workflows, automation, CLI tools, or custom UIs.Prerequisites
- Node.js v18 or higher
- npm, pnpm, or yarn package manager
- No React required
Install Packages
- npm
- pnpm
- yarn
TypeScript Configuration
Required for both paths. CrystalFlow requires specific TypeScript compiler options. Update yourtsconfig.json:
tsconfig.json
Why these options?
Why these options?
- experimentalDecorators: Enables decorator syntax (
@defineNode,@Input,@Output) - emitDecoratorMetadata: Required for reflect-metadata to work
- moduleResolution: “bundler”: Recommended for modern build tools (Vite, webpack)
- strict: Enables all strict type-checking options for better type safety
Import reflect-metadata
Add this import at the very top of your application entry point:main.ts
Verify Installation
Create a simple test to verify everything is working:test.ts