taxum
    Preparing search index...

    taxum

    taxum

    taxum is a composable and type-safe HTTP framework for Node.js, heavily inspired by Rust's Axum and Tower. It brings the same declarative, middleware-driven architecture to the JavaScript/TypeScript ecosystem, combining ergonomic route composition with deep integration of the type system.

    Written entirely in TypeScript, Taxum focuses on zero-cost abstractions, strong compile-time guarantees, and predictable request handling. Its design emphasizes modularity and composability, building on principles proven in the Rust ecosystem and adapting them to the asynchronous, event-driven nature of Node.js.

    • Composable middleware: Tower-style middleware model for building reusable logic layers.
    • Type safety first: TypeScript-first design ensures that request parameters, bodies, and responses are all statically typed.
    • Functional and declarative routing: Build routes as data structures, not strings — inspired by Axum's handler model.
    • Performance-aware: Minimal overhead, predictable execution — ideal for high-performance APIs and backend services.
    • First-class testing ergonomics: Easy integration with testing tools, request injection, and handler isolation.

    You can find several examples in the examples folder.

    To see further examples, guides, and full API docs, visit the documentation.