{"id":16853263,"url":"https://github.com/chmln/note.js","last_synced_at":"2025-07-11T05:34:35.041Z","repository":{"id":57171405,"uuid":"73016809","full_name":"chmln/Note.js","owner":"chmln","description":"Elegant, lightweight notification library","archived":false,"fork":false,"pushed_at":"2017-12-23T17:57:55.000Z","size":138,"stargazers_count":25,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T08:53:26.877Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chmln.github.io/Note.js","language":"JavaScript","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/chmln.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":"2016-11-06T20:27:09.000Z","updated_at":"2024-10-05T21:55:20.000Z","dependencies_parsed_at":"2022-08-27T12:02:21.145Z","dependency_job_id":null,"html_url":"https://github.com/chmln/Note.js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmln%2FNote.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmln%2FNote.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmln%2FNote.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmln%2FNote.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmln","download_url":"https://codeload.github.com/chmln/Note.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918500,"owners_count":20531682,"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":[],"created_at":"2024-10-13T13:50:50.033Z","updated_at":"2025-03-22T06:30:55.670Z","avatar_url":"https://github.com/chmln.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Note.js\nElegant, lightweight \u0026 simple notification library.\n\n![Note.js - lightweight javascript notifications](https://cloud.githubusercontent.com/assets/11352152/20041472/8e647b32-a437-11e6-9dfe-05f1c3b60b7f.png)\n![Note.js - vanilla js notification library](https://cloud.githubusercontent.com/assets/11352152/20041473/8e6ef3be-a437-11e6-9e6b-c64d6564f205.png)\n\n\n**Why another notification library?**\n\nExisting js notification libraries are either:\n* Forcing you to load jQuery, Bootstrap, or something else totally unnecessary\n* ~~Ugly~~\n* Specific to a certain framework\n* Painful to use with bundlers, such as Webpack\n\nNote.js is:\n* **Lightweight** - `\u003c 2kb` js+css\n* **Framework-agnostic** (use it in React, Angular, Vue, or in plain HTML/JS environment)\n* Compatible with **IE10+** and all major browsers\n\n### Getting Started\n\n`npm install Note.js --save` or [download](https://github.com/chmln/Note.js/releases) a release\n\n```js\n// Start by creating an instance. Overriding default config is optional\nconst note = new Note({}); // Note\n```\n\nThen,\n```js\nnote.success(title, text, config);\nnote.info(title, text, config);\nnote.error(title, text, config);\nnote.warn(title, text, config);\nnote.notify(title, text, config); // colorless\n```\n\nYou can customize the duration, and make the notification sticky.\n```js\nnote.success(\"Success!\", \"But I'm not going anywhere..yet\", { sticky: true });\nnote.info(\"Hey!\", \"I'm leaving in 5 seconds\", { duration: 5 });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmln%2Fnote.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmln%2Fnote.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmln%2Fnote.js/lists"}