Bun Core Platform
A modern, high-performance backend built on Bun runtime with TypeScript, Hono framework, and hexagonal architecture.Overview
The Bun Core Platform provides a production-ready foundation with:- Framework: Hono (lightweight, edge-ready)
- Runtime: Bun 1.x (fast startup, native TypeScript)
- Database: MongoDB with MongoOS (auto-sharding)
- Cache: BunRedis (Bun’s native Redis client) + In-memory fallback
- Architecture: Hexagonal (ports & adapters)
- API Format: REST with idempotency, i18n, rate limiting
Key Features
| Feature | Description |
|---|---|
| Idempotent API | Safe retries via Idempotency-Key header |
| Rate Limiting | Sliding window algorithm, per-user/IP |
| i18n | Multi-locale support (en, ms) with fallback |
| Smart Logging | Multi-transport (console, file, MongoDB) |
| Health Checks | Liveness + readiness probes |
Get Started
- Quick Start — Run locally in 5 minutes
- Architecture — System design
- File Structure — Project layout