{"id":18810124,"url":"https://github.com/agneym/ir-toast","last_synced_at":"2026-04-02T03:00:14.818Z","repository":{"id":42853454,"uuid":"250589260","full_name":"agneym/ir-toast","owner":"agneym","description":"Imperative Toast Component for Ionic React","archived":false,"fork":false,"pushed_at":"2026-03-06T11:24:56.000Z","size":2003,"stargazers_count":15,"open_issues_count":8,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-06T15:40:01.350Z","etag":null,"topics":["ionic","ionic-react","notification","react","toast"],"latest_commit_sha":null,"homepage":"","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/agneym.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,"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":"2020-03-27T16:45:00.000Z","updated_at":"2026-03-06T11:24:53.000Z","dependencies_parsed_at":"2023-02-18T19:45:29.254Z","dependency_job_id":"98ad03ad-7f13-4d16-80fc-5583ba290f05","html_url":"https://github.com/agneym/ir-toast","commit_stats":{"total_commits":45,"total_committers":5,"mean_commits":9.0,"dds":0.4444444444444444,"last_synced_commit":"28577c6f86c34903f304f1f9896fd005b87188c4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/agneym/ir-toast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agneym%2Fir-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agneym%2Fir-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agneym%2Fir-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agneym%2Fir-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agneym","download_url":"https://codeload.github.com/agneym/ir-toast/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agneym%2Fir-toast/sbom","scorecard":{"id":170806,"data":{"date":"2025-08-11","repo":{"name":"github.com/agneym/ir-toast","commit":"9f7f6824a9d7e6ad63b55d39146f17dccc172a2b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":2,"reason":"Found 1/4 approved changesets -- score normalized to 2","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml: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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/agneym/ir-toast/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/agneym/ir-toast/main.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand 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 '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 27 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":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-16T16:24:06.036Z","repository_id":42853454,"created_at":"2025-08-16T16:24:06.036Z","updated_at":"2025-08-16T16:24:06.036Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["ionic","ionic-react","notification","react","toast"],"created_at":"2024-11-07T23:18:59.957Z","updated_at":"2026-04-02T03:00:14.764Z","avatar_url":"https://github.com/agneym.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=left\u003eIonic React Imperative Toast 🥂\u003c/h1\u003e\n\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@agney/ir-toast\" target=\"_blank\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/@agney/ir-toast\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/agneym/ir-toast/actions\"\u003e\n    \u003cimg src=\"https://github.com/agneym/ir-toast/workflows/Node%20CI/badge.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/agneym/ir-toast/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/agneym/ir-toast\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@agney/ir-toast\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/npm/types/scrub-js.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://prettier.io\"\u003e\n    \u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://makeapullrequest.com\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nThis packages enables the use of imperative Toasts as in Angular.\n\n## Usage\n\n```typescript\nimport { ToastProvider, useToast } from \"@agney/ir-toast\";\n\n// Wrap you App.tsx with ToastProvider\nconst App: FC = () =\u003e {\n  \u003cIonApp\u003e\n    \u003cToastProvider\u003e\n      // ...rest of your application\n    \u003c/ToastProvider\u003e\n  \u003c/IonApp\u003e\n}\n\n// In your component\nconst RegisterForm: FC () =\u003e {\n  const Toast = useToast();\n  // ...\n\n  function validate() {\n    const toast = Toast.warning('Passwords don\\'t match');\n  }\n\n  function submit(data) {\n    try {\n      const response = await api.register(data);\n      Toast.success('Registration Successful');\n    } catch() {\n      Toast.error('Request failed');\n    }\n  }\n}\n```\n\n## Installation\n\n```bash\nnpm i @agney/ir-toast\n```\n\nRequires react 16.8 or higher and @ionic/react 5 or higher.\n\n## Properties\n\n### `ToastProvider`\n\nThe `useToast` requires the app to be wrapped with a `ToastProvider`. The Provider can also take a `value` as prop which serves as defaults for all toasts created under it.\n\n```typescript\nconst App: FC = () =\u003e {\n  \u003cIonApp\u003e\n    \u003cToastProvider value={{ color: 'primary', duration: 2000 }}\u003e\n      // ...rest of your application\n    \u003cToastProvider\u003e\n  \u003c/IonApp\u003e\n}\n```\n\nSupports all properties in [docs](https://ionicframework.com/docs/api/toast#properties).\n\n### `useToast`\n\nHook to be used in functional components.\n\n```typescript\nfunction Component: FC = () =\u003e {\n  const Toast = useToast();\n\n  const handleClick = () =\u003e {\n    const toast = Toast.create({ message: 'thing' });\n    toast.present();\n    // When you want to.\n    toast.dismiss();\n    ...\n  }\n\n  // ...\n}\n```\n\n`Toast` returned from `useToast` supports:\n\n1. `create`\n\nA toast instance is created, takes all the props in [docs](https://ionicframework.com/docs/api/toast#properties) as argument. Returns a toast instance that can be presented by calling `present` and dismissed calling `dismiss` on it.\n\n2. Utility functions: `success`, `warning`, `error`\n\nTakes one argument: message as string. Does not require `present` to be called, directly shows the toast.\n\n```typescript\nconst toast = toast.success('Success message');\n```\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/agneym/ir-toast/issues).\n\n### Development\n\nWe use [`yarn` v1](https://classic.yarnpkg.com/) for development.\n\n```sh\nyarn\nyarn start\n```\n\n### Run tests\n\n```sh\nyarn test\n```\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n\u003ca href=\"https://twitter.com/agneymenon\" target=\"_blank\"\u003e\n  \u003cimg alt=\"Twitter: agneymenon\" src=\"https://img.shields.io/twitter/follow/agneymenon.svg?style=social\" /\u003e\n\u003c/a\u003e\n\n## 📝 License\n\nCopyright © 2020 [Agney Menon \u003cagney@outlook.in\u003e](https://github.com/agneym).\u003cbr /\u003e\nThis project is [MIT](https://github.com/agneym/ir-toast/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagneym%2Fir-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagneym%2Fir-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagneym%2Fir-toast/lists"}