{"id":20227675,"url":"https://github.com/panga/lite-beans","last_synced_at":"2025-09-21T23:38:17.329Z","repository":{"id":57721986,"uuid":"136560464","full_name":"panga/lite-beans","owner":"panga","description":"LiteBeans is implementation of the java.beans package based on the Apache Harmony project","archived":false,"fork":false,"pushed_at":"2018-06-08T03:56:38.000Z","size":110,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T03:21:15.517Z","etag":null,"topics":["java","jdk9","jigsaw","jpms"],"latest_commit_sha":null,"homepage":"","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/panga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-08T03:16:31.000Z","updated_at":"2020-03-01T16:33:53.000Z","dependencies_parsed_at":"2022-09-26T21:50:29.877Z","dependency_job_id":null,"html_url":"https://github.com/panga/lite-beans","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/panga/lite-beans","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Flite-beans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Flite-beans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Flite-beans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Flite-beans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panga","download_url":"https://codeload.github.com/panga/lite-beans/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Flite-beans/sbom","scorecard":{"id":719042,"data":{"date":"2025-08-18","repo":{"name":"github.com/panga/lite-beans","commit":"093509b91aaee45db83c8e04650fcd01754b8f38"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3,"checks":[{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T10:41:19.540Z","repository_id":57721986,"created_at":"2025-08-22T10:41:19.540Z","updated_at":"2025-08-22T10:41:19.540Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276323636,"owners_count":25622501,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["java","jdk9","jigsaw","jpms"],"created_at":"2024-11-14T07:26:02.087Z","updated_at":"2025-09-21T23:38:17.279Z","avatar_url":"https://github.com/panga.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiteBeans Project\n\n**LiteBeans** is implementation of the `java.beans` package based on the [Apache Harmony](https://github.com/apache/harmony) project.\n\n## Problem\n\nThe [java.desktop](https://docs.oracle.com/javase/9/docs/api/java.desktop-summary.html) module introduced in JDK 9 encapsulates all AWT, Swing, Image and Sound packages from Java standard libraries.\n\nIn addition to that, it contains the `java.beans` package with helper classes to interact with *Java Beans*, specifically bean introspection and property change listeners.\n\nDue to its tight dependency with AWT and Swing, it cannot be easily removed from `java.desktop` module, causing any thirdparty library that uses `java.beans` package to be dependent of all `java.desktop` classes.\n\nThe extra overhead of `java.desktop` module adds `12mb` of size into the JVM installation and increases memory usage.\n\n## Solution\n\nImplemented `java.beans` package with only `java.base` module dependency based on [Apache Harmony](https://github.com/apache/harmony) project source code.\n\nThe implementation is a subset of official JDK `java.beans` classes, it does not implement the full interface.\n\nHowever, it adds enough classes to be used by Object Mapping (xml, json) libraries and Dependency Injection (Spring, CDI) frameworks in a transparent way.\n\nThe total size of **LiteBeans** library is less than `150kb`.\n\n## Usage\n\n### Using as a `java.beans` alternative\n\n1. Add Maven Dependency\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.panga\u003c/groupId\u003e\n    \u003cartifactId\u003elite-beans\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n2. Find all ocurrencies of `import java.beans` and replace with `import lite.beans`.\n\n### Using as a module patch (hacking JPMS)\n\n1. Add Maven Dependency or download the JAR (notice the classifier)\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.panga\u003c/groupId\u003e\n    \u003cartifactId\u003elite-beans\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003cclassifier\u003epatch\u003c/classifier\u003e\n\u003c/dependency\u003e\n```\n\n2. Run your application in a minimal JRE without `java.desktop` module:\n\n```bash\njava \\\n    --patch-module java.base=lite-beans-1.0.0-patch.jar \\\n    --add-exports java.base/java.beans=acme.myapp \\\n    --module-path target/modules --module acme.myapp \\\n```\n\n*Note: See usage in https://github.com/panga/hammock-jpms example.*\n\n## Contributors\n\n* Leonardo Zanivan \u003cpanga@apache.org\u003e\n\n## License\n\n[Apache License 2.0](LICENSE.txt)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanga%2Flite-beans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanga%2Flite-beans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanga%2Flite-beans/lists"}