create-auwsomebridge
v0.1.5
Published
CLI to scaffold auwsomebridge templates for Express, Hono, or Bun
Maintainers
Readme
Create Templates
This folder contains starter templates and a small CLI to scaffold them.
templates/hono/— Hono runtime (Cloudflare Workers / Bun / Node)templates/express/— Express runtime (Node/Bun)
Publish the CLI:
npm publish ./create --access publicUse the CLI (non-interactive flags):
npm create auwsomebridge@latest my-appThis CLI does not prompt interactively to avoid Windows terminals spawning a separate Node window.
By default it uses Express; choose Hono explicitly with --runtime hono.
Local usage (without publishing):
- Copy a template folder to a new directory.
- Replace imports with
auwsomebridge(single entrypoint). - Install
auwsomebridgeand the selected runtime (expressorhono) pluszod. - Run the server using the provided scripts.
Runtime selection in code:
Express
const { middleware } = setupBridge(routes, { runtime: 'express' });Hono
const { middleware } = setupBridge(routes, { runtime: 'hono' });Notes:
- Runtime auto-detection works when only one runtime is installed; override with
runtime: 'express' | 'hono'for clarity. - See
../docs/02-getting-started.mdand../docs/03-runtime-adapters.mdfor details.
