A modern, modular starter template built on top of ElysiaJS and Bun, designed for building fast, type-safe backends with clean architecture and developer experience in mind.
✅ Modular Router Structure
Split your app into domain-specific routes for better scalability and organization.
✅ Dependency Injection
Built-in support using a lightweight DI pattern to keep services and infrastructure decoupled.
✅ Drizzle ORM
Type-safe SQL-first ORM with PostgreSQL support, pre-configured and ready to use.
✅ Winston Logger
Structured logging using Winston with custom configuration.
✅ Testing with bun:test
Includes simple test setup using Bun's native test runner.
✅ Preconfigured ESLint & Prettier
Enforces consistent code style and linting with minimal setup.
✅ Environment Variables Validation
Schema-based validation for environment variables at startup.
✅ Swagger Documentation
Default Swagger/OpenAPI docs enabled and customizable out of the box.
bun install
bun run devbun run dev– Start the development serverbun run build– Build the appbun test– Run tests
Future improvements may include:
- Authentication/authorization strategies
- Docker support
MIT