The Next Generation Web Framework Powered by Bun
Effortless Fullstack: Typesafe & Documented.
MANTOU (ι¦ε€΄) is a delightfully simple yet powerful web framework that brings together the best of Next.js patterns with Bun's blazing speed. Like its namesake - the fluffy Chinese steamed bun - MANTOU is light, satisfying, and gets the job done without unnecessary complexity.
- 0ms Cold Start: Powered by Bun's lightning-fast runtime
- Type Safety Without Tears: Automatic type inference that just works
- File-Based Magic: Next.js-style routing you already know and love
- API Docs That Write Themselves: Automatic Swagger generation
- Hot Like π₯: Ultra-fast hot module replacement
- Zero Config: Sensible defaults with full customization when you need it
# Create your next amazing project
bun create mantou-app@latest
# Jump into the action
cd my-app
bun install
bun run dev
Later in Documentation
- File-based routing system
- Basic SSR implementation
- Type-safe API routes
- Production build optimization
- Websocket Integration
- Plugins
Like a steamed bun, MANTOU is simple on the outside but packed with goodness inside. We eliminate complexity while keeping the power you need.
Built on Bun, MANTOU is designed for speed:
- Sub-millisecond cold starts
- Lightning-fast HMR
- Optimized build output
- Minimal runtime overhead
// mantou.config.ts
export default {
swagger: {
path: '/docs',
documentation: {
info: {
title: 'Mantou Example',
description: 'Mantou Example API',
version: '1.0.0',
},
security: [{ JwtAuth: [] }],
components: {
securitySchemes: {
JwtAuth: {
type: "http",
scheme: "bearer",
bearerFormat: "JWT",
description: "Enter JWT Bearer token **_only_**",
},
},
},
}
}
}
We love contributions! Here's how you can help:
- Fork the repo
- Create your feature branch
- Make your changes
- Submit a PR
See our Contributing Guide for more details.
Visit this for full documentation.
- π« GitHub Discussions
- π Issue Tracker
- π GitHub Stars
MIT License - feel free to use and modify!