@canmi/seam-adapter-bun
v0.5.31
Published
Standalone Bun server adapter that serves a seam router via `Bun.serve()`.
Downloads
971
Readme
@canmi/seam-adapter-bun
Standalone Bun server adapter that serves a seam router via Bun.serve().
Usage
Exports serveBun() which starts a Bun HTTP server with seam routing, optional static file serving, and fallback handling.
Structure
src/index.ts—serveBun()entry point
Development
- Build:
just build-ts - Test:
just test-ts
Notes
- Peer dependency:
@canmi/seam-server - Tests use
bun:test, not vitest - Options:
staticDirfor static files,fallbackfor unmatched routes
