{"id":26791978,"url":"https://github.com/dealloc/snacker","last_synced_at":"2026-04-17T12:32:47.404Z","repository":{"id":17965979,"uuid":"83096978","full_name":"dealloc/snacker","owner":"dealloc","description":"A simple snackbar implementation","archived":false,"fork":false,"pushed_at":"2023-03-05T13:23:48.000Z","size":1331,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-03T15:52:36.928Z","etag":null,"topics":["component","es6","lightweight","material","scss","small","webpack"],"latest_commit_sha":null,"homepage":null,"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/dealloc.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,"publiccode":null,"codemeta":null}},"created_at":"2017-02-25T01:25:03.000Z","updated_at":"2022-02-11T07:30:53.000Z","dependencies_parsed_at":"2025-03-29T15:19:05.673Z","dependency_job_id":"d278f6fc-d7d9-446e-aacf-b00b42108c7b","html_url":"https://github.com/dealloc/snacker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dealloc/snacker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dealloc%2Fsnacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dealloc%2Fsnacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dealloc%2Fsnacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dealloc%2Fsnacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dealloc","download_url":"https://codeload.github.com/dealloc/snacker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dealloc%2Fsnacker/sbom","scorecard":{"id":330741,"data":{"date":"2025-08-11","repo":{"name":"github.com/dealloc/snacker","commit":"967b3dc4669bcc8b995c82f799f7053d2a903714"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"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":"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 12 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":"36 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"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-18T03:32:01.654Z","repository_id":17965979,"created_at":"2025-08-18T03:32:01.654Z","updated_at":"2025-08-18T03:32:01.654Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31929655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["component","es6","lightweight","material","scss","small","webpack"],"created_at":"2025-03-29T15:19:03.388Z","updated_at":"2026-04-17T12:32:47.380Z","avatar_url":"https://github.com/dealloc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snacker\n## A simple snackbar implementation\n\n### Usage\n- Install using `npm install snacker` or `yarn add snacker`\n- Import runtime with `import Snackbar from 'snacker';`\n- Import styles with `import 'snacker/dist/snackbar.css';`\n- Create snackbar queue with `const snackbar = new Snackbar();`\n- Show a snackbar `snackbar.show('Hello world');`\n\n### API\n\n| parameter | default   | required | type    | information                                                                                                                             |\n|-----------|-----------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| type      | info      | yes      | string  | Determines the type of snackbar to be displayed (this is added as a class to the snackbar). Can be of type 'info', 'warning' or 'error' |\n| duration  | 3000      | yes      | integer | How long the snackbar is shown (in milliseconds)                                                                                        |\n| action    | undefined | no       | object  | A configuration object for adding an action to the snackbar                                                                             |\n\nThe `action` object is structured as following:\n\n| parameter | default   | required | type     | information                                                                           |\n|-----------|-----------|----------|----------|---------------------------------------------------------------------------------------|\n| text      | undefined | yes      | string   | The text to be shown on the action button in the snackbar (don't make this too long!) |\n| handler   | undefined | yes      | function | The function to be executed when the user clicks on the action button on the snackbar |\n\n### Customize\n\nInstead of requiring the prebuilt *snackbar.css* file, you can import the scss source into your stylesheet and customize the colours you want. Currently the following variables are available:\n- `snackbar-background`: The background of the snackbar (default `rgba(51, 51, 51, 0.9)`)\n- `snackbar-color`: The default text colour of the snackbar (default `#00DDFF`)\n- `snackbar-error`: The default text colour of the snackbar (default `#FF0400`)\n- `snackbar-warning`: The default text colour of the snackbar (default `#FFFB00`)\n\n```scss\n// Override the snackbar colours\n$snackbar-background: rgba(51, 51, 51, 0.9);\n$snackbar-color: #00DDFF;\n$snackbar-error: #FF0400;\n$snackbar-warning: #FFFB00;\n\n// Import the snacker stylesheet\n@import '~snacker/src/scss/snackbar';\n```\n\n### Examples\n\nShow a simple snackbar\n```js\nimport Snackbar from 'snacker';\nimport 'snacker/dist/snackbar.css';\n\nconst snackbar = new Snackbar();\n\nsnackbar.show(\"I'm an info snackbar\");\nsnackbar.show(\"I'm an error snackbar\", { type: 'error', duration: 3000 });\nsnackbar.show(\"I'm a warning snackbar\", { type: 'warning', duration: 3000 });\n```\n\nShow a snackbar with an action\n```js\nimport Snackbar from 'snacker';\nimport 'snacker/dist/snackbar.css';\n\nconst snackbar = new Snackbar();\n\nsnackbar.show('New message', {\n\ttype: 'info',\n\tduration: 3000,\n\taction: {\n\t\ttext: 'open',\n\t\thandler: () =\u003e {\n\t\t\talert('You clicked me!');\n\t\t},\n\t},\n});\n```\n\n### Roadmap\n- [ ] merge option defaults with given options to allow omitted properties to default.\n- [ ] close snackbar when action is executed.\n- [ ] more error handling","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdealloc%2Fsnacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdealloc%2Fsnacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdealloc%2Fsnacker/lists"}