Stack

Core Technologies

Bun Runtime Features

Why Bun?

  • Native TypeScript — No tsc, no tsx, no build step
  • Fast startup — ~10ms cold start vs Node.js ~100ms+
  • Native SQLiteBun.SQLite for embedded storage
  • Native WebSocket — Built-in new WebSocket() for ACP client
  • Built-in test runnerbun test
  • Auto-installbun install is fast and lockfile-based

Bun-Specific Patterns

Hono Framework

Why Hono?

  • Edge-ready — Works on Bun, Deno, Cloudflare Workers, Node.js
  • Lightweight — < 500KB, no dependencies
  • Type-safe — First-class TypeScript support
  • Native Bun integration — Zero adapter layer

Key Hono Patterns

Data Layer

MongoDB

Primary data store for persistent entities.

BunRedis

In-memory cache with Redis fallback.

BunSQLite

Zero-infrastructure session storage.

Architecture Pattern

Hexagonal (Ports & Adapters)

Dependency Rule

Development Tools

See Also