{"id":18821152,"url":"https://github.com/compwright/express-sns-validator","last_synced_at":"2026-02-14T12:03:07.935Z","repository":{"id":51423247,"uuid":"108551635","full_name":"compwright/express-sns-validator","owner":"compwright","description":"ExpressJS middleware for verifying Amazon SNS notifications using sns-validator","archived":false,"fork":false,"pushed_at":"2025-02-22T16:55:07.000Z","size":600,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T22:39:00.790Z","etag":null,"topics":["expressjs-middleware"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/express-sns-validator","language":"JavaScript","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/compwright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"compwright"}},"created_at":"2017-10-27T13:46:56.000Z","updated_at":"2025-02-22T16:55:03.000Z","dependencies_parsed_at":"2024-04-06T19:31:09.820Z","dependency_job_id":"0003b6c2-a849-475c-9200-8873dc8027e3","html_url":"https://github.com/compwright/express-sns-validator","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":"0.33333333333333337","last_synced_commit":"21f9a71cfbef93303e5ea8124932b5e3c6f21df0"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fexpress-sns-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fexpress-sns-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fexpress-sns-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fexpress-sns-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compwright","download_url":"https://codeload.github.com/compwright/express-sns-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248800112,"owners_count":21163404,"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":["expressjs-middleware"],"created_at":"2024-11-08T00:34:39.975Z","updated_at":"2026-02-14T12:03:07.928Z","avatar_url":"https://github.com/compwright.png","language":"JavaScript","funding_links":["https://github.com/sponsors/compwright"],"categories":[],"sub_categories":[],"readme":"# express-sns-validator\n\n[![Build Status](https://travis-ci.org/compwright/express-sns-validator.svg?branch=master)](https://travis-ci.org/compwright/express-sns-validator)\n[![Dependency Status](https://img.shields.io/david/compwright/express-sns-validator.svg?style=flat-square)](https://david-dm.org/compwright/express-sns-validator)\n[![Download Status](https://img.shields.io/npm/dm/express-sns-validator.svg?style=flat-square)](https://www.npmjs.com/package/express-sns-validator)\n[![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor\u0026message=❤\u0026logo=GitHub\u0026link=https://github.com/sponsors/compwright)](https://github.com/sponsors/compwright)\n\nExpressJS middleware for verifying Amazon SNS notifications using [sns-validator](https://www.npmjs.com/package/sns-validator) (no dependency on the AWS SDK).\n\n## Requirements\n\n* NodeJS 10+\n* ExpressJS 4+\n* body-parser 1.4+\n\n## Installation\n\n```bash\nnpm install --save express-sns-validator\n```\n\n## Usage\n\nAdd to the route handler you will use to subscribe to Amazon SNS notifications. If the request does not validate, an HTTP 400 will be returned.\n\n\u003e Note: you need [body-parser](https://npmjs.com/package/body-parser) to parse the JSON body from SNS.\n\n```javascript\nconst express = require('express')\nconst bodyParser = require('body-parser')\nconst snsMiddleware = require('express-sns-validator')\n\nconst app = express()\n\napp.use(bodyParser.json()) // required for express-sns-validator to work properly\n\napp.post('/notifications/sns', snsMiddleware(), (req, res) =\u003e {\n  // do stuff with req.body\n});\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fexpress-sns-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwright%2Fexpress-sns-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fexpress-sns-validator/lists"}