Skip to content
D

Ditox

Dependency injection for modular web applications

by mnasyrovFree

#6047in Utilities
0In stores

Description

Ditox.js is a lightweight dependency injection container for TypeScript. It gives you a simple functional API to bind values and factories t…

Highlights

  • Functional API for binding values and factories
  • Singleton, scoped and transient scopes
  • Container hierarchy and dependency modules
  • Multi-value tokens and TypeScript types
  • ditox-react package for React apps

Ratings & Reviews

No ratings yet

Be the first to rate Ditox.

People also visit

T

typescript-advanced-types

Comprehensive guidance

AI Skills
Get
T

Typed

Web Applications with Effect-TS

Developer Tools
Launch
T

tsdown

Fast TypeScript/JavaScript library bundler powered by Rolldown

AI Skills
Get
S

setup-ts-deep-modules

Wire dependency-cruiser into a TypeScript repo

AI Skills
Get
R

ReacType

Prototyping Tool for exporting React/Typescript Applications!

Utilities
Launch
T

tsdown

Bundling TypeScript libraries

AI Skills
Get

Ditox FAQ

What is Ditox.js?

A lightweight dependency injection container for TypeScript that binds values and factories to tokens and resolves them later.

Does it use decorators?

No. The docs say there are no class decorators, field injectors or other magic. Binding and resolving are explicit.

How do I install it?

Run npm install ditox, and npm install ditox-react for React. You can also load the UMD builds from jsDelivr with a script tag.

Is it open source?

Yes. The repository on GitHub includes a LICENSE file.

What are the best Ditox alternatives?

Popular alternatives to Ditox include ReacType, Sveld and Effect. See all Ditox alternatives

Developer Stuff

Badges