{"id":13392548,"url":"https://github.com/inversify/InversifyJS","last_synced_at":"2025-03-13T18:31:51.677Z","repository":{"id":30019807,"uuid":"33568214","full_name":"inversify/InversifyJS","owner":"inversify","description":"A powerful and lightweight inversion of control container  for JavaScript \u0026 Node.js apps powered by TypeScript.","archived":false,"fork":false,"pushed_at":"2024-10-29T20:26:59.000Z","size":2397,"stargazers_count":11265,"open_issues_count":274,"forks_count":714,"subscribers_count":135,"default_branch":"master","last_synced_at":"2024-10-29T22:48:31.776Z","etag":null,"topics":["dependency-injection","inversifyjs","ioc","javascript","nodejs","typescript"],"latest_commit_sha":null,"homepage":"http://inversify.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inversify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-07T21:04:38.000Z","updated_at":"2024-10-29T20:27:01.000Z","dependencies_parsed_at":"2024-02-08T16:09:53.604Z","dependency_job_id":"51ee77a2-2c3c-4dd7-acb5-35f0601cd956","html_url":"https://github.com/inversify/InversifyJS","commit_stats":{"total_commits":1145,"total_committers":126,"mean_commits":9.087301587301587,"dds":0.5781659388646287,"last_synced_commit":"6802b6b51f45c807d36c35cf8bd2c7fd2e8ef065"},"previous_names":[],"tags_count":98,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inversify%2FInversifyJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inversify%2FInversifyJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inversify%2FInversifyJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inversify%2FInversifyJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inversify","download_url":"https://codeload.github.com/inversify/InversifyJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237651116,"owners_count":19344668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependency-injection","inversifyjs","ioc","javascript","nodejs","typescript"],"created_at":"2024-07-30T17:00:27.375Z","updated_at":"2025-03-13T18:31:51.663Z","avatar_url":"https://github.com/inversify.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/inversify\" target=\"__blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/inversify?color=0476bc\u0026label=\" alt=\"NPM version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/inversify\" target=\"__blank\"\u003e\u003cimg alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/inversify?color=3890aa\u0026label=\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/inversify/InversifyJS#-the-inversifyjs-features-and-api\" target=\"__blank\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=docs\u0026color=1e8a7a\" alt=\"Docs\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/inversify/InversifyJS\" target=\"__blank\"\u003e\u003cimg alt=\"Codecov\" src=\"https://codecov.io/gh/inversify/InversifyJS/branch/master/graph/badge.svg?token=KfAKzuGs01\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://github.com/inversify/InversifyJS\" target=\"__blank\"\u003e\u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/inversify/InversifyJS?style=social\"\u003e\u003c/a\u003e\n  \u003c!--\u003ca href=\"https://twitter.com/inversifyjs\" target=\"__blank\"\u003e\u003cimg alt=\"Twitter\" src=\"https://img.shields.io/twitter/follow/InversifyJS.svg?maxAge=86400\u0026style=social\"\u003e\u003c/a\u003e--\u003e\n  \u003ca href=\"https://discord.gg/jXcMagAPnm\" target=\"__blank\"\u003e\u003cimg alt=\"Discord Server\" src=\"https://img.shields.io/discord/816766547879657532?style=social\u0026logo=discord\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# InversifyJS\nA powerful and lightweight inversion of control container for JavaScript \u0026 Node.js apps powered by TypeScript.\n\n## 📕 Documentation\nDocumentation is available at https://inversify.io\n\n## About\nInversifyJS is a lightweight inversion of control (IoC) container for TypeScript and JavaScript apps.\nAn IoC container uses a class constructor to identify and inject its dependencies.\nInversifyJS has a friendly API and encourages the usage of the best OOP and IoC practices.\n\n## Motivation\nJavaScript now supports object oriented (OO) programming with class based inheritance. These features are great but the truth is that they are also\n[dangerous](https://medium.com/@dan_abramov/how-to-use-classes-and-sleep-at-night-9af8de78ccb4).\n\nWe need a good OO design ([SOLID](https://en.wikipedia.org/wiki/SOLID_(object-oriented_design)), [Composite Reuse](https://en.wikipedia.org/wiki/Composition_over_inheritance), etc.) to protect ourselves from these threats. The problem is that OO design is difficult and that is exactly why we created InversifyJS.\n\nInversifyJS is a tool that helps JavaScript developers write code with good OO design.\n\n## Philosophy\nInversifyJS has been developed with 4 main goals:\n\n1. Allow JavaScript developers to write code that adheres to the SOLID principles.\n\n2. Facilitate and encourage the adherence to the best OOP and IoC practices.\n\n3. Add as little runtime overhead as possible.\n\n4. Provide a state of the art development experience.\n\n## Testimonies\n\n**[Nate Kohari](https://twitter.com/nkohari)** - Author of [Ninject](https://github.com/ninject/Ninject)\n\n\u003e *\"Nice work! I've taken a couple shots at creating DI frameworks for JavaScript and TypeScript, but the lack of RTTI really hinders things.*\n\u003e *The ES7 metadata gets us part of the way there (as you've discovered). Keep up the great work!\"*\n\n**[Michel Weststrate](https://twitter.com/mweststrate)** - Author of [MobX](https://github.com/mobxjs/mobx)\n\u003e *Dependency injection like InversifyJS works nicely*\n\n## Some companies using InversifyJS\n\n[\u003cimg src=\"https://avatars0.githubusercontent.com/u/6154722?s=200\u0026v=4\" width=\"100\" /\u003e](https://opensource.microsoft.com/)[\u003cimg src=\"https://avatars2.githubusercontent.com/u/69631?s=200\u0026v=4\" width=\"100\" /\u003e](https://code.facebook.com/projects/1021334114569758/nuclide/)[\u003cimg src=\"https://avatars0.githubusercontent.com/u/2232217?s=200\u0026v=4\" width=\"100\" /\u003e](https://aws.github.io/aws-amplify/)[\u003cimg src=\"https://avatars0.githubusercontent.com/u/1520648?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.plainconcepts.com/)[\u003cimg src=\"https://avatars3.githubusercontent.com/u/6962987?s=200\u0026v=4\" width=\"100\" /\u003e](https://api.slack.com/)[\u003cimg src=\"https://pbs.twimg.com/profile_images/827249559046909954/SyaBPcH8_400x400.jpg\" width=\"100\" /\u003e](http://acia.aon.com/index.php/home/) [\u003cimg src=\"https://avatars3.githubusercontent.com/u/114767?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.lonelyplanet.com/) [\u003cimg src=\"https://avatars0.githubusercontent.com/u/25283328?s=200\u0026v=4\" width=\"100\" /\u003e](https://jincor.com/) [\u003cimg src=\"https://avatars1.githubusercontent.com/u/1957282?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.web-computing.de/) [\u003cimg src=\"https://avatars1.githubusercontent.com/u/17648048?s=200\u0026v=4\" width=\"100\" /\u003e](https://dcos.io/) [\u003cimg src=\"https://avatars0.githubusercontent.com/u/16970371?s=200\u0026v=4\" width=\"100\" /\u003e](https://typefox.io/) [\u003cimg src=\"https://avatars0.githubusercontent.com/u/18010308?s=200\u0026v=4\" width=\"100\" /\u003e](https://code4.ro/) [\u003cimg src=\"https://user-images.githubusercontent.com/10656223/33888109-fae0852e-df43-11e7-97f6-9db543da0bde.png\" width=\"100\"\u003e](http://www.baidu.com/) [\u003cimg src=\"https://avatars2.githubusercontent.com/u/8085382?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.imdada.cn/) [\u003cimg src=\"https://avatars2.githubusercontent.com/u/17041151?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.ato.gov.au/) [\u003cimg src=\"https://avatars1.githubusercontent.com/u/14963540?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.kaneoh.com/) [\u003cimg src=\"https://avatars0.githubusercontent.com/u/26021686?s=200\u0026v=4\" width=\"100\" /\u003e](https://particl.io/) [\u003cimg src=\"https://avatars2.githubusercontent.com/u/24523195?s=200\u0026v=4\" width=\"100\" /\u003e](https://slackmap.com/) [\u003cimg src=\"https://avatars3.githubusercontent.com/u/16556899?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.go1.com/) [\u003cimg src=\"https://avatars3.githubusercontent.com/u/23475730?s=200\u0026v=4\" width=\"100\" /\u003e](http://www.stellwagengroup.com/stellwagen-technology/) [\u003cimg src=\"https://avatars1.githubusercontent.com/u/15262567?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.edrlab.org/) [\u003cimg src=\"https://avatars1.githubusercontent.com/u/10072104?s=200\u0026v=4\" width=\"100\" /\u003e](https://www.goodgamestudios.com/) [\u003cimg src=\"https://avatars2.githubusercontent.com/u/13613760?s=200\u0026v=4\" width=\"100\" /\u003e](https://freshfox.at/) [\u003cimg src=\"https://avatars1.githubusercontent.com/u/864482?s=200\u0026v=4\" width=\"100\" /\u003e](https://schubergphilis.com/)\n\n## Acknowledgements\n\nThanks a lot to all the [contributors](https://github.com/inversify/InversifyJS/graphs/contributors), all the developers out there using InversifyJS and all those that help us to spread the word by sharing content about InversifyJS online. Without your feedback and support this project would not be possible.\n\n## License\n\nLicense under the MIT License (MIT)\n\nCopyright © 2015-2017 [Remo H. Jansen](http://www.remojansen.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Table of Contents","TypeScript","Repository","目录","Tools","TypeScript 工具/库/框架","typescript","TypeScript Tools, Libraries, and Frameworks","JavaScript/TypeScript Tools","JavaScript",":file_folder: Browser"],"sub_categories":["Dependency Injection","Inversion of control / Dependency Injection (Ioc/DI)","Interfaces","Ioc","E-Books","Mesh networks","Data","Utilities Framework"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finversify%2FInversifyJS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finversify%2FInversifyJS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finversify%2FInversifyJS/lists"}