{"id":25741453,"url":"https://github.com/rbrahul/honey-toast","last_synced_at":"2025-05-08T23:20:28.409Z","repository":{"id":277909568,"uuid":"915592686","full_name":"rbrahul/honey-toast","owner":"rbrahul","description":"A framework agnostic simple yet powerful Toast Alert or Notification Library","archived":false,"fork":false,"pushed_at":"2025-02-23T16:29:53.000Z","size":4593,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-02T03:41:22.089Z","etag":null,"topics":["alert","alert-dialog","dialog","frontend","javascript","toast","typescript","ui","ui-component","ui-library","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://rbrahul.github.io/honey-toast/","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/rbrahul.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}},"created_at":"2025-01-12T09:25:54.000Z","updated_at":"2025-02-23T16:29:56.000Z","dependencies_parsed_at":"2025-02-16T23:27:27.764Z","dependency_job_id":"d395cd71-5d90-45fd-af59-c9ab9d511c58","html_url":"https://github.com/rbrahul/honey-toast","commit_stats":null,"previous_names":["rbrahul/honey-toast"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbrahul%2Fhoney-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbrahul%2Fhoney-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbrahul%2Fhoney-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbrahul%2Fhoney-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbrahul","download_url":"https://codeload.github.com/rbrahul/honey-toast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253161280,"owners_count":21863714,"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","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":["alert","alert-dialog","dialog","frontend","javascript","toast","typescript","ui","ui-component","ui-library","vanilla-javascript"],"created_at":"2025-02-26T09:33:49.593Z","updated_at":"2025-05-08T23:20:28.387Z","avatar_url":"https://github.com/rbrahul.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Honey-Toast\nA framework agnostic simple yet powerful Toast Alert or Notification library that offers tons of customization, designs and animations.\n\n## Demo and Playground:\n[View Demos and Play](https://rbrahul.github.io/honey-toast) with different animations and designs. You can just copy the generated code and start using in your project.\n\n## Documentation\nComplete list of APIs only available in the [Documentation.](https://rbrahul.github.io/honey-toast-doc).\n\n![Honey Toast](https://raw.githubusercontent.com/rbrahul/honey-toast/master/screenshot.gif \"Honey Toast - Notification UI Library\")\n\n## Main Features:\n\n- Easier installation and integrations\n- Use with any Javascript framework as it has zero dependencies.\n- Huge collections of beautiful designs and categories\n- Lot of built in animations to create interactive toast alert\n- Control over the states of notifications\n- Light, Dark and Sytem Default themes are supported\n- Creating custom designs is way easier\n- Playground to create Notifications and copy the generated code.\n\n## Installation:\n\n**Install via `npm`:**\n```sh\nnpm i honey-toast --save\n```\n\n**Install via `yarn`:**\n```sh\nyarn add honey-toast\n```\n\n**Install via `pnpm`:**\n```sh\npnpm add honey-toast\n```\n\n**Install via CDN**\n```html\n\u003clink href=\"https://cdn.jsdelivr.net/npm/honey-toast@latest/dist/style.css\" rel=\"stylesheet\" /\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/honey-toast@latest/dist/toast.umd.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    toast.notify(\"Hi There!\")\n\u003c/script\u003e\n```\n\n### Usage Example:\nCreate notification with default configurations.\n\n```js\nimport toast from 'honey-toast';\nimport 'honey-toast/dist/style.css';\n\ntoast.notify(\"Hi There!\")\n```\n\n**Create different type of notifications using simpler api:**\n\n```js\ntoast.success(\"Your information have been udpated!\")\ntoast.info(\"Email has been delivered!\")\ntoast.warn(\"Stock is limited\")\ntoast.error(\"Ooops, something went wrong\")\n```\n\n**Create more advanced toast notification with tons of options.**\nPlease have a look into our the [API Documentation](https://rbrahul.github.io/honey-toast-doc/api-references.html) to find the complete list of options.\n\n```js\nconst notification = toast.notify(\n  {\n    title: \"Hi, there!\",\n    message: \"Thank you for subscribing our service.\",\n    buttons: [\n      {\n        iconUrl: \"YOUR_ICON_DIR/close.svg\",\n        label: \"Cancel\",\n        classes: [],\n        onClick: () =\u003e {\n          console.log(\"Canceling...\");\n        },\n      },\n      {\n        iconUrl: \"YOUR_ICON_DIR/tick.svg\",\n        classes: [],\n        label: \"Confirm\",\n        onClick: () =\u003e {\n          console.log(\"Confirming...\");\n        },\n      },\n    ],\n  },\n  {\n    duration: 3000,\n    position: \"top-right\",\n    type: \"success\",\n    animation: \"slide\",\n    hasProgressBar: false,\n    offset: { x: 30, y: 30 },\n    classNames: [],\n  }\n);\n\n```\n\n**Closing notifications:**\n\n```js\nconst notification = toast.notify(\"Hi There!\");\n// close once you need\nnotification.close();\n\n// to close all notifications:\nnotification.closeAll();\n```\n\n\n**Updating existing notification in different circumstances:**\n\n```js\nconst notification = toast.notify(\"Your requst is being processed\", {hasProgressBar: true});\n// once you need to update the status\nnotification.update(\"Request has been processed\", {type: \"success\"})\n\n// you may want to show error message if request was not handled correctly\nnotification.update(\"Ooops! Something went wrong\", {type: \"error\"});\n```\n\n## Change Log:\n* V1.0.0: Initial version released on 16-02-2025\n* V1.0.2: Released on 17-02-2025\n    - Fixed `CSS.px` firefox browser support issue\n\n## Contributors:\n[Rahul Baruri](https://github.com/rbrahul)\n\n## License\nDistributed under the [MIT License](https://github.com/rbrahul/honey-toast/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbrahul%2Fhoney-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbrahul%2Fhoney-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbrahul%2Fhoney-toast/lists"}