{"id":41683564,"url":"https://github.com/fun-stack/local-env","last_synced_at":"2026-01-24T18:53:24.540Z","repository":{"id":40324102,"uuid":"433752518","full_name":"fun-stack/local-env","owner":"fun-stack","description":"Replicate fun-stack infrastructure locally","archived":false,"fork":false,"pushed_at":"2025-03-01T16:04:15.000Z","size":462,"stargazers_count":4,"open_issues_count":20,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-30T16:17:59.454Z","etag":null,"topics":["aws","aws-apigateway","aws-lambda"],"latest_commit_sha":null,"homepage":"","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/fun-stack.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":"2021-12-01T08:57:52.000Z","updated_at":"2025-03-01T16:04:19.000Z","dependencies_parsed_at":"2024-04-08T15:47:29.584Z","dependency_job_id":"5ca8d9a6-bea1-4133-b809-85c0fc045ebc","html_url":"https://github.com/fun-stack/local-env","commit_stats":{"total_commits":190,"total_committers":4,"mean_commits":47.5,"dds":0.4736842105263158,"last_synced_commit":"72574bef13a9dcfb9c610380bd2ae97006f5f78e"},"previous_names":["fun-stack/lambda-server"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/fun-stack/local-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fun-stack%2Flocal-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fun-stack%2Flocal-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fun-stack%2Flocal-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fun-stack%2Flocal-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fun-stack","download_url":"https://codeload.github.com/fun-stack/local-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fun-stack%2Flocal-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28734325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T17:51:25.893Z","status":"ssl_error","status_checked_at":"2026-01-24T17:50:48.377Z","response_time":89,"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","aws-apigateway","aws-lambda"],"created_at":"2026-01-24T18:53:23.869Z","updated_at":"2026-01-24T18:53:24.530Z","avatar_url":"https://github.com/fun-stack.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# local-env\n\nReplicate fun-stack infrastructure locally: AWS lambdas with a HTTP/WS Server, local cognito.\n\n## Links\n\nExample on how to use it:\n- Fun Scala Template: [example](https://github.com/fun-stack/example)\n\nTerraform module for the corresponding AWS infrastructure:\n- Fun Terraform Module: [terraform-aws-fun](https://github.com/fun-stack/terraform-aws-fun)\n\nSDK library to communicate with the infrastructure in your code:\n- Fun SDK Scala: [sdk-scala](https://github.com/fun-stack/sdk-scala)\n\n## Install\n\n```sh\nnpm install --global @fun-stack/fun-local-env\n```\n\n## Usage\n\n```sh\nfun-local-env --help\n```\n\nUsage:\n```\nUsage: fun-local-env \u003coptions\u003e\n--http [\u003cport\u003e]\n--ws [\u003cport\u003e]\n--auth [\u003cport\u003e]\n--http-api \u003cjs-file-name\u003e \u003cexport-name\u003e\n--http-rpc \u003cjs-file-name\u003e \u003cexport-name\u003e\n--ws-rpc \u003cjs-file-name\u003e \u003cexport-name\u003e\n--ws-event-authorizer \u003cjs-file-name\u003e \u003cexport-name\u003e\n```\n\n## Development\n\n```sh\nsbt ~cli/fastOptJS/webpack\nnode cli/target/scala-2.13/scalajs-bundler/main/fun-local-env.js --ws 8080 --ws-rpc \u003cpath-to-js\u003e handlerWebsocket\n\n# or, with file watching:\necho cli/target/scala-2.13/scalajs-bundler/main/fun-local-env.js | entr -cnr node --enable-source-maps cli/target/scala-2.13/scalajs-bundler/main/fun-local-env.js --ws 8080 --ws-rpc \u003cpath-to-js\u003e handlerWebsocket\n```\n\n## Release\n\n```sh\ncd npm\nmkdir -p .git # trick npm into thinking this is a git root\nnpm version patch\ngit push\ngit push --tags\n```\n\n## Caveats\n\nIf you're using a node-version that's too new (\u003e16.x), you might need to set this env-var if you get errors bundling the app. \n```sh \nexport NODE_OPTIONS=--openssl-legacy-provider\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffun-stack%2Flocal-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffun-stack%2Flocal-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffun-stack%2Flocal-env/lists"}