{"id":13406843,"url":"https://github.com/fkhadra/react-toastify","last_synced_at":"2026-04-19T23:01:52.403Z","repository":{"id":37270230,"uuid":"73184139","full_name":"fkhadra/react-toastify","owner":"fkhadra","description":"React notification made easy 🚀 !","archived":false,"fork":false,"pushed_at":"2026-04-19T15:41:25.000Z","size":16648,"stargazers_count":13432,"open_issues_count":103,"forks_count":741,"subscribers_count":45,"default_branch":"main","last_synced_at":"2026-04-19T17:35:12.351Z","etag":null,"topics":["javascript","notification","react","react-component","reactjs","snackbar","toast"],"latest_commit_sha":null,"homepage":"https://fkhadra.github.io/react-toastify/introduction","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/fkhadra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"fkhadra"}},"created_at":"2016-11-08T12:32:52.000Z","updated_at":"2026-04-19T15:28:11.000Z","dependencies_parsed_at":"2023-02-10T14:30:26.239Z","dependency_job_id":"9a70331a-2775-4cdb-8842-5d42c0b91feb","html_url":"https://github.com/fkhadra/react-toastify","commit_stats":{"total_commits":1186,"total_committers":93,"mean_commits":12.75268817204301,"dds":0.1416526138279932,"last_synced_commit":"801a3ea6d19402a86c3fc6be4fc832e1cfad2d62"},"previous_names":["sniphpet/react-toastify"],"tags_count":159,"template":false,"template_full_name":null,"purl":"pkg:github/fkhadra/react-toastify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkhadra%2Freact-toastify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkhadra%2Freact-toastify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkhadra%2Freact-toastify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkhadra%2Freact-toastify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fkhadra","download_url":"https://codeload.github.com/fkhadra/react-toastify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkhadra%2Freact-toastify/sbom","scorecard":{"id":402215,"data":{"date":"2025-08-11","repo":{"name":"github.com/fkhadra/react-toastify","commit":"e1fa4760cea8adf28d5cf93cd14067a852b1f5c8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 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":"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":"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":1,"reason":"0 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yaml:1","Info: no jobLevel write permissions found"],"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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/fkhadra/react-toastify/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/fkhadra/react-toastify/build.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/fkhadra/react-toastify/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/fkhadra/react-toastify/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/fkhadra/react-toastify/build.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yaml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/fkhadra/react-toastify/build.yaml/main?enable=pin","Info:   0 out of   4 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":"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: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 '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 19 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":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"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-18T20:20:12.296Z","repository_id":37270230,"created_at":"2025-08-18T20:20:12.296Z","updated_at":"2025-08-18T20:20:12.296Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32025784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["javascript","notification","react","react-component","reactjs","snackbar","toast"],"created_at":"2024-07-30T19:02:40.784Z","updated_at":"2026-04-19T23:01:52.330Z","avatar_url":"https://github.com/fkhadra.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fkhadra","https://opencollective.com/react-toastify","https://opencollective.com/react-toastify/contribute","https://opencollective.com/react-toastify/organization/0/website","https://opencollective.com/react-toastify/organization/1/website","https://opencollective.com/react-toastify/organization/2/website","https://opencollective.com/react-toastify/organization/3/website","https://opencollective.com/react-toastify/organization/4/website","https://opencollective.com/react-toastify/organization/5/website","https://opencollective.com/react-toastify/organization/6/website","https://opencollective.com/react-toastify/organization/7/website","https://opencollective.com/react-toastify/organization/8/website","https://opencollective.com/react-toastify/organization/9/website"],"categories":["Notifications","UI Components","TypeScript","Uncategorized","前端开发框架及项目","\u003csummary\u003eUI Components\u003c/summary\u003e","React","UI"],"sub_categories":["Notification","Uncategorized","其他_文本生成、文本对话","Notification, Snackbar and Toast","React Components"],"readme":"# React-Toastify\n\n[![Financial Contributors on Open Collective](https://opencollective.com/react-toastify/all/badge.svg?label=financial+contributors)](https://opencollective.com/react-toastify) ![React-toastify CI](https://github.com/fkhadra/react-toastify/workflows/React-toastify%20CI/badge.svg)\n![npm](https://img.shields.io/npm/dm/react-toastify.svg?label=%E2%8F%ACdownloads\u0026style=for-the-badge)\n![npm](https://img.shields.io/npm/v/react-toastify.svg?style=for-the-badge)\n![NPM](https://img.shields.io/npm/l/react-toastify.svg?label=%F0%9F%93%9Clicense\u0026style=for-the-badge)\n![Coveralls github](https://img.shields.io/coveralls/github/fkhadra/react-toastify.svg?label=%E2%9B%B1coverage\u0026style=for-the-badge)\n\n\n![React toastify](https://user-images.githubusercontent.com/5574267/130804494-a9d2d69c-f170-4576-b2e1-0bb7f13dd92d.gif \"React toastify\")\n\n![stacked](https://github.com/fkhadra/react-toastify/assets/5574267/975c7c01-b95e-43cf-9100-256fa8ef2760)\n\n![custom-style](https://github.com/user-attachments/assets/311672f7-f98a-46f3-a2ab-a9d1a05186a7)\n\n🎉 React-Toastify allows you to add notifications to your app with ease.\n\n## Installation\n\n```\n$ npm install --save react-toastify\n$ yarn add react-toastify\n```\n\n```jsx\n  import React from 'react';\n\n  import { ToastContainer, toast } from 'react-toastify';\n  \n  function App(){\n    const notify = () =\u003e toast(\"Wow so easy!\");\n\n    return (\n      \u003cdiv\u003e\n        \u003cbutton onClick={notify}\u003eNotify!\u003c/button\u003e\n        \u003cToastContainer /\u003e\n      \u003c/div\u003e\n    );\n  }\n```\n\n## Documentation\n\nCheck the [documentation](https://fkhadra.github.io/react-toastify/introduction) to get you started!\n\n## Features\n\n- Easy to set up for real, you can make it work in less than 10sec!\n- Super easy to customize\n- RTL support\n- Swipe to close 👌\n- Can choose swipe direction\n- Super easy to use an animation of your choice. Works well with animate.css for example\n- Can display a react component inside the toast!\n- Has ```onOpen``` and ```onClose``` hooks. Both can access the props passed to the react component rendered inside the toast\n- Can remove a toast programmatically\n- Define behavior per toast\n- Pause toast when the window loses focus 👁\n- Fancy progress bar to display the remaining time\n- Possibility to update a toast\n- You can control the progress bar a la `nprogress` 😲\n- You can limit the number of toast displayed at the same time\n- Dark mode 🌒\n- Pause timer programmaticaly \n- Stacked notifications!\n- And much more !\n\n## Demo\n\n[A demo is worth a thousand words](https://fkhadra.github.io/react-toastify/introduction)\n\n\n## Contribute\n\nShow your ❤️ and support by giving a ⭐. Any suggestions are welcome! Take a look at the contributing guide.\n\nYou can also find me on [reactiflux](https://www.reactiflux.com/). My pseudo is Fadi.\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\u003ca href=\"https://github.com/fkhadra/react-toastify/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/react-toastify/contribute)]\n\n#### Individuals\n\n\u003ca href=\"https://opencollective.com/react-toastify\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/individuals.svg?width=890\"\u003e\u003c/a\u003e\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/react-toastify/contribute)]\n\n\u003ca href=\"https://opencollective.com/react-toastify/organization/0/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/1/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/2/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/3/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/4/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/5/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/6/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/7/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/8/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/react-toastify/organization/9/website\"\u003e\u003cimg src=\"https://opencollective.com/react-toastify/organization/9/avatar.svg\"\u003e\u003c/a\u003e\n\n## Release Notes\n\nYou can find the release note for the latest release [here](https://github.com/fkhadra/react-toastify/releases/latest)\n\nYou can browse them all [here](https://github.com/fkhadra/react-toastify/releases)\n\n## License\n\nLicensed under MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkhadra%2Freact-toastify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffkhadra%2Freact-toastify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkhadra%2Freact-toastify/lists"}