An open API service indexing awesome lists of open source software.

https://github.com/thanhhoajs/thanhhoa

ThanhHoa is a lightweight, high-performance web framework for Bun, designed to make server-side development simple and enjoyable.
https://github.com/thanhhoajs/thanhhoa

bun http server thanhhoa thanhhoajs

Last synced: over 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          


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:

```bash
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

## License

[MIT License](https://github.com/thanhhoajs/thanhhoa?tab=MIT-1-ov-file)