Skip to content

ThanhHoa is a lightweight, high-performance web framework for Bun, designed to make server-side development simple and enjoyable.

License

Notifications You must be signed in to change notification settings

thanhhoajs/thanhhoa

Repository files navigation

ThanhHoa Logo

ThanhHoa - High Performance Web Framework for Bun

ThanhHoa is a modern, TypeScript-based web framework built specifically for Bun, focusing on performance, decorator-based architecture.

Key Features

  • 🚀 High Performance: Built on Bun's runtime for maximum speed
  • 🎭 TypeScript First: Full type safety and modern development experience
  • 🧩 Modular Architecture: Easy-to-use decorators and dependency injection
  • 🛣️ Smart Routing: Advanced routing with parameter support
  • 🔒 Built-in Security: CORS, Helmet, and rate limiting included
  • 🗄️ Caching: Built-in LRU cache for routes and static files
  • Fast Static File Serving: Optimized static file delivery

Installation

Install ThanhHoa using Bun:

bun add @thanhhoajs/thanhhoa

Performance Benchmark

Handling 10,000 concurrent requests:

  • Average Latency: 0.57ms
  • Memory Usage: 0.01 MB

ThanhHoa is designed for high-throughput applications, offering sub-1ms response times and minimal memory usage.

Setup: Simple GET route (/test) over 5,000 iterations, 2 requests per iteration—showcasing its stability and lightweight nature. 🚀✨

Author

Nguyen Nhu Khanh kwalker.nnk@gmail.com

License

MIT License

About

ThanhHoa is a lightweight, high-performance web framework for Bun, designed to make server-side development simple and enjoyable.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published