{"id":28509852,"url":"https://github.com/choojs/choo-devtools","last_synced_at":"2025-10-20T10:12:53.848Z","repository":{"id":57153177,"uuid":"85083756","full_name":"choojs/choo-devtools","owner":"choojs","description":"💼 - Expose a choo instance on the window","archived":false,"fork":false,"pushed_at":"2020-03-20T18:34:01.000Z","size":73,"stargazers_count":53,"open_issues_count":2,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-09T03:13:01.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/choojs.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":"2017-03-15T14:41:50.000Z","updated_at":"2023-02-26T15:50:09.000Z","dependencies_parsed_at":"2022-09-16T13:12:30.938Z","dependency_job_id":null,"html_url":"https://github.com/choojs/choo-devtools","commit_stats":null,"previous_names":["yoshuawuyts/choo-expose"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/choojs/choo-devtools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-devtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-devtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-devtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-devtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choojs","download_url":"https://codeload.github.com/choojs/choo-devtools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-devtools/sbom","scorecard":{"id":278748,"data":{"date":"2025-08-11","repo":{"name":"github.com/choojs/choo-devtools","commit":"5ce1ba03e4b03c63b4ffa138fab5bce15e3da87e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":"Code-Review","score":3,"reason":"Found 11/28 approved changesets -- score normalized to 3","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":"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":"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":"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":"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":"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":"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: MIT License: 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 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-17T15:11:13.632Z","repository_id":57153177,"created_at":"2025-08-17T15:11:13.632Z","updated_at":"2025-08-17T15:11:13.632Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273846976,"owners_count":25178631,"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-05T02:00:09.113Z","response_time":402,"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":[],"created_at":"2025-06-08T22:37:30.795Z","updated_at":"2025-10-20T10:12:48.809Z","avatar_url":"https://github.com/choojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# choo-devtools [![stability][0]][1]\n[![npm version][2]][3] [![build status][4]][5]\n[![downloads][8]][9] [![js-standard-style][10]][11]\n\nConsole devtools for Choo. Useful for inspecting the state of applications,\ntuning performance, and quick iteration. No installation needed means it works\nin all browsers and Electron! :sparkles:\n\n## Usage\n```js\nvar choo = require('choo')\n\nvar app = choo()\nif (process.env.NODE_ENV !== 'production') {\n  app.use(require('choo-devtools')())\n}\napp.mount('body')\n```\n\n## API\n### `var devtoolStore = require('choo-devtools')(opts)`\nThis module exposes a function that return a choo store. The function accept \na single option argument, with the following properties:\n\n- **filter**: A function to filter events for the devtools logger. The filter \nfunction accept three arguments `eventName, data, timing` and should return `true` \n(the event will be logged) or `false` (the event wont be logged).\n\n## Commands\n### `choo.help`\nPrint out information about all commands.\n```txt\n❯ choo.help\n```\n\n### `choo.state`\nLog out the Choo state object.\n```txt\n❯ choo.state\n```\n\n### `choo.debug`\nLog all state modificiations using\n[object-change-callsite](https://github.com/yoshuawuyts/object-change-callsite/).\nLogs out the key, value, and stack trace for the change. Useful when you're\ndealing with unexpected values in your state. Especially useful when enabling\nasynchronous stack traces in the devtools.\n```txt\n// Enable debugging\n❯ choo.debug\n\n// Disable debugging\n❯ choo.debug = false\n```\n\n### `choo.storage`\nLog out information about the browser's storage capabilities.\n```txt\n❯ choo.storage\n```\n\n### `choo.log`\nLog out the last 150 events that occured in Choo. Useful during debugging to\nquickly figure out which sequences of events were responsible for the current\nstate.\n```txt\n❯ choo.log\n```\n\nTo enable `state` snapshots on each event, call `choo.debug`. Be warned that\nthis may severely impact performance – it's recommended to only use this for\ndebugging state.\n\n### `choo.copy([selector])`\nSerialize the current state to JSON and copy it to the clipboard. Can be passed\na selector (such as `href`) to do a partial copy. Useful if you want to create\na test based on the current application state.\n```txt\n// Copy all of state.\n❯ choo.copy()\n\n// Copy `state.href`.\n❯ choo.copy('href')\n```\n\n### `choo.routes`\nGet an array with the registered routes.\n```txt\n❯ choo.routes\n```\n\n### `choo.perf[type]`\nLog out performance metrics for Choo. There are different types of entries we\ncan show:\n- `choo.perf.all` Log out all data.\n- `choo.perf.core` Only log out data about Choo's built-in methods.\n- `choo.perf.events` Only log out information about the event bus.\n- `choo.perf.components` Only log out information about components.\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n\n[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square\n[1]: https://nodejs.org/api/documentation.html#documentation_stability_index\n[2]: https://img.shields.io/npm/v/choo-devtools.svg?style=flat-square\n[3]: https://npmjs.org/package/choo-devtools\n[4]: https://img.shields.io/travis/choojs/choo-devtools/master.svg?style=flat-square\n[5]: https://travis-ci.org/choojs/choo-devtools\n[6]: https://img.shields.io/codecov/c/github/choojs/choo-devtools/master.svg?style=flat-square\n[7]: https://codecov.io/github/choojs/choo-devtools\n[8]: http://img.shields.io/npm/dm/choo-devtools.svg?style=flat-square\n[9]: https://npmjs.org/package/choo-devtools\n[10]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[11]: https://github.com/feross/standard\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoojs%2Fchoo-devtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoojs%2Fchoo-devtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoojs%2Fchoo-devtools/lists"}