{"repo":"ProMehedi/bun-hono-api-starter","free":true,"listed":false,"github":"https://github.com/ProMehedi/bun-hono-api-starter","clone":"git clone https://github.com/ProMehedi/bun-hono-api-starter.git","description":"A REST API using Bun + Hono + MongoDB + TypeScript providing a powerful and efficient platform with a simple CRUD interface for a user model.","language":"TypeScript","stars":85,"topics":["bun","hono","mongoose","typescript","jwt"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Bun + Hono API Starter A modern, fast API starter built with Bun, Hono, MongoDB, and TypeScript. Designed for production-ready projects with authentication, security, logging, and clean architecture out of the box. ✅ Demo link: https://hono-api.jsify.org/api/v1 --- ✨ Features - ⚡ Bun runtime (fast startup + execution) - 🧩 Modular project structure - 🔐 JWT authentication with role-based access - 🛡️ Rate limiting, secure headers, CSRF (production) - ✅ Request validation + centralized error handling - 🗃️ MongoDB (Mongoose) - 📝 Winston logging (console + rotating files) - 🎨 Prettier + Husky for code quality - 🔄 Hot reload for development - 💪 Fully typed with TypeScript --- 🚀 Getting Started Prerequisites - Bun (v1+) - MongoDB (local or Atlas) --- Installation --- Environment Setup Create .env : ⚠️ Never commit .env . --- ▶️ Usage Development Production --- 🧹 Formatting Pre-commit and pre-push hooks automatically enforce formatting and type safety. --- 🔐 Security Overview - JWT auth (7-day expiration) - Role-based authorization (admin routes) - Rate limiting: - Auth routes: 5 / 15 min - Other routes: 60 / min - Secure headers (XSS, clickjacking, MIME) - CSRF in production - Input validation everywhere - Password hashing - Stack traces only in development --- 🛣️ API Routes Method Route Auth Admin ------ ----------------------- ---- ----- GET /api/v1 No No POST /api/v1/users No No POST /api/v1/users/login No No GET /api/v1/users/profile Yes No PUT /api/v1/users/profile Y","default_branch":null,"files":null,"tree":[],"storefront":"/r/ProMehedi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ProMehedi/bun-hono-api-starter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}