{"id":16993668,"url":"https://github.com/kayoshi-dev/usetoast","last_synced_at":"2026-04-11T19:04:34.531Z","repository":{"id":37077515,"uuid":"491896381","full_name":"Kayoshi-dev/useToast","owner":"Kayoshi-dev","description":"A little vanilla Javascript hook to display Notification. This is an experimental project to learn NPM, Vite as a bundler and TS.","archived":false,"fork":false,"pushed_at":"2022-06-17T19:18:28.000Z","size":201,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T02:57:38.717Z","etag":null,"topics":["toast"],"latest_commit_sha":null,"homepage":"","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/Kayoshi-dev.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}},"created_at":"2022-05-13T12:52:02.000Z","updated_at":"2022-06-21T07:06:11.000Z","dependencies_parsed_at":"2022-06-24T18:19:07.860Z","dependency_job_id":null,"html_url":"https://github.com/Kayoshi-dev/useToast","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Kayoshi-dev/useToast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2FuseToast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2FuseToast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2FuseToast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2FuseToast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kayoshi-dev","download_url":"https://codeload.github.com/Kayoshi-dev/useToast/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2FuseToast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272438856,"owners_count":24935271,"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-08-28T02:00:10.768Z","response_time":74,"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":["toast"],"created_at":"2024-10-14T03:43:42.694Z","updated_at":"2025-12-30T21:35:51.586Z","avatar_url":"https://github.com/Kayoshi-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003e\n  UseToast\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e Under heavy development!\u003c/p\u003e\n\n---\n\n## How to install\n\n    npm i @kayoshi-dev/usetoast\n\n## Documentation\n\nThe useToast library allow you to display toast messages easily.\n\nTo get started, you need to import the useToast function from the library.\n\n    import { useToast } from '@kayoshi-dev/usetoast';\n\nThen you need to use the useToast function to access the createToast function, and you can extract that function like that :\n\n    const { createToast } = useToast();\n\nThis function allow you to create a toast message, it takes a message, a type, an icon and a duration as parameters.\n\n    createToast('Hello world', 'success', '\u003ci class=\"bi bi-alarm\"\u003e\u003c/i\u003e', 5000);\n\nFor the moment, the type parameter can be one of the following :\n\n- success\n- info\n- error\n\nYou can give any icon you want to the createToast function.\n\n## Use with SSR\n\nIf you want to use the useToast library in an SSR environment, you might need to dynamically import the library :\n\n    const useToast = (await import('@kayoshi-dev/usetoast')).default\n\n## Contributing\n\nIf you're interested in contributing to the project, feel free to submit a pull request explaining what you're adding to the code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayoshi-dev%2Fusetoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayoshi-dev%2Fusetoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayoshi-dev%2Fusetoast/lists"}