npx create-rasengan@beta --kind server
GETTING STARTED
Installation
Automatic Installation
The fastest way to start a new Rasengan Server project is with the create-rasengan CLI, which scaffolds a working project for you. Server scaffolding shipped in a newer release than what create-rasengan@latest currently points to — use the beta dist-tag to get it.
- What would you like to name your project? - What kind of project would you like to create?
cd my-app npm install
npm run dev
The scaffolded project includes a rasengan.server.ts config, a root AppModule, and a single HelloController — enough to see a request handled end to end before you add your own modules.
create-rasengan --kind monorepo scaffolds a Rasengan frontend and a Rasengan
Server backend side by side in one workspace, if you need both.
Manual Installation
This method is not recommended for beginners. It is recommended to use the automatic installation method above.
bash npm install @rasenganjs/server zod @rasenganjs/server depends on @rasenganjs/futon and @rasenganjs/runtime directly — you don't need to install those yourself. zod is a peer dependency of @rasenganjs/validators (which @rasenganjs/server depends on) — the built-in validation adapter is Zod-based, so install it alongside.
If you don't need controllers, modules, or dependency injection,
@rasenganjs/futon alone might be
a better fit — Rasengan Server is built on top of it.
Requirements
- Node.js 18+, Bun, or a Cloudflare Workers (workerd) target.
- An ESM project — the package ships as
"type": "module".
Configuration File
Create a rasengan.server.ts at your project root:
import { defineConfig } from '@rasenganjs/server'; export default defineConfig({ entry: 'src/main.ts', port: 3000, preset: 'node', });
See Config & Build for every available option.
Minimal Entry Point
import { bootstrap } from '@rasenganjs/server'; bootstrap((app) => { app.registerModule({ // See Modules and Controllers for a full example }); });
Running It
npx rasengan-server dev
See CLI for the full command reference (dev, build, start).
