Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more! Learn more →
InversifyJS Alternatives
Similar projects and alternatives to InversifyJS
-
tsyringe
Lightweight dependency injection container for JavaScript/TypeScript
-
typedi
Simple yet powerful dependency injection tool for JavaScript and TypeScript.
-
Appwrite
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
-
Nest
A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications on top of TypeScript & JavaScript (ES6, ES7, ES8) 🚀
-
-
-
webpack
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
-
Sonar
Write Clean JavaScript Code. Always.. Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
-
nestjs-commander
A module for using NestJS to build up CLI applications
-
mixitup
A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and more
-
-
-
TypeScript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
iti
~1kB Dependency Injection Library for Typescript and React with a unique support of async flow
-
-
testing-nestjs
A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!
-
injection-js
Dependency injection library for JavaScript and TypeScript in 5.1K. It is an extraction of the Angular's ReflectiveInjector which means that it's well designed, feature complete, fast, reliable and well tested.
-
-
ioc
:unicorn: lightweight (<1kb) inversion of control javascript library for dependency injection written in typescript (by owja)
-
diod
A very opinionated inversion of control (IoC) container and dependency injector for Typescript, Node.js or browser apps.
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
InversifyJS reviews and mentions
-
Typesafe, (almost) Zero Cost Dependency Injection in TypeScript
inversify
- Has anyone successfully created a Dependency Injection using typescript decorators?
-
Are you using OOP in your NodeJS application? If not, what does your architecture look like?
However, things like DI / IoC are almost universally recommended when talking about software architecture and you really need interfaces to do it. There's inversify.js which is a good option for Typescript users, but again you need to be doing OOP.
-
I "invented" a (new?) pattern for super-strictly typed IoC containers / registries
Hi, I know that there are some solutions out there to deal with IoC containers in TypeScript, like Inversify, but so far, and after many days exploring the Internet looking for a "nice" solution, I didn't find anything alike to what I just came up with... So there's a chance that this is really a novelty when it comes to TS patterns :) , who knows.
-
Dependency Injection for TypeScript
How about in the context of JavaScript and TypeScript? It may not be common to use DI in web frontend development. Nevertheless, there are DI libraries available for JavaScript and TypeScript. For example, AngularJS and Angular have a DI framework built in. There are also libraries that provide DI functionality on its own, such as InversifyJS and TSyringe. Both InversifyJS and TSyringe are DI libraries for use with TypeScript. InversifyJS is a library with over 5000 Github stars and is used in over 18,000 repositories. On the other hand, there doesn't seem to be much active development going on these days. TSyringe is a DI library that is mainly developed by Microsoft. As of September 2020, it has about 1,400 stars on Github, and it seems to be under continuous development.
-
Any good tutorial showing you which library to use for dependency injection in a project?
The DI library you are looking for is InversifyJS https://github.com/inversify/InversifyJS. Its mature and mirrors API of other popular DI libraries.
-
Top 5 TypeScript dependency injection containers
Following the official documentation, I created a map called TYPES that contains all the tokens we’ll use later for injection. I implemented the necessary interfaces, adding the class-level decorator @injectable to each. The parameters of the InversifySettingsTxtService constructor use the @inject decorator, helping the DI container to resolve dependencies in runtime.
The InversifyJS project provides a lightweight DI container that uses interfaces created through tokenization. It uses decorators and decorators’ metadata for injections. However, some manual work is still necessary for binding implementations to interfaces.
- Um Guia sobre Injeção e Inversão de Dependências em Node.js e TypeScript
-
I took a look at Nest.JS on the recommendation of a friend and honestly, it just looks like people are re-inventing the wheel (Spring Boot) on top of the Node.js runtime.
NestJS is heavily inspired by Angular, which was heavily inspired by Java SpringBoot and C# design patterns. I wouldn't quite say it's re-inventing the wheel, as there's nothing in node that works like this yet. There's a few other DI frameworks (inversify which is more barebones DI, and FoalTS which (to me) feels like NestJS Lite), but none that I know of that come close to NestJS.
-
A note from our sponsor - Appwrite
appwrite.io | 31 Mar 2023
Stats
inversify/InversifyJS is an open source project licensed under MIT License which is an OSI approved license.