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.
- Host: GitHub
- URL: https://github.com/thanhhoajs/thanhhoa
- Owner: thanhhoajs
- License: mit
- Created: 2024-06-11T09:09:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-08T16:00:41.000Z (over 1 year ago)
- Last Synced: 2025-03-24T11:38:13.579Z (over 1 year ago)
- Topics: bun, http, server, thanhhoa, thanhhoajs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@thanhhoajs/thanhhoa
- Size: 128 KB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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)