Fluxer bridge for multi-channel assistant flows
  • TypeScript 95.2%
  • Shell 4.8%
Find a file
2026-04-09 13:39:48 +00:00
deploy Initial Fluxer bridge scaffold 2026-04-04 17:33:37 +00:00
scripts Initial Fluxer bridge scaffold 2026-04-04 17:33:37 +00:00
src Route !askvulp commands to bridge flow 2026-04-09 13:39:48 +00:00
.env.example Add OpenClaw Gateway and target config 2026-04-09 13:32:28 +00:00
.gitignore Initial Fluxer bridge scaffold 2026-04-04 17:33:37 +00:00
package-lock.json Initial Fluxer bridge scaffold 2026-04-04 17:33:37 +00:00
package.json Initial Fluxer bridge scaffold 2026-04-04 17:33:37 +00:00
README.md Initial Fluxer bridge scaffold 2026-04-04 17:33:37 +00:00
tsconfig.json Initial Fluxer bridge scaffold 2026-04-04 17:33:37 +00:00

fluxer-bridge

Initial scaffold for a Fluxer bot bridge.

What this repo is for

  • A single Fluxer-facing entrypoint
  • Config-driven routing across interaction types and channels
  • Clear adapter boundary for future bridges and agent flows
  • Minimal TypeScript foundation that can grow into multiple channel integrations

Layout

  • src/index.ts — app bootstrap and sample event path
  • src/adapter.ts — adapter boundary for Fluxer and future channels
  • src/config.ts — route and flow config types
  • src/router.ts — config-driven flow resolution
  • src/flows/* — starter flows

Development

cp .env.example .env
npm install
npm run dev

Build

npm run build
npm start

Fluxer.js note

This scaffold now includes a thin Fluxer.js adapter using @fluxerjs/core. The adapter listens for MessageCreate, maps incoming messages into flow contexts, and sends replies back through the originating message when possible.

Deploying to vulpbox

Assumed shape for deployment:

  1. Push this repo to Forgejo.
  2. On vulpbox, clone or pull the repo into a deploy directory.
  3. Install Node.js 20+ and run npm ci && npm run build.
  4. Run the service under a process manager such as systemd or PM2.
  5. Provide secrets via environment files or a service environment, not in git.

Included deployment helpers:

  • scripts/deploy.sh — pull/build/restart helper for vulpbox
  • deploy/fluxer-bridge.service — systemd unit template

Example systemd service sketch:

[Service]
WorkingDirectory=/srv/fluxer-bridge
EnvironmentFile=/srv/fluxer-bridge/.env
ExecStart=/usr/bin/node /srv/fluxer-bridge/dist/index.js
Restart=always

If you want a Forgejo webhook deploy later, this repo is already shaped so a simple pull/build/restart script can sit on vulpbox beside it.