{"id":42531073,"url":"https://github.com/juninmd/shazam-middleware","last_synced_at":"2026-01-28T16:16:07.458Z","repository":{"id":57358174,"uuid":"96936970","full_name":"juninmd/shazam-middleware","owner":"juninmd","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-24T10:38:49.000Z","size":102,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-24T11:07:39.450Z","etag":null,"topics":[],"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/juninmd.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":"2017-07-11T21:02:50.000Z","updated_at":"2026-01-23T22:20:13.000Z","dependencies_parsed_at":"2022-09-06T21:41:15.787Z","dependency_job_id":null,"html_url":"https://github.com/juninmd/shazam-middleware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juninmd/shazam-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fshazam-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fshazam-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fshazam-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fshazam-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juninmd","download_url":"https://codeload.github.com/juninmd/shazam-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fshazam-middleware/sbom","scorecard":{"id":542772,"data":{"date":"2025-08-11","repo":{"name":"github.com/juninmd/shazam-middleware","commit":"3ac0069dd4735dd299c6d117fa85c27e7bf2557e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"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":"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":"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":"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":"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 2 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":"28 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-h452-7996-h45h","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-8225-6cvr-8pqp","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","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-20T08:39:12.119Z","repository_id":57358174,"created_at":"2025-08-20T08:39:12.119Z","updated_at":"2025-08-20T08:39:12.119Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: 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":[],"created_at":"2026-01-28T16:16:06.628Z","updated_at":"2026-01-28T16:16:07.447Z","avatar_url":"https://github.com/juninmd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shazam-middleware\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b0b7ea850b264e3cbd8c9e1b10e565c6)](https://www.codacy.com/app/jr_acn/shazam-middleware?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=juninmd/shazam-middleware\u0026amp;utm_campaign=Badge_Grade)\n[![NPM Version](https://img.shields.io/npm/v/shazam-middleware.svg)](https://npmjs.org/package/shazam-middleware)\n[![NPM Downloads](https://img.shields.io/npm/dm/shazam-middleware.svg)](https://npmjs.org/package/shazam-middleware)\n[![GitHub issues](https://img.shields.io/github/issues/juninmd/shazam-middleware.svg)](https://github.com/juninmd/shazam-middleware/issues)\n[![GitHub forks](https://img.shields.io/github/forks/juninmd/shazam-middleware.svg)](https://github.com/juninmd/shazam-middleware/network)\n[![Twitter](https://img.shields.io/twitter/url/https/github.com/juninmd/shazam-middleware.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:\u0026url=%5Bobject%20Object%5D)\n\n## What is shazam?\n* Shazam it's a `express` middleware.\n\n## What he does?\n* HTTP request logger like `morgan` (Method, Status Code, Browser, IP)\n* Notify on slack channel when errors occurs.\n\n## Requirements\n* [Node](https://nodejs.org/en/)\n* [Express](https://www.npmjs.com/package/express)\n\n## Installation\n```bash\nnpm install --save shazam-middleware\n```\nor\n```bash\nyarn add shazam-middleware\n```\n\n## Slack\n* Activate webhook on slack, to get your UrlHook :D\n* https://{yourslackname}.slack.com/apps/A0F7XDUAZ-incoming-webhooks\n* Doc:  https://api.slack.com/incoming-webhooks\n\n## Paramters Configuration\n```js\n slack: {\n        urlHook: '' // Url Hook of your slack,\n        channel: '' // Name of your channel (Without '#'),\n        iconUrl: '' // Customize the icon of bot (default: \"http://dclegends.wiki/images/d/d9/Shazam_Billy_Batson_Portrait.png\"),\n        botusername: '' // Customize the name of bot (default: Shazam)\n    },\n    api: {\n        name: '' // Name of your api,\n        version: '' // Version of your api\n    }\n```\n\n## Code example to do the Magic! (Automatic)\n```js\nconst app = require('express')();\n\n// Don't forget to configure the paramters\nconst shazam = require('shazam-middleware')({\n    slack: {\n        urlHook: process.env.urlHook,\n        channel: process.env.channel,\n        iconUrl: process.env.iconUrl,\n        botusername: process.env.botusername\n    },\n    api: {\n        name: 'My App',\n        version: 1\n    }\n});\n\n// Activate validation on process `uncaughtException` and `unhandledRejection`\nshazam.handler;\n\n// Now, we wanna log all requests\napp.use(shazam.log);\n\n// Look Here, one route with error\napp.get(\"/error\", (req, res, next) =\u003e {\n    batata\n    res.status(200).send({ retorno: 'ok' })\n})\n\n// Now, we will look for all exceptions from ours routes\napp.use(shazam.exception);\n\n// Start the Server\napp.listen(4600, () =\u003e {\n    console.log('APP WORKS http://localhost:4600')\n})\n\n// Fine! It`s All!\n```\n\n## If you return a object like this patern, and use next(), you can trigger the message on Slack Channel.\n```js\n  app.get(\"/error/next\", (req, res, next) =\u003e {\n        next({\n            message: {\n                userMessage: 'Hey, user! Don´t Worry',\n                developerMessage: 'Hey Man! This is bad'\n            },\n            statusCode: 500\n        });\n    })\n```\n## Example of error log\n![alt text](https://image.prntscr.com/image/uB86RZutR9O0fzM34J96HA.png \"Log Exemple\")\n\n## Example of log\n![alt text](https://image.prntscr.com/image/O9pnCJetQJ6Tkob4H31mMQ.png \"Log Exemple\")\n\n## Example of response\n![alt text](https://image.prntscr.com/image/ECigRxeeTGC5g3V_MTfX6g.png \"Log Exemple\")\n\n## Examples on Slack\n![alt text](https://image.prntscr.com/image/fAmdzOYAQ1K1_93pmMnmKw.png \"Log Exemple\")\n![alt text](https://image.prntscr.com/image/wVrD6_aNRMSN79cefs9B1Q.png \"Log Exemple\")\n\n## TODO\n* Check Lazy Requests\n* Save requests on database (mongo?)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuninmd%2Fshazam-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuninmd%2Fshazam-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuninmd%2Fshazam-middleware/lists"}