{"id":15044428,"url":"https://github.com/eis/minimal-di","last_synced_at":"2026-01-31T16:02:00.200Z","repository":{"id":24113027,"uuid":"27501126","full_name":"eis/minimal-di","owner":"eis","description":"This is a minimal dependency injection framework.","archived":false,"fork":false,"pushed_at":"2021-06-29T16:53:46.000Z","size":749,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T14:51:23.723Z","etag":null,"topics":["java11","java16","java7","java8"],"latest_commit_sha":null,"homepage":"http://eis.github.io/minimal-di/project-info.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eis.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}},"created_at":"2014-12-03T18:22:57.000Z","updated_at":"2021-06-29T16:51:25.000Z","dependencies_parsed_at":"2022-08-06T00:15:15.095Z","dependency_job_id":null,"html_url":"https://github.com/eis/minimal-di","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/eis/minimal-di","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fminimal-di","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fminimal-di/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fminimal-di/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fminimal-di/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eis","download_url":"https://codeload.github.com/eis/minimal-di/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fminimal-di/sbom","scorecard":{"id":370198,"data":{"date":"2025-08-11","repo":{"name":"github.com/eis/minimal-di","commit":"1d15b8cf82fa794017883e54bdec5f2e52b619e8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/eis/minimal-di/build.yml/master?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T12:46:34.445Z","repository_id":24113027,"created_at":"2025-08-18T12:46:34.445Z","updated_at":"2025-08-18T12:46:34.445Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28947567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["java11","java16","java7","java8"],"created_at":"2024-09-24T20:50:34.468Z","updated_at":"2026-01-31T16:02:00.185Z","avatar_url":"https://github.com/eis.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Minimal DI\n==========\n\n[![Build Status](https://github.com/eis/minimal-di/actions/workflows/build.yml/badge.svg)](https://github.com/eis/minimal-di/actions/workflows/build.yml)\n[![Coverage Status](https://img.shields.io/codecov/c/gh/eis/minimal-di?token=FL4QJY2PRT)](https://codecov.io/gh/eis/minimal-di)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.eis.libraries/minimal-di/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.eis.libraries/minimal-di/)\n[![Codebeat Analysis](https://codebeat.co/badges/8e124ee5-7860-4551-b13f-64a2d109222c)](https://codebeat.co/projects/github-com-eis-minimal-di)\n\nThis is a minimal dependency injection framework.\n\nReasoning\n---------\n\nThis was created out of need for simple DI. Guice weighs 600kt, Weld\nCDI 3M, and Spring even more. Even PicoContainer weighs 317kt.\nThat's not what I needed - I needed a very simple DI system\nthat would just implement the basic features and nothing more, with\nfew simple classes. This is it.\n\n\"Minimal DI\" currently weighs 23k as a .jar, which is simple enough.\nIt doesn't need any additional dependencies which was one of\nits main goals.\n\nUsage\n-----\n\nInject your dependencies to constructors:\n\n```java\nimport fi.eis.libraries.di.Inject;\n\npublic class CurrentApp {\n    private MyDependency dependency;\n    @Inject\n    public CurrentApp(MyDependency dependency) {\n        this.dependency = dependency;\n    }\n}\n```\n\nOr directly to your private variables:\n\n```java\nimport fi.eis.libraries.di.Inject;\n\npublic class CurrentApp {\n    @Inject\n    private MyDependency dependency;\n}\n```\n\nand fire up the system using either all classes in the deployment unit:\n\n```java\npublic static void main(String args[]) {\n    Context diContext = DependencyInjection.deploymentUnitContext(CurrentApp.class);\n    CurrentApp app = diContext.get(CurrentApp.class);\n    app.run();\n}\n```\n\nor listing all implementation classes part of DI:\n\n```java\npublic static void main(String args[]) {\n    Module module = DependencyInjection.classes(CurrentApp.class, ClassImplementingDependency.class);\n    Context diContext = DependencyInjection.context(module);\n    CurrentApp app = diContext.get(CurrentApp.class);\n    app.run();\n}\n```\n\nor use a Spring-style javaconfig class (version 1.1):\n\n```java\npublic static void main(String args[]) {\n    Context diContext = DependencyInjection.configurationClasses(ExampleJavaConfig.class);\n    CurrentApp app = diContext.get(CurrentApp.class);\n    app.run();\n}\n```\n\nThat's it.\n\nMaven dependency\n----------------\n\nThis library can be used from Maven Central:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.eis.libraries\u003c/groupId\u003e\n  \u003cartifactId\u003eminimal-di\u003c/artifactId\u003e\n  \u003cversion\u003e1.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feis%2Fminimal-di","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feis%2Fminimal-di","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feis%2Fminimal-di/lists"}