I "invented" a (new?) pattern for super-strictly typed IoC containers / registries

This page summarizes the projects mentioned and recommended in the original post on /r/typescript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • InversifyJS

    A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.

  • 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.

  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • I believe this can be very valuable, mostly when the TypeScript community has been asking for features such as the nameof operator ( #43325, #40846, etc. ) precisely because of this use case.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • diddly

    ƛ💉 Pure functional dependency injection for TypeScript

  • I've toyed with a similar pattern, albeit a purely functional one https://github.com/tom-sherman/diddly

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts