Bun + Hono
A Bun + Hono Starter with Health Check, Route Grouping, Cors and more!
Hono
kadumedim/bun-hono
Just deployed
Bun + Hono Starter Template
This is a barebones starter template for a Bun project using the Hono web framework. It provides a simple foundation to build a web application with binary compilation, route grouping, CORS setup, and health check endpoints. This template is ready to be deployed on Railway.
Features
- Bun.js: Ultra-fast JavaScript runtime with built-in bundler and test runner.
- Hono.js: A fast and minimal web framework.
- Binary Compilation: Compiles to a single executable for production.
- CORS Middleware: Enabled for all routes by default.
- Logger Middleware: Built-in request logging.
- Route Grouping: Cleanly organize routes in separate modules.
- Health Check: A simple endpoint to monitor the uptime of the service.
We utilize a multi-stage Dockerfile
to compile the application into a binary for optimal production performance. The development environment supports hot reloading for a better developer experience.
Template Content