{"id":37418621,"url":"https://github.com/loadingio/ldc","last_synced_at":"2026-01-16T06:03:39.126Z","repository":{"id":40271780,"uuid":"236284423","full_name":"loadingio/ldc","owner":"loadingio","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-09T17:36:26.000Z","size":493,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T01:51:38.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loadingio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-26T08:12:24.000Z","updated_at":"2024-11-05T17:02:11.000Z","dependencies_parsed_at":"2023-01-29T03:45:36.469Z","dependency_job_id":null,"html_url":"https://github.com/loadingio/ldc","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/loadingio/ldc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loadingio","download_url":"https://codeload.github.com/loadingio/ldc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldc/sbom","scorecard":{"id":596469,"data":{"date":"2025-08-11","repo":{"name":"github.com/loadingio/ldc","commit":"75c23aeae7b5068035ddab79cb2dd76a7ed967ed"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.2,"checks":[{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.6 not signed: https://api.github.com/repos/loadingio/ldc/releases/108014469","Warn: release artifact v0.0.5 not signed: https://api.github.com/repos/loadingio/ldc/releases/108003463","Warn: release artifact v0.0.4 not signed: https://api.github.com/repos/loadingio/ldc/releases/67039003","Warn: release artifact v0.0.3 not signed: https://api.github.com/repos/loadingio/ldc/releases/57834735","Warn: release artifact v0.0.2 not signed: https://api.github.com/repos/loadingio/ldc/releases/35236808","Warn: release artifact v0.0.6 does not have provenance: https://api.github.com/repos/loadingio/ldc/releases/108014469","Warn: release artifact v0.0.5 does not have provenance: https://api.github.com/repos/loadingio/ldc/releases/108003463","Warn: release artifact v0.0.4 does not have provenance: https://api.github.com/repos/loadingio/ldc/releases/67039003","Warn: release artifact v0.0.3 does not have provenance: https://api.github.com/repos/loadingio/ldc/releases/57834735","Warn: release artifact v0.0.2 does not have provenance: https://api.github.com/repos/loadingio/ldc/releases/35236808"],"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":0,"reason":"23 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-3965-hpx2-q597","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T23:15:43.581Z","repository_id":40271780,"created_at":"2025-08-20T23:15:43.581Z","updated_at":"2025-08-20T23:15:43.581Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-16T06:03:39.056Z","updated_at":"2026-01-16T06:03:39.116Z","avatar_url":"https://github.com/loadingio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ldc\n\nloading js component/action framework.\n\n\n## API\n\n - `ldc.register(name, dep-list, (({dep-list}) -\u003e))`: register a component\n   - while name ignored the module will be an anonymous module and be treated as an app directly.\n   - return the registered ldc object.\n - `ldc.app(name, ...)`: set main entry point of component\n - `ldc.init(opt, ...)`: force init components\n   - `opt` is either:\n     - a string: name for specific ldc component.\n     - an object: a ldc object ( returned by `ldc.register` )\n     - an array of either string or objects as above\n - `ldc.on(name, ((...opts)-\u003e)`: listen to a ldc event\n - `ldc.fire(name, ...opts)`: fire a ldc event\n - `ldc.action(opt1, opt2)`: register an action handler.\n   there are three different cases of usage\n   1. opt1 = name, opt2 = object\n      register an set of action handler under the namespace with opt1 as its name.\n\n   2. opt1 = object, opt2 is omitted\n      similar to 1. while use module name as the action name.\n     \n   3. opt1 = name, opt2 = function (deprecated)\n      register ldc action. deprecated since we can use on/fire to replace this.\n\n\n## Module\n\nldc helps us to maintain the dependency of modules. Define a module as follow:\n\n    ldc.regsiter \"module1\", \u003c[]\u003e, -\u003e return {foo: -\u003e \\bar}\n\n\nA newly created this context can be used in this module:\n\n    ldc.regsiter \"module1\", \u003c[]\u003e, -\u003e return @ \u003c\u003c\u003c {foo: -\u003e \\bar}\n\n\nDeclare dependency and load another module:\n\n    ldc.regsiter \"module2\", \u003c[module1]\u003e, ({module1}) -\u003e\n\n\nthe `module1` object sent to module2 handler will be the returned value in the module1 handler:\n\n    ldc.regsiter \"module2\", \u003c[module1]\u003e, ({module1}) -\u003e\n      assert module1.foo! == \\bar\n\nEach module function will be called at most once. The returned object in the first call will be used then.\n\n    ldc.regsiter \"module1\", \u003c[]\u003e, -\u003e\n      console.log \"this line runs only once.\"\n      @foo = (@foo or 0) + 1\n      return @\n    ldc.regsiter \"module2\", \u003c[module1]\u003e, ({module1}) -\u003e\n      assert module.foo == 1\n    ldc.regsiter \"module3\", \u003c[module1]\u003e, ({module1}) -\u003e\n      assert module.foo == 1\n\n\nmain entry module can be defined by `ldc.app` or by omitting the module name:\n\n    ldc.regsiter \u003c[module1 module2]\u003e, ({module1, module2}) -\u003e ...\n\n\n## Action\n\nOne can use `lda` to access the actions registered via `ldc.action`. For example, following code registers a set of actions:\n\n    ldc.register \"mymodule\", [], -\u003e\n      ldc.action do\n        open: -\u003e\n        close: -\u003e\n\n\nOnce registered, we can use `ldc.mymodule` to access them:\n\n    ldc.mymodule.open!\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadingio%2Fldc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floadingio%2Fldc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadingio%2Fldc/lists"}