{"id":17171990,"url":"https://github.com/joaomilho/mappersmith-aws","last_synced_at":"2026-04-20T09:02:27.376Z","repository":{"id":137472056,"uuid":"303006162","full_name":"joaomilho/mappersmith-aws","owner":"joaomilho","description":"Mappersmith middleware for AWS Signature Version 4","archived":false,"fork":false,"pushed_at":"2020-10-13T07:46:03.000Z","size":85,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T19:49:17.241Z","etag":null,"topics":["aws","javascript","mappersmith","node","sigv4","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/joaomilho.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":"2020-10-10T23:17:58.000Z","updated_at":"2021-01-19T20:06:49.000Z","dependencies_parsed_at":"2023-07-18T22:30:59.866Z","dependency_job_id":null,"html_url":"https://github.com/joaomilho/mappersmith-aws","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joaomilho/mappersmith-aws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomilho%2Fmappersmith-aws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomilho%2Fmappersmith-aws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomilho%2Fmappersmith-aws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomilho%2Fmappersmith-aws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaomilho","download_url":"https://codeload.github.com/joaomilho/mappersmith-aws/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomilho%2Fmappersmith-aws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32040353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["aws","javascript","mappersmith","node","sigv4","typescript"],"created_at":"2024-10-14T23:35:51.763Z","updated_at":"2026-04-20T09:02:27.359Z","avatar_url":"https://github.com/joaomilho.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mappersmith-aws\n\nMappersmith middeware for AWS Signature Version 4 signing process.\n\n## Usage\n\n```js\nimport forge from \"mappersmith\"\nimport { configAWSMiddleware } from \"mappersmith-aws\"\n\nconst AWSMiddleware = configAWSMiddleware({ \n  region: \"us-east-1\",\n  service: \"execute-api\"\n})\n\nconst api = forge({\n  middleware: [\n      ...,\n      AWSMiddleware\n  ]\n  ...\n})\n```\n\n\u003e Important: the middleware should always be the last one in your API definitions since it needs to be aware of all headers.\n\n### Params:\n\n\u003ctable width=\"100%\" style=\"width: 100%\"\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003e\n      region\n    \u003c/th\u003e\n    \u003ctd\u003e\n      mandatory\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003estring\u003c/code\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      --\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd colspan=\"4\"\u003e\n      AWS region.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003e\n      service\n    \u003c/th\u003e\n    \u003ctd\u003e\n      mandatory\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003estring\u003c/code\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      --\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003ctd colspan=\"4\"\u003e\n      Name of the AWS service (s3, execute-api, etc...).\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003e\n      systemClockOffset\n    \u003c/th\u003e\n    \u003ctd\u003e\n      optional\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003enumber\u003c/code\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003e0\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd colspan=\"4\"\u003e\n      Compensate for clock skew when your system may be out of sync with the AWS service time.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003e\n      logger\n    \u003c/th\u003e\n    \u003ctd\u003e\n      optional\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003eConsole\u003c/code\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003econsole\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd colspan=\"4\"\u003e\n      A logger to write debug details.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003e\n      credentialsProvider\n    \u003c/th\u003e\n    \u003ctd\u003e\n      optional\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003e(): Promise\u0026ltAWS.Credentials\u0026gt\u003c/code\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003e() =\u003e AWS.config.credentialProvider.resolvePromise()\u003ccode\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd colspan=\"4\"\u003e\n      An async function returning AWS credentials.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaomilho%2Fmappersmith-aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaomilho%2Fmappersmith-aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaomilho%2Fmappersmith-aws/lists"}