create-reactor-app
v2.1.1
Published
🧩 **Create Reactor App** is a CLI tool that helps you quickly bootstrap a new application using the Reactor SDK. Get started with interactive AI applications in seconds!
Readme
Create Reactor App
🧩 Create Reactor App is a CLI tool that helps you quickly bootstrap a new application using the Reactor SDK. Get started with interactive AI applications in seconds!
Quick Start
npx create-reactor-app my-app --model=heliosOr with pnpm:
pnpm dlx create-reactor-app my-app --model=heliosUsage
npx create-reactor-app [project-name] --model=<name> [options]The model argument is required. If you omit the project name, you will be prompted for it interactively.
Arguments:
| Argument | Description |
| -------------- | --------------------------------------------------- |
| project-name | Name of the project to create (prompted if omitted) |
Options:
| Option | Description |
| --------------- | ----------------------------------------------------- |
| --model, -m | Model to scaffold a project for (required) |
| --token, -t | GitHub token for private repository access (optional) |
| --help, -h | Show help message |
Examples:
# Project name first, model flag after
npx create-reactor-app my-app --model=helios
# Flag first, project name after
npx create-reactor-app --model=lingbot my-app
# Project name omitted — you will be prompted for it
npx create-reactor-app --model=helios
# With a GitHub token (only needed if the template repo is private)
npx create-reactor-app my-app --model=helios --token ghp_xxxxxxxxxxxxAvailable Models
Templates live in the examples/ directory of this repository. By default the model name maps 1:1 to a folder of the same name (e.g. --model=helios clones the examples/helios/ folder).
The CLI also supports an optional alias map (MODEL_MAP in bin/create-reactor-app.ts) for cases where the public model name needs to differ from the folder name. It is empty by default — add an entry only when you want a name → folder rename.
Run the CLI without --model to see the list of available models in the templates repo. The output lists explicit aliases first (with the resolved folder shown after →) and then any remaining unmapped folders.
Private Repository Access
If the templates repository is private, you will be prompted for a GitHub token when fetching the template list or cloning fails. You can also pass --token (or -t) directly to skip the prompt.
Getting Started After Creation
After creating your project:
cd your-project-name
pnpm devOpen http://localhost:3000 in your browser to see your application running. Make sure to setup your API keys first!
Examples Repository
All templates are sourced from the official examples in the Reactor SDK repository. You can browse the examples directory to see the full source code and understand how each template works.
Documentation
For comprehensive guides, API references, and tutorials, visit the official Reactor documentation:
Requirements
- Node.js 16 or later
- pnpm (recommended) or npm
Local Development
To test or develop the CLI locally:
# Navigate to the create-app package
cd packages/create-app
# Install dependencies
pnpm install
# Build the CLI
pnpm build
# Link it globally
pnpm link --globalNow you can use create-reactor-app anywhere on your system:
create-reactor-app my-appTo unlink when you're done:
pnpm unlink --globalLicense
Apache 2.0 © 2024-2026 Reactor Technologies, Inc.
Support
Happy building with Reactor! 🚀
