{"id":26553588,"url":"https://github.com/encalmo/scala-aws-lambda-local-host","last_synced_at":"2026-04-30T19:32:14.606Z","repository":{"id":283167689,"uuid":"940020036","full_name":"encalmo/scala-aws-lambda-local-host","owner":"encalmo","description":"Local emulator of the AWS Lambda host environment. Starts local HTTP server implementing lambda runtime API. Provides browser-based HTML interface to send input to lambda and to read output.","archived":false,"fork":false,"pushed_at":"2025-03-26T08:19:52.000Z","size":369,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-06T02:02:38.914Z","etag":null,"topics":["aws-lambda","scala","scala3","testing"],"latest_commit_sha":null,"homepage":"https://encalmo.github.io/scala-aws-lambda-local-host/","language":"Scala","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/encalmo.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,"zenodo":null}},"created_at":"2025-02-27T13:39:41.000Z","updated_at":"2025-03-26T08:19:56.000Z","dependencies_parsed_at":"2025-06-03T04:04:18.468Z","dependency_job_id":null,"html_url":"https://github.com/encalmo/scala-aws-lambda-local-host","commit_stats":null,"previous_names":["encalmo/scala-aws-lambda-local-host"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/encalmo/scala-aws-lambda-local-host","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encalmo%2Fscala-aws-lambda-local-host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encalmo%2Fscala-aws-lambda-local-host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encalmo%2Fscala-aws-lambda-local-host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encalmo%2Fscala-aws-lambda-local-host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/encalmo","download_url":"https://codeload.github.com/encalmo/scala-aws-lambda-local-host/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encalmo%2Fscala-aws-lambda-local-host/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-lambda","scala","scala3","testing"],"created_at":"2025-03-22T09:24:30.244Z","updated_at":"2026-04-30T19:32:14.602Z","avatar_url":"https://github.com/encalmo.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://github.com/encalmo/scala-aws-lambda-local-host\"\u003e![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge\u0026logo=github\u0026logoColor=white)\u003c/a\u003e \u003ca href=\"https://central.sonatype.com/artifact/org.encalmo/scala-aws-lambda-local-host_3\" target=\"_blank\"\u003e![Maven Central Version](https://img.shields.io/maven-central/v/org.encalmo/scala-aws-lambda-local-host_3?style=for-the-badge)\u003c/a\u003e \u003ca href=\"https://encalmo.github.io/scala-aws-lambda-local-host/scaladoc/org/encalmo/lambda/host.html\" target=\"_blank\"\u003e\u003cimg alt=\"Scaladoc\" src=\"https://img.shields.io/badge/docs-scaladoc-red?style=for-the-badge\"\u003e\u003c/a\u003e\n\n# scala-aws-lambda-local-host\n\nLocal emulator of the AWS Lambda host environment.\n\nStarts local HTTP server implementing https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html.\n\nProvides browser-based HTML interface to send input to lambda and to read output.\n\n![image](screenshot.png)\n![image](screenshot2.jpg)\n\n## Table of contents\n\n- [Dependencies](#dependencies)\n- [Usage](#usage)\n- [Options](#options)\n- [Example](#example)\n- [Project content](#project-content)\n\n## Dependencies\n\n   - [Scala](https://www.scala-lang.org) \u003e= 3.3.5\n   - com.lihaoyi [**os-lib** 0.11.4](https://github.com/com-lihaoyi/os-lib)\n\n## Usage\n\nUse with SBT\n\n    libraryDependencies += \"org.encalmo\" %% \"scala-aws-lambda-local-host\" % \"0.9.1\"\n\nor with SCALA-CLI\n\n    //\u003e using dep org.encalmo::scala-aws-lambda-local-host:0.9.1\n\n## Options\n\n|Option|Description|\n|---|---|\n|--mode|User interface choice. Either `commandline` (default) or `browser`|\n|--lambda-name|Name of the lambda passed to AWS_LAMBDA_FUNCTION_NAME environment variable|\n|--lambda-script|Command line to run custom lambda runtime|\n\n## Example\n\nRun AWS Lambda host locally (works with any lambda runtime):\n\n```\nscala run --main-class org.encalmo.lambda.host.LocalLambdaHost \\\n    --quiet --suppress-directives-in-multiple-files-warning \\\n    --suppress-outdated-dependency-warning . \\\n    -- \\\n    --mode=browser\n```\n\nRun AWS Lambda host locally with some Scala lambda:\n\n```\nscala run --main-class org.encalmo.lambda.host.LocalLambdaHost \\\n    --quiet --suppress-directives-in-multiple-files-warning \\\n    --suppress-outdated-dependency-warning . \\\n    -- \\\n    --mode=browser \\\n    --lambda-script=\"scala run --quiet --suppress-directives-in-multiple-files-warning --suppress-outdated-dependency-warning --dependency=org.encalmo::scala-aws-lambda-runtime:0.9.1 --main-class org.encalmo.lambda.TestEchoLambda\" \\\n    --lambda-name=Echo\n```\n\nRun an example TestEchoLambda:\n\n```\n/scripts/runTestEchoLambdaHostInBrowser.sh\n```\n\n\n## Project content\n\n```\n├── .github\n│   └── workflows\n│       ├── pages.yaml\n│       ├── release.yaml\n│       └── test.yaml\n│\n├── .gitignore\n├── .scalafmt.conf\n├── LICENSE\n├── LocalLambdaHost.scala\n├── project.scala\n├── README.md\n├── screenshot.png\n├── screenshot2.jpg\n└── scripts\n    ├── runTestEchoLambdaHostInBrowser.sh\n    └── testEchoLambda.scala\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencalmo%2Fscala-aws-lambda-local-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fencalmo%2Fscala-aws-lambda-local-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencalmo%2Fscala-aws-lambda-local-host/lists"}