{"id":13426605,"url":"https://github.com/luisvinicius167/notti","last_synced_at":"2025-10-06T01:14:58.274Z","repository":{"id":109991670,"uuid":"81002527","full_name":"luisvinicius167/notti","owner":"luisvinicius167","description":"Dead simple user notification.","archived":false,"fork":false,"pushed_at":"2017-02-06T19:18:46.000Z","size":40,"stargazers_count":70,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-19T18:16:41.672Z","etag":null,"topics":["javascript","library","notifications"],"latest_commit_sha":null,"homepage":"https://notti.surge.sh","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/luisvinicius167.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-02-05T15:43:14.000Z","updated_at":"2023-03-07T20:45:42.000Z","dependencies_parsed_at":"2023-03-13T13:59:26.195Z","dependency_job_id":null,"html_url":"https://github.com/luisvinicius167/notti","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luisvinicius167/notti","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvinicius167%2Fnotti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvinicius167%2Fnotti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvinicius167%2Fnotti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvinicius167%2Fnotti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luisvinicius167","download_url":"https://codeload.github.com/luisvinicius167/notti/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisvinicius167%2Fnotti/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278545046,"owners_count":26004382,"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-10-05T02:00:06.059Z","response_time":54,"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","library","notifications"],"created_at":"2024-07-31T00:01:38.943Z","updated_at":"2025-10-06T01:14:58.241Z","avatar_url":"https://github.com/luisvinicius167.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# notti\n\n[![npm package](https://img.shields.io/badge/npm-v0.0.5-lightgray.svg)](https://www.npmjs.com/package/notti)\n\n\u003e Don't make me think - Dead simple user notification.\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cdn.rawgit.com/luisvinicius167/notti/master/img/notti.gif\" width=\"400\"/\u003e\n\u003c/p\u003e\n\n[notti Website ➞](https://notti.surge.sh/)\n\n## Why should you use notti?\n * Tiny size: 2.2kb\n * No external CSS dependency\n * No jQuery dependency\n * Fully customizable\n\n#### Install\n\nNpm: `npm install notti` \u003c/br\u003e\nCDN: `https://unpkg.com/notti@0.0.5`\n\n\n#### The Gist:\n\n```javascript\nimport { notti } from 'notti';\n\nnotti('Hello User!');\n\nnotti({\n  // HTML Element\n  message: '\u003cstrong\u003eHello!\u003c/stong\u003e User',\n  isHTML: true,\n  style : {\n    backgroundColor: '#333',\n    color:'#fff',\n    bottom: '10px',\n    right: '10px'\n  },\n  onHide: () =\u003e {\n    console.log('Awesome notti.js!')\n  }\n});\n```\n\n### API\n\n```javascript\n/**\n * @name notti\n * type Function\n * @description Show an notification\n * @param {String || Object } The message or customizable Object\n */\n\n notti('Hi Folks!');\n \n // or\n const customizable = {\n   message: 'Hi folks',\n   style: {\n     backgroundColor: '#333',\n     color: '#fff',\n     top: '10px',\n     right: '10px',\n   }\n }\n\n notti(customizable);\n```\n\n\nCustomizable params\n\n```javascript\n/**\n  * @param {String} message The notification message\n  * @param {Object} style Customizable style\n  * @param {Boolean} autoHide Auto hide the notification box\n  * @param {Boolean} hideOnClick Hide the notification when clicked\n  * @param {Boolean} isHTML If the message string contains HTML Element\n  * @param {Integer} delay The notification hide delay time\n  * @param {Function} onHide The Function that will be called when the notification disappear\n  **/\n\n  const config = {\n    // required\n    message: 'Hi Folks' || '\u003cp\u003eHi \u003cspan class=\"username\"\u003eFolks\u003c/span\u003e\u003c/p\u003e',\n    // just true if your message contains HTML Element\n    isHTML: false, //default\n    //optional\n    style:  {}, //default\n    //optional\n    autoHide:  true, //default\n    //optional\n    hideOnClick: true, //default\n    //optional\n    delay:  2000, //default\n    //optional\n    onHide: ()=\u003e{console.log('Awesome notti.js')}\n  }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisvinicius167%2Fnotti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisvinicius167%2Fnotti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisvinicius167%2Fnotti/lists"}