Welcome to Bunty
A modern, full-featured TypeScript framework for building scalable web applications with ease.
What is Bunty?
Bunty is a comprehensive TypeScript framework that provides everything you need to build modern web applications. It combines a powerful ORM, high-performance HTTP server, advanced routing, and dependency injection into a cohesive ecosystem designed for developer productivity and application performance.
Key Features
- Built for Bun - Designed specifically for the Bun runtime, no Node.js required
- High-Performance HTTP - Fast, scalable HTTP server with modern routing capabilities
- Type-Safe - Built from the ground up with TypeScript for the best developer experience
- Dependency Injection - Clean architecture patterns with a powerful DI container
- Optional ORM - Type-safe database queries when you need them (completely optional)
- Modular Architecture - Use only what you need with independent, composable packages
Why Choose Bunty?
โก Built for Bun
Bunty is designed exclusively for the Bun runtime. No Node.js, no legacy baggage - just modern, fast JavaScript runtime with TypeScript built-in.
๐ Performance
Bunty is built for speed. Leveraging Bunโs performance and efficient HTTP handling, every component is designed to deliver maximum performance without sacrificing developer experience.
๐ ๏ธ Developer Experience
With excellent TypeScript support, intuitive APIs, and comprehensive tooling, Bunty makes development a joy. Spend less time fighting your framework and more time building features.
๐ฆ Modular Design
Pick and choose the packages you need. Use the full framework or just the ORM. Every package is designed to work independently or as part of the larger ecosystem.
๐ Type Safety
Catch errors at compile time, not runtime. Buntyโs TypeScript-first approach (running on Bunโs native TypeScript support) means better autocomplete, refactoring, and confidence in your code.
๐๏ธ Optional Database
Need a database? Add @bunty/orm for type-safe database queries. Donโt need one? Donโt install it.
Bunty works great with or without a database.
Core Packages
@bunty/core
Foundation package with dependency injection, configuration management, and core utilities.
bun add @bunty/core@bunty/http
High-performance HTTP server with routing, middleware, and request/response handling.
bun add @bunty/http@bunty/orm
Optional: Type-safe ORM with migrations, relationships, and query builder for multiple databases.
bun add @bunty/orm@bunty/cli
Command-line tools for scaffolding, development workflows, and more.
bun add -g @bunty/cliQuick Example
Hereโs a simple example of a Bunty HTTP server:
import { createApp } from '@bunty/http';
// Create HTTP app
const app = createApp();
// Define routes
app.get('/api/users', async (req, res) => {
const users = [
{ id: 1, name: 'Alice' },
{ id: 2, name: 'Bob' },
];
return res.json(users);
});
app.post('/api/users', async (req, res) => {
const user = { id: 3, ...req.body };
return res.json(user, 201);
});
// Start server
app.listen(3000, () => {
console.log('Server running on http://localhost:3000');
});
With Optional Database
If you need database support, add @bunty/orm:
import { createApp } from '@bunty/http';
import { User } from './models/User'; // ORM model
const app = createApp();
app.get('/api/users', async (req, res) => {
const users = await User.findAll();
return res.json(users);
});
app.post('/api/users', async (req, res) => {
const user = await User.create(req.body);
return res.json(user, 201);
});
app.listen(3000);
Next Steps
Ready to get started? Check out these resources:
- Installation Guide - Get Bunty set up with Bun
- Quick Start - Build your first Bunty application
- HTTP Server - Learn about building APIs with Bunty
- ORM Guide - Optional database support (only if you need it)
โก Why Bun?
Bunty is built exclusively for Bun because itโs faster, simpler, and more modern than Node.js. Bun has native TypeScript support, built-in .env loading, fast module resolution, and incredible performance. No transpilation, no config hell - just fast, modern JavaScript.