AsenaJs/Asena
IoC web framework for Bun with Spring Boot-style component discovery and field-based dependency injection: decorator-driven controllers, services, middleware and WebSockets, on pluggable HTTP adapters.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#3 Repository of the week
Asena
A high-performance IoC web framework for Bun runtime, bringing Spring Boot's automatic component discovery and field-based dependency injection to TypeScript.
Philosophy
Spring Boot and Quarkus have established proven patterns for enterprise application development, but developers transitioning to TypeScript often find themselves reimplementing familiar concepts or adapting to unfamiliar architectures. AsenaJS addresses this gap by bringing automatic component discovery, field-based dependency injection to the Bun ecosystem.
The framework eliminates boilerplate through automatic scanning of decorator-annotated classes, removing the need for explicit module declarations or manual wiring. Components marked with @Controller, @Service, or @Repository (via asena-drizzle package) are discovered and registered automatically, allowing developers to focus on business logic rather than configuration. This approach, combined with Bun's native performance characteristics, delivers both the familiar developer experience of Spring Boot and the speed expected from modern JavaScript runtimes.
AsenaJS is designed to make developers familiar with Spring Boot and Quarkus feel at home in the TypeScript ecosystem. As the framework evolves, we remain committed to this philosophy—bringing more proven patterns from the Java world while maintaining the performance advantages that Bun provides and flexiblity of Typescript.
Documentation
📚 Full documentation: asena.sh
For complete guides, API reference, and advanced topics, visit our documentation site.
Example Project: AsenaExample - See latest usage patterns and best practices.
Quick Start
# Create new project
bun add -g @asenajs/asena-cli
asena create my-project --adapter=hono --logger --eslint --prettier
cd my-project
# Start development
asena dev start
Visit asena.sh/docs/get-started for detailed setup instructions.
Performance
Built on Bun runtime for exceptional performance:
| Framework | Requests/sec | Latency (avg) |
|---|---|---|
| Asena + Ergenecore | 294,962.61 | 1.34ms |
| Hono | 266,476.83 | 1.49ms |
| Asena + Hono-adapter | 233,182.35 | 1.70ms |
| NestJS (Bun) | 100,975.20 | 3.92ms |
| NestJS (Node) | 88,083.22 | 5.33ms |
Benchmark: 12 threads, 400 connections, 120s duration, Hello World endpoint
Contributing
Contributions are welcome! Submit a Pull Request on GitHub.
License
MIT License - see LICENSE file.
Support
Issues or questions? Open an issue on GitHub.
Similar Projects
Discover other similar projects and AI models.
:triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!
A progressive TypeScript framework for Node.js backends: from a small API in one file to efficient, scalable, enterprise-grade systems 🚀
Extremely powerful Inversion of Control (IoC) container for Node.JS
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one