{"id":16823019,"url":"https://github.com/wzhudev/redi","last_synced_at":"2025-03-17T03:32:13.378Z","repository":{"id":46228909,"uuid":"398712014","full_name":"wzhudev/redi","owner":"wzhudev","description":"💉 A dependency injection library for TypeScript \u0026 JavaScript, along with a binding for React.","archived":false,"fork":false,"pushed_at":"2024-03-01T02:39:31.000Z","size":435,"stargazers_count":77,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-14T07:10:19.019Z","etag":null,"topics":["dependency-injection","ioc","react","typescript"],"latest_commit_sha":null,"homepage":"https://redi.wendell.fun","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/wzhudev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-08-22T04:17:00.000Z","updated_at":"2024-05-17T12:20:08.310Z","dependencies_parsed_at":"2023-02-16T06:16:06.955Z","dependency_job_id":"b64eeb85-0d53-403c-9368-68b65ab5aa10","html_url":"https://github.com/wzhudev/redi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzhudev%2Fredi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzhudev%2Fredi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzhudev%2Fredi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzhudev%2Fredi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wzhudev","download_url":"https://codeload.github.com/wzhudev/redi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841211,"owners_count":20356443,"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","ioc","react","typescript"],"created_at":"2024-10-13T11:06:48.027Z","updated_at":"2025-03-17T03:32:13.364Z","avatar_url":"https://github.com/wzhudev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redi\n\n![Stars](https://badgen.net/github/stars/wzhudev/redi)\n![Downloads](https://badgen.net/npm/dt/@wendellhu/redi)\n![License](https://badgen.net/github/license/wzhudev/redi)\n[![Codecov](https://img.shields.io/codecov/c/github/wzhudev/redi.svg)](https://codecov.io/gh/wzhudev/redi)\n\nA dependency library for TypeScript and JavaScript, along with a binding for React.\n\n## Overview\n\n```typescript\nimport { Inject } from '@wendellhu/redi'\n\nclass AuthService {\n  public getCurrentUserInfo(): UserInfo {}\n}\n\nclass FileListService {\n  constructor(@Inject(AuthService) private readonly authService: AuthService) {}\n\n  public getUserFiles(): Promise\u003cFiles\u003e {\n    const currentUser = this.authService.getCurrentUserInfo()\n  }\n}\n\nconst injector = new Injector([[AuthService], [FileListService]])\n\ninjector.get(AuthService)\n```\n\n**View full documentation on [redi.wzhu.dev](https://redi.wzhu.dev/).**\n\n## Links\n\n-   [Demo TodoMVC](https://wzhudev.github.io/redi-todomvc/) | [source](https://github.com/wzhudev/redi-todomvc)\n-   [Scaffold](https://github.com/wzhudev/redi-starter)\n\n## Users\n\n-   [Univer](https://github.com/dream-num/univer)\n-   Team Lark at ByteDance\n\n## License\n\nMIT. Copyright 2021-present Wenzhao Hu.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzhudev%2Fredi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwzhudev%2Fredi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzhudev%2Fredi/lists"}