{"id":17668732,"url":"https://github.com/lukasjhan/serverless-aws-middleware","last_synced_at":"2026-02-16T10:36:52.896Z","repository":{"id":161611042,"uuid":"627412339","full_name":"lukasjhan/serverless-aws-middleware","owner":"lukasjhan","description":"Simple serverless middleware for AWS","archived":false,"fork":false,"pushed_at":"2023-07-20T10:14:51.000Z","size":564,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T10:17:15.512Z","etag":null,"topics":["aws-lambda","lambda","middleware","serverless","serverless-framework"],"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/lukasjhan.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":"2023-04-13T12:16:56.000Z","updated_at":"2023-05-07T00:14:53.000Z","dependencies_parsed_at":"2024-10-24T02:56:53.386Z","dependency_job_id":"d70762eb-5183-4d29-9419-4c62172cc4e1","html_url":"https://github.com/lukasjhan/serverless-aws-middleware","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasjhan%2Fserverless-aws-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasjhan%2Fserverless-aws-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasjhan%2Fserverless-aws-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasjhan%2Fserverless-aws-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukasjhan","download_url":"https://codeload.github.com/lukasjhan/serverless-aws-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601483,"owners_count":20964864,"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":["aws-lambda","lambda","middleware","serverless","serverless-framework"],"created_at":"2024-10-23T23:41:58.574Z","updated_at":"2025-10-05T15:23:57.580Z","avatar_url":"https://github.com/lukasjhan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless aws middleware\n\nThis middleware provide the interface of lambda's handler to use `request =\u003e response`\nand provide some AWS features like mysql, event queue, s3, logging, etc.\n\n## Example usage\n\nA wrapping function is provided from middleware\n\n```ts\nimport {\n  AWSPluginAux,\n  LoggerPluginAux,\n  LogLevel,\n  middleware,\n  TracerPluginAux,\n} from 'serverless-simple-middleware';\n\nexport type Aux = AWSPluginAux \u0026 TracerPluginAux \u0026 LoggerPluginAux;\n\nexport const handler = middleware.build\u003cAux\u003e([\n  middleware.aws({\n    config: undefined,\n  }),\n  middleware.trace({\n    route: 'es:index/event',\n    queueName: 'event_queue',\n    system: 'AppName',\n    awsConfig: undefined,\n    region: 'ap-northeast-2',\n  }),\n  middleware.logger({\n    name: __filename,\n    level: LogLevel.Stupid,\n  }),\n]);\n```\n\n```ts\nexport const spam = handler(\n  async ({ request, aux }): Promise\u003cResponseType\u003e =\u003e {\n    const { logger, db } = aux;\n    const body: ReqestBody = request.body;\n    logger.info('requset log');\n\n    const response = await logic(db, body);\n    return response;\n  },\n);\n```\n\n## Include features\n\n- event queue (AWS SQS)\n- S3\n- logging\n- dynamodb\n- organize request object\n- setting response object\n- built-in http error handling module\n- redis, typeorm, mongodb.\n- tmp file management\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasjhan%2Fserverless-aws-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukasjhan%2Fserverless-aws-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasjhan%2Fserverless-aws-middleware/lists"}