{"id":15060323,"url":"https://github.com/gossi/ember-command","last_synced_at":"2025-09-12T13:35:39.962Z","repository":{"id":42028272,"uuid":"351427287","full_name":"gossi/ember-command","owner":"gossi","description":"Integrate your Business Logic with Ember","archived":false,"fork":false,"pushed_at":"2025-09-08T14:26:45.000Z","size":1832,"stargazers_count":17,"open_issues_count":12,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-09-08T15:29:01.554Z","etag":null,"topics":["command","cqs","ember","ember-addon","emberjs"],"latest_commit_sha":null,"homepage":"https://gossi.github.io/ember-command/","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/gossi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-25T12:25:19.000Z","updated_at":"2025-09-08T14:23:06.000Z","dependencies_parsed_at":"2024-01-28T13:15:45.696Z","dependency_job_id":"b92345f9-906b-4d0c-afbf-29c805cb3455","html_url":"https://github.com/gossi/ember-command","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":"0.022727272727272707","last_synced_commit":"8dbc67e9788f7bf8c265f7f418124787dd339fce"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/gossi/ember-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gossi%2Fember-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gossi%2Fember-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gossi%2Fember-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gossi%2Fember-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gossi","download_url":"https://codeload.github.com/gossi/ember-command/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gossi%2Fember-command/sbom","scorecard":{"id":441852,"data":{"date":"2025-08-11","repo":{"name":"github.com/gossi/ember-command","commit":"817dc52914564f52b354c303dc6d214484df68b5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":10,"reason":"30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","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":"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/ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/plan-release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/plan-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/plan-release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/plan-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/plan-release.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/plan-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/pr.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/gossi/ember-command/publish.yml/main?enable=pin","Info:   0 out of  12 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/plan-release.yml:38","Info: jobLevel 'issues' permission set to 'read': .github/workflows/plan-release.yml:39","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/publish.yml:23","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/docs.yml:11","Warn: no topLevel permission defined: .github/workflows/plan-release.yml:1","Warn: no topLevel permission defined: .github/workflows/pr.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1"],"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":"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.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md: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 'main'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-19T05:46:10.669Z","repository_id":42028272,"created_at":"2025-08-19T05:46:10.669Z","updated_at":"2025-08-19T05:46:10.669Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274408745,"owners_count":25279559,"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-10T02:00:12.551Z","response_time":83,"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":["command","cqs","ember","ember-addon","emberjs"],"created_at":"2024-09-24T22:56:48.475Z","updated_at":"2025-09-12T13:35:39.951Z","avatar_url":"https://github.com/gossi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Commands for Ember\n\nImplementation of the\n[Command](https://refactoring.guru/design-patterns/command) design pattern from\n[C-Q-S](https://en.wikipedia.org/wiki/Command–query_separation) for ember.\n\n- Commands are a primitives to be passed around\n- Commands are just functions\n- Commands are composable of many functions (but stays a function)\n- Commands can have/be a link (but stays a function)\n- Use commands with `(fn)` and enjoy partial applications (because it stayed a\n  function)\n\nWhat you'll get:\n\n- A `Command` class to extend from for your implementation\n- A `LinkCommand` as syntactic sugar for creating a link (through [`ember-link`](https://github.com/buschtoens/ember-link))\n- A `@command` decorator to connect your component with your command\n- A `\u003cCommandElement\u003e` component as your building block to attach your command to the UI\n- The `\u003cCommandElement\u003e` will accept a `Command`, an `@action` or a `(link)`\n- The `\u003cCommandElement\u003e` will render the correct HTML element to take care of\n  accessibility\n\n## Documentation\n\n[Read the Documentation](https://gossi.github.io/ember-command/)\n\n## Installation\n\nInstall `ember-command` with:\n\n```sh\nember install ember-command\n```\n\n## Usage\n\nThe idea for `ember-command` is clearly to [separate your business logic from\nyour UI](https://gossi.github.io/ember-command/why.html) by offering a couple of\nmechanics to do that.\n\n### Actions\n\nWrite an action that invokes a service within a [single file\ncomponent](https://rfcs.emberjs.com/id/0779-first-class-component-templates).\n\n```gts\nimport { action } from 'ember-command';\nimport { on } from '@ember/modifier';\n\nconst inc = action(({ services }) =\u003e () =\u003e {\n  services.counter.inc();\n});\n\nconst Counter = \u003ctemplate\u003e\n  \u003cbutton type=\"button\" {{(inc)}}\u003e+\u003c/button\u003e\n\u003c/template\u003e\n\nexport default Counter;\n```\n\n### Composing\n\nCompose various commands together to form a primitive that can be passed around.\nThis works well in combination with\n[`ember-link`](https://github.com/buschtoens/ember-link).\n\nLet's make a link and add tracking to it:\n\n```gts\nimport { command, action, CommandElement } from 'ember-command';\nimport { link } from 'ember-link';\n\nconst track = action(({ services }) =\u003e (event: string) =\u003e {\n  services.tracking.track(event);\n});\n\nconst HomeLink = \u003ctemplate\u003e\n  \u003cCommandElement @command={{command \n    (fn (track) \"go home\")\n    (link \"application\")\n  }}\u003eHome\u003c/CommandElement\u003e\n\u003c/template\u003e\n\nexport default HomeLink;\n```\n\n## Contributing\n\nSee the [Contributing](https://github.com/gossi/ember-command/CONTRIBUTING.md) guide for details.\n\n## License\n\nThis project is licensed under the [MIT License](https://github.com/gossi/ember-command/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgossi%2Fember-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgossi%2Fember-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgossi%2Fember-command/lists"}