{"id":13767339,"url":"https://github.com/connorgiles/lambda-func","last_synced_at":"2025-10-08T16:24:52.448Z","repository":{"id":45228598,"uuid":"442044687","full_name":"connorgiles/lambda-func","owner":"connorgiles","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-30T03:22:52.000Z","size":374,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-15T11:58:02.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/connorgiles.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":"2021-12-27T03:59:18.000Z","updated_at":"2023-01-02T17:50:06.000Z","dependencies_parsed_at":"2022-09-05T07:12:03.313Z","dependency_job_id":null,"html_url":"https://github.com/connorgiles/lambda-func","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/connorgiles/lambda-func","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorgiles%2Flambda-func","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorgiles%2Flambda-func/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorgiles%2Flambda-func/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorgiles%2Flambda-func/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connorgiles","download_url":"https://codeload.github.com/connorgiles/lambda-func/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorgiles%2Flambda-func/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278975255,"owners_count":26078590,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2024-08-03T16:01:07.627Z","updated_at":"2025-10-08T16:24:52.417Z","avatar_url":"https://github.com/connorgiles.png","language":"TypeScript","readme":"# Lambda Middleware\n\n[![@lambda-func CI/CD](https://github.com/connorgiles/lambda-func/actions/workflows/ci.yml/badge.svg)](https://github.com/connorgiles/lambda-func/actions/workflows/ci.yml)\n\nThis monorepo contains the a set of higher order functions and utilities to create composable middleware for lambda functions.\n\n## Published Packages\n\n[View published pacakges here](https://www.npmjs.com/org/lambda-func)\n\n## Usage\n\n```typescript\nimport { z } from 'zod'\nimport { compose, Controller } from '@lambda-func/core'\nimport { sqs } from '@lambda-func/sqs'\nimport { inject } from '@lambda-func/inject'\nimport { select } from '@lambda-func/select'\nimport { zodParser } from '@lambda-func/zod'\n\nimport { Database, Logger } from '../services'\n\nconst wrapper = compose(\n  sqs(),\n  select((record) =\u003e record.body),\n  zodParser(\n    z.object({\n      id: z.string(),\n      name: z.string()\n    })\n  ),\n  inject('db', Database),\n  inject('logger', Logger)\n)\n\n// easily testable controller\nexport const controller: Controller\u003ctypeof wrapper\u003e = async (record, { logger, db }) =\u003e {\n  logger.info('Saving record to database')\n  await db.save(record)\n}\n\nexport const handler = wrapper(controller)\n```\n\n## Rush\n\nThis repo uses [rush](https://rushjs.io/) to maintain a monorepo of packages. [Learn the basics 👉](https://rushjs.io/pages/developer/new_developer/)\n\n### Installation\n\n```\nnpm i -g @microsoft/rush\n```\n\n### Useful Commands\n\n- `rush build` - build pacakges that need it\n- `rush test` - test all packages\n- `rush create-package --name package-name` - create a new package based on the provided [template](./internals/template/)\n- `rush rebuild` - builds all packages\n- `rush publish` - publish all packages\n- `rush purge` - to clean up temporary files created by rush\n\n### Installing Dependencies\n\nWith rush, you often will work from the directory of the individual \"project\" (package) you are working on. If you want to add a dependency to to that project then you run `rush add --package example-package (--dev)`.\n","funding_links":[],"categories":["APIs and Servers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnorgiles%2Flambda-func","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnorgiles%2Flambda-func","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnorgiles%2Flambda-func/lists"}