Skip to content
/ dwex Public

A progressive TypeScript framework for building efficient and scalable server-side applications on Bun runtime.

License

Notifications You must be signed in to change notification settings

dwexjs/dwex

Repository files navigation

Dwex Logo

Lightweight. Typed. Lightning-fast Web Framework.

A modern, type-safe framework for building APIs and services on Bun runtime.

Ask DeepWiki

Discussions · Documentation · Discord

Philosophy

Dwex is built on the principle that building server-side applications should be enjoyable, productive, and maintainable. Inspired by modern frameworks like NestJS and Express, Dwex leverages the power of TypeScript decorators and dependency injection to create a clean, modular architecture that scales with your application.

Key Principles:

  • TypeScript-First: Built from the ground up with TypeScript, providing excellent type safety and developer experience
  • Bun-Native: Harnesses the full power of Bun's performance and modern JavaScript features
  • Modular Architecture: Organize your code into reusable, maintainable modules
  • Decorator-Driven: Intuitive decorator-based API for defining routes, dependencies, and middleware
  • Dependency Injection: Built-in DI container for managing dependencies and promoting testable code

Features

  • Decorator-based routing (@Get, @Post, @Put, @Delete, etc.)
  • Powerful dependency injection system
  • Modular architecture with @Module decorator
  • Guards for route protection and authorization
  • Middleware support for request/response processing
  • Built-in utilities (body parser, cookie parser, CORS)
  • First-class TypeScript support
  • Fast and efficient with Bun runtime

Performance Comparison

Dwex leverages the Bun runtime to deliver exceptional performance. Here's how it compares to popular alternatives:

Performance Metrics

Metric Dwex Express NestJS
Requests/sec 129,966 26,116 19,996
Latency (avg) 3.1ms 21.9ms 33.1ms
Cold Start 15ms 95ms 220ms
Memory Usage 32MB 48MB 105MB

Dwex combines the developer experience of NestJS with the blazing-fast performance of Bun, making it an ideal choice for building modern, high-performance server applications.

Installation

# Using bun (recommended)
bun create dwex my-app
cd my-app
bun install

# Or manually
bun add @dwex/core @dwex/common reflect-metadata

Support

Need help or have questions? We're here to support you!

  • Documentation - Comprehensive guides, tutorials, and API references
  • Discord - Join our community for real-time discussions and support
  • GitHub Discussions - Ask questions, share ideas, and connect with other developers
  • Issues - Report bugs or request new features

Contributing

Dwex is an open-source project and we welcome contributions from the community! Whether you're fixing bugs, adding new features, improving documentation, or suggesting enhancements, your help is appreciated.

We believe in making contributing as easy as possible. If you're interested in contributing, please read our CONTRIBUTING.md file for detailed guidelines on how to get started, our code style preferences, development workflow, and how to submit your changes.

Found a bug or have a feature request? Feel free to open an issue on GitHub. We're excited to see what you'll build with Dwex!

License

MIT License

About

A progressive TypeScript framework for building efficient and scalable server-side applications on Bun runtime.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •