{"id":20901568,"url":"https://github.com/willfarrell/sveltekit-adapter-middy","last_synced_at":"2026-02-22T21:11:29.042Z","repository":{"id":243705769,"uuid":"812845930","full_name":"willfarrell/sveltekit-adapter-middy","owner":"willfarrell","description":"SvelteKit adapter for AWS Lambda with Middy","archived":false,"fork":false,"pushed_at":"2025-03-18T14:24:32.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T06:06:19.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/willfarrell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-06-10T02:14:00.000Z","updated_at":"2025-03-18T14:24:39.000Z","dependencies_parsed_at":"2024-06-10T20:01:14.030Z","dependency_job_id":"15b445ae-5dd4-47eb-9fe4-802bc8139558","html_url":"https://github.com/willfarrell/sveltekit-adapter-middy","commit_stats":null,"previous_names":["willfarrell/sveltekit-adapter-middy"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fsveltekit-adapter-middy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fsveltekit-adapter-middy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fsveltekit-adapter-middy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fsveltekit-adapter-middy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfarrell","download_url":"https://codeload.github.com/willfarrell/sveltekit-adapter-middy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253867344,"owners_count":21976207,"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":[],"created_at":"2024-11-18T11:36:03.290Z","updated_at":"2026-02-22T21:11:28.808Z","avatar_url":"https://github.com/willfarrell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eMiddy SvelteKit Adapter\u003c/h1\u003e\n  \u003cimg alt=\"Middy logo\" src=\"https://raw.githubusercontent.com/middyjs/middy/main/docs/img/middy-logo.svg\"/\u003e\n  \u003cp\u003e\u003cstrong\u003eSvelteKit adapter for AWS Lambda using Middy\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@middy/http-router?activeTab=versions\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/%40middy%2Fhttp-router.svg\" alt=\"npm version\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://packagephobia.com/result?p=@middy/http-router\"\u003e\n    \u003cimg src=\"https://packagephobia.com/badge?p=@middy/http-router\" alt=\"npm install size\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/middyjs/middy/actions/workflows/tests.yml\"\u003e\n    \u003cimg src=\"https://github.com/middyjs/middy/actions/workflows/tests.yml/badge.svg?branch=main\u0026event=push\" alt=\"GitHub Actions CI status badge\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n   \u003ca href=\"https://standardjs.com/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code_style-standard-brightgreen.svg\" alt=\"Standard Code Style\"  style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://snyk.io/test/github/middyjs/middy\"\u003e\n    \u003cimg src=\"https://snyk.io/test/github/middyjs/middy/badge.svg\" alt=\"Known Vulnerabilities\" data-canonical-src=\"https://snyk.io/test/github/middyjs/middy\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/middyjs/middy/actions/workflows/sast.yml\"\u003e\n    \u003cimg src=\"https://github.com/middyjs/middy/actions/workflows/sast.yml/badge.svg\n?branch=main\u0026event=push\" alt=\"CodeQL\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bestpractices.coreinfrastructure.org/projects/5280\"\u003e\n    \u003cimg src=\"https://bestpractices.coreinfrastructure.org/projects/5280/badge\" alt=\"Core Infrastructure Initiative (CII) Best Practices\"  style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n  \u003ca href=\"https://gitter.im/middyjs/Lobby\"\u003e\n    \u003cimg src=\"https://badges.gitter.im/gitterHQ/gitter.svg\" alt=\"Chat on Gitter\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://stackoverflow.com/questions/tagged/middy?sort=Newest\u0026uqlId=35052\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/StackOverflow-[middy]-yellow\" alt=\"Ask questions on StackOverflow\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003c!--\u003cp\u003eYou can read the documentation at: \u003ca href=\"https://middy.js.org/docs/ssr/sveltekit\"\u003ehttps://middy.js.org/docs/ssr/sveltekit\u003c/a\u003e\u003c/p\u003e--\u003e\n\u003c/div\u003e\n\nCreates a lambda that supports a Function URL with streaming responses.\n\n## Features\n\n- Response Stream\n- Extendable with Middy middlewares:\n  - `http-content-encoding`\n  - `http-security-headers`\n  - `ssm`/`secrets-manger`\n- Removes `x-sveltekit-page` headers\n- Multiple `Set-Cookies`\n- Override `Origin` header with `ORIGIN` env\n\nNote: Bring your own deployment.\n\n## Getting started\n\n```bash\nnpm i -D sveltekit-adapter-middy\n```\n\n```js\nimport adapter from 'sveltekit-adapter-middy'\n\nexport default {\n  kit: {\n    adapter: adapter({\n      // options\n    })\n  }\n}\n```\n\n### Options\n\n- `handlerPath` (string): Relative path to handler override file. Overriding allows you to add in Content-Encoding, Security Headers, and pass in secrets more securely. Defaults to build-in minimalist handler.\n- `out` (string): Relative path to build dir. Defaults to `build`\n- `esbuildOptions` (object): `esbuild` option overrides. See [code]() for defaults.\n\n## Recommended Infrastructure\n\n- CloudFront: Route to static assets / pages, with fallback to server side rendering\n- S3: store static assets and pages\n- Lambda Function URL: server side rendering\n\n## Roadmap\n\n- infra diagram\n- cli to sync static assets to S3 w/ headers\n- LLRT\n\n## License\n\nLicensed under [MIT License](LICENSE). Copyright (c) 2017-2024 [Luciano Mammino](https://github.com/lmammino), [will Farrell](https://github.com/willfarrell), and the [Middy team](https://github.com/middyjs/middy/graphs/contributors).\n\n\u003ca href=\"https://app.fossa.io/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy?ref=badge_large\"\u003e\n  \u003cimg src=\"https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy.svg?type=large\" alt=\"FOSSA Status\"  style=\"max-width:100%;\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fsveltekit-adapter-middy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfarrell%2Fsveltekit-adapter-middy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fsveltekit-adapter-middy/lists"}