{"id":21404231,"url":"https://github.com/griffinsauce/netlify-lambda-router","last_synced_at":"2026-04-19T05:37:22.590Z","repository":{"id":84365922,"uuid":"224273746","full_name":"GriffinSauce/netlify-lambda-router","owner":"GriffinSauce","description":"An express-like router for Netlify lambda functions.","archived":false,"fork":false,"pushed_at":"2021-01-13T15:10:47.000Z","size":134,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-16T19:07:09.247Z","etag":null,"topics":["express","lambda-functions","netlify","netlify-functions","netlify-lambda"],"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/GriffinSauce.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":"2019-11-26T19:51:33.000Z","updated_at":"2020-02-18T06:20:47.000Z","dependencies_parsed_at":"2023-03-12T22:34:35.150Z","dependency_job_id":null,"html_url":"https://github.com/GriffinSauce/netlify-lambda-router","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GriffinSauce/netlify-lambda-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GriffinSauce%2Fnetlify-lambda-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GriffinSauce%2Fnetlify-lambda-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GriffinSauce%2Fnetlify-lambda-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GriffinSauce%2Fnetlify-lambda-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GriffinSauce","download_url":"https://codeload.github.com/GriffinSauce/netlify-lambda-router/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GriffinSauce%2Fnetlify-lambda-router/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266111435,"owners_count":23877980,"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":["express","lambda-functions","netlify","netlify-functions","netlify-lambda"],"created_at":"2024-11-22T16:13:42.355Z","updated_at":"2026-04-19T05:37:22.551Z","avatar_url":"https://github.com/GriffinSauce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# netlify-lamba-router\n\nAn express-like router for Netlify lambda functions. \n\nJust one dependency: `path-to-regexp`. The same library that express uses to parse/match paths.\n\n## Status\n\nWhile this worked fine for early versions of my app, I have moved from Netlify to Zeit Now where routing is filesystem based. This repo is currently unmaintained.\n\n## Usage\n```.js\nconst router = require('netlify-lambda-router')(); // Not quite, it's not published to NPM (yet)\n\nrouter.get('/things/:id', async (req) =\u003e {\n  const thing = await getThing(req.params.id);\n  return {\n    statusCode: 200\n    body: JSON.stringify(thing)\n  }\n})\n\nexports.handler = router.handle;\n```\n\nThe signature is similar to express but instead of a `res` we simply return an object. More info on the return object in the [functions notes](FUNCTIONS.md).\n\n## Todo\n\n- mimic req better by translating event props\n- document handlers and return value\n- move cleanPath to an option\n- document that it won't 404 by default _or_ return 404\n\n\nLicense: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriffinsauce%2Fnetlify-lambda-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgriffinsauce%2Fnetlify-lambda-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriffinsauce%2Fnetlify-lambda-router/lists"}