FluxyChat

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-bot

This 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 basic

Options

FlagShortDescription
--adapter <type>-aAdapter: basic, slack, telegram, discord, web
--pm <manager>Package manager: npm, pnpm, yarn
--language <lang>-lLanguage: typescript (default) or javascript
--yes-ySkip prompts and accept defaults
--skip-installSkip dependency installation
--no-gitSkip git repository initialization
--help-hShow help

Adapters

AdapterDescriptionPlatform
basicGeneric webhook botCloudflare Workers
slackSlack Events API botSlack
telegramTelegram webhook botTelegram
discordDiscord interactions botDiscord
webWeb chat HTTP API botAny HTTP client

What you get

Each generated project includes:

  • src/index.ts — Cloudflare Workers entry point with route handling
  • src/bot.ts — Bot handler using @fluxy-chat/sdk
  • fluxy.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 adapter
  • tsconfig.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 → pnpm
  • yarn.lock → yarn
  • package-lock.json or none → npm

Override with --pm.

License

MIT

On this page