Bun
Copy page
Bun is a supported runtime for createNizhalServer().listen() — same Hono app, same adapters.
Proven path
Section titled “Proven path”bun apps/credit-ledger/examples/live-e2e.ts# or: pnpm --filter credit-ledger example:liveThe live E2E boots a real TCP server, uses fetch + PartySocket WebSocket, and verifies push/pull convergence.
- Use Bun’s Node compatibility for
postgresdriver and Drizzle - WebSocket upgrade works for
/sync/streamwithinProcessRealtime nizhal migrateruns under Bun when invoked via the CLI entry
No Nizhal-specific Bun APIs — if createNizhalServer works on Node, it works on Bun with the same config.