rasengan-futon-adapters
Installation
SKILL.md
@rasenganjs/futon Adapter Patterns
When to Activate
- Getting a
Futonapp listening on an actual port - Choosing between
@rasenganjs/runtime's platform adapters (Node/Bun/Workerd) and futon's owntoExpressHandler/toWinterCgHandlerbridges - Mounting a
Futonapp inside an existing Express app - Deploying a
Futonapp to Cloudflare Workers, Deno, or another WinterCG-style(req, env, ctx)runtime - Wiring dev-mode file watching or graceful shutdown around a
Futonapp
The Core Pattern
A Futon instance is transport-agnostic — it only knows .fetch(request, runtime) => Promise<Response>. Something else has to bind that to an actual server. That "something else" is always one of:
- A
RuntimeAdapterfrom@rasenganjs/runtime(Node, Bun, or Workerd) — the primary, full-featured path (dev server, watch, assets, env loading, lifecycle) - A bridge adapter from
@rasenganjs/futonitself —toExpressHandler(mount inside an existing Express app) ortoWinterCgHandler(adapt to a raw(req, env, ctx)-style runtime with noRuntimeAdaptermachinery)