Packages
create-fluxy-chat
Scaffold a new [FluxyChat](https://github.com/AlessandroFare/fluxychat) bot project with a single command.
Quick start
npx create-fluxy-chat my-botThis launches an interactive prompt to configure your bot project.
Non-interactive usage
# Create a Slack bot with pnpm
npx create-fluxy-chat my-bot --adapter slack --pm pnpm
# Create a Telegram bot, skip install
npx create-fluxy-chat my-bot --adapter telegram --skip-install
# Create a Discord bot with defaults
npx create-fluxy-chat my-bot -y --adapter discord
# Create a basic webhook bot (includes fluxy.config.ts template)
npx create-fluxy-chat my-bot --adapter basicOptions
| Flag | Short | Description |
|---|---|---|
--adapter <type> | -a | Adapter: basic, slack, telegram, discord, web |
--pm <manager> | Package manager: npm, pnpm, yarn | |
--language <lang> | -l | Language: typescript (default) or javascript |
--yes | -y | Skip prompts and accept defaults |
--skip-install | Skip dependency installation | |
--no-git | Skip git repository initialization | |
--help | -h | Show help |
Adapters
| Adapter | Description | Platform |
|---|---|---|
basic | Generic webhook bot | Cloudflare Workers |
slack | Slack Events API bot | Slack |
telegram | Telegram webhook bot | Telegram |
discord | Discord interactions bot | Discord |
web | Web chat HTTP API bot | Any HTTP client |
What you get
Each generated project includes:
src/index.ts— Cloudflare Workers entry point with route handlingsrc/bot.ts— Bot handler using@fluxy-chat/sdkfluxy.config.ts— Room authz and publish middleware (basic template)wrangler.toml— Cloudflare Workers deployment config.dev.vars— Local development environment variables.env.example— Example environment variables for your adaptertsconfig.json— TypeScript configuration (for TS projects)README.md— Project-specific setup instructions
Package manager detection
The CLI auto-detects your package manager from lockfiles:
pnpm-lock.yaml→ pnpmyarn.lock→ yarnpackage-lock.jsonor none → npm
Override with --pm.
Related packages
License
MIT