Skip to content

What is Devux?

Devux is an opinionated full-stack TypeScript framework for Node.js, designed for building highly testable, maintainable, enterprise-grade applications with type-safe RESTful APIs. It enforces clean architecture, provides end-to-end type safety, speeds up development, and improves developer experience.

Inas SirhanCreated by Inas Sirhan
See it in action (Coming Soon)

Key Features

  • End-to-end type safety – A single source of truth for types across the stack, eliminating drift and type mismatches
  • Clean architecture – Business logic remains pure and decoupled from HTTP, database, and other infrastructure concerns. Each layer is independently testable with mockable dependencies
  • CLI code generation – Boilerplate, naming, wiring, and structure are generated automatically, keeping the focus on business logic rather than setup
  • Automatic validation – Besides standard request validation, the framework validates inputs and outputs across managed layers (such as database I/O and API responses) during development, catching bugs that TypeScript can't
  • Dependency injection – Declare and manage each layer's dependencies via the CLI. The framework handles all wiring and resolution
  • Type-safe testing – The framework generates ready-to-use test files and utilities specific to each endpoint and layer. Zero setup is required, dependencies are wired automatically, and mocking is fully type-safe. This allows developers to focus solely on writing the actual test cases
  • Dependency visualization – Auto-generated graphs showing each endpoint's dependencies across all its layers
  • Managed HTTP layer – The framework sets up the server and routes, automatically parses request payload, validates it, and calls your use-case with validated, type-safe input. The use-case output is automatically sent as a response to the client
  • Type-safe database queries – Define your database schema in TypeScript, generate migrations from code, and write queries with full type inference
  • Transaction management – Database transactions are automatically managed by the framework, giving database layers direct access to the transaction connection. Serialization and deadlock errors trigger automatic retries, and isolation level, access mode, and max retries are configurable per endpoint
  • Auto-generated OpenAPI spec – API documentation generated from your request and response schemas, viewable in the browser
  • Auto-generated API clients – Type-safe frontend clients generated from the OpenAPI spec. No manual code needed
  • Monorepo structure – Share types, schemas, utilities, and any other code between frontend and backend. No code duplication
  • i18n support – Generate translation files from error codes used in API responses

Problems it Solves

  • Type drift between frontend and backend – shared Zod schemas ensure consistency
  • Unhandled errors – result pattern with exhaustive checking forces handling all cases
  • SQL injection – type-safe query builders, no raw SQL
  • Forgetting validation – automatic validation layer, impossible to skip
  • Transaction leaks – framework manages commit/rollback, no forgotten open transactions
  • Tight coupling – enforced dependency injection for testable code
  • Inconsistent code structure – enforced clean architecture patterns
  • Boilerplate fatigue – CLI generates all the repetitive code, no more copy-paste

Who is it for?

Devux is for developers who want:

  • Type safety from database to UI
  • Full-stack TypeScript with zero drift between frontend and backend
  • Clean architecture without the setup overhead
  • Easily testable code with auto-generated testers and type-safe mocking
  • Dependency injection and IoC built-in
  • Rapid development with code generation
  • A smooth, frictionless developer experience