{"id":15839576,"url":"https://github.com/afeiship/react-toast","last_synced_at":"2026-03-10T17:37:13.936Z","repository":{"id":96088312,"uuid":"76241012","full_name":"afeiship/react-toast","owner":"afeiship","description":"Toast for react.","archived":false,"fork":false,"pushed_at":"2024-09-08T07:52:23.000Z","size":2407,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T21:28:38.506Z","etag":null,"topics":["cmd","react","singleton","toast","use-command","ve"],"latest_commit_sha":null,"homepage":"https://afeiship.github.io/react-toast/","language":"TypeScript","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-12-12T09:20:36.000Z","updated_at":"2024-09-08T07:52:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8a4d465-3fcf-481e-b43a-7b956d6be451","html_url":"https://github.com/afeiship/react-toast","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"e4277ab07b16b5a771b3588f0e59b01450327306"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/react-toast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-toast/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-toast/sbom","scorecard":{"id":169593,"data":{"date":"2025-08-11","repo":{"name":"github.com/afeiship/react-toast","commit":"5b0ca98c2563a54c03d3985bbfc47b76b7e2ed9d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-16T16:02:48.357Z","repository_id":96088312,"created_at":"2025-08-16T16:02:48.357Z","updated_at":"2025-08-16T16:02:48.357Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30344725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cmd","react","singleton","toast","use-command","ve"],"created_at":"2024-10-05T16:20:33.490Z","updated_at":"2026-03-10T17:37:13.924Z","avatar_url":"https://github.com/afeiship.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-toast\n\u003e Toast for react.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install -S @jswork/react-toast\n```\n\n## usage\n1. import css\n  ```scss\n  @import \"~@jswork/react-toast/dist/style.css\";\n\n  // or use sass\n  @import \"~@jswork/react-toast/dist/style.scss\";\n  ```\n2. import js\n  ```js\n  import ReactToast, { useCommand } from '@jswork/react-toast/main';\n  import '@jswork/react-toast/dist/style.scss';\n\n  function App() {\n    const cmd1 = useCommand('t1');\n    const cmd2 = useCommand('t2');\n    return (\n      \u003cdiv className=\"m-10 p-4 shadow bg-gray-100 wp-5 text-gray-800 rel mt-50 hover:shadow-md transition-all\"\u003e\n        \u003cdiv className=\"badge badge-warning absolute right-0 top-0 m-4\"\u003e\n          Build Time: {BUILD_TIME}\n        \u003c/div\u003e\n        \u003cReactToast name=\"t1\" className=\"text-white p-2 rounded\"\u003e\n          Toast content here.\n        \u003c/ReactToast\u003e\n        \u003cReactToast name=\"t2\" fixed className=\"p-2 bg-green-500 text-white rounded\"\u003e\n          Toast content here fixed.\n        \u003c/ReactToast\u003e\n        \u003cdiv className=\"y-2\"\u003e\n          \u003cnav className=\"x-2 rel z-10\"\u003e\n            \u003cbutton className=\"btn btn-sm btn-primary\" onClick={() =\u003e cmd1.present()}\u003eShowToast\u003c/button\u003e\n            \u003cbutton className=\"btn btn-sm btn-secondary ml-2\" onClick={() =\u003e cmd1.dismiss()}\u003eHideToast\u003c/button\u003e\n          \u003c/nav\u003e\n          \u003cnav className=\"x-2 rel z-10\"\u003e\n            \u003cbutton className=\"btn btn-sm btn-primary\" onClick={() =\u003e cmd2.present({\n              children: 'Dynamically set content.',\n              duration: 5 * 1000\n            })}\u003eShow fixed Toast\n            \u003c/button\u003e\n            \u003cbutton className=\"btn btn-sm btn-secondary ml-2\" onClick={() =\u003e cmd2.dismiss()}\u003eHide fixed Toast(optional)\n            \u003c/button\u003e\n          \u003c/nav\u003e\n          \u003cdiv className=\"mockup-code\"\u003e\n            \u003cpre data-prefix=\"$\"\u003e\n              \u003ccode\u003emethods: preset/dismiss\u003c/code\u003e\n            \u003c/pre\u003e\n          \u003c/div\u003e\n        \u003c/div\u003e\n      \u003c/div\u003e\n    );\n  }\n\n  export default App;\n  ```\n\n## preview\n- https://afeiship.github.io/react-toast/\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-toast/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-toast\n[version-url]: https://npmjs.org/package/@jswork/react-toast\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-toast\n[license-url]: https://github.com/afeiship/react-toast/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-toast\n[size-url]: https://github.com/afeiship/react-toast/blob/master/dist/react-toast.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-toast\n[download-url]: https://www.npmjs.com/package/@jswork/react-toast\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-toast/lists"}