{"id":16716523,"url":"https://github.com/anmonteiro/now-static-bin","last_synced_at":"2025-03-21T20:34:17.194Z","repository":{"id":57155358,"uuid":"156992820","full_name":"anmonteiro/now-static-bin","owner":"anmonteiro","description":"Run arbitrary executables in Now 2.0 Lambdas","archived":false,"fork":false,"pushed_at":"2023-04-29T20:07:25.000Z","size":20344,"stargazers_count":23,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-22T21:31:09.221Z","etag":null,"topics":["aws-lambda","builder","now","now-builder","serverless","zeit"],"latest_commit_sha":null,"homepage":"https://now-static-bin-examples.now.sh","language":"Go","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/anmonteiro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-11-10T15:15:19.000Z","updated_at":"2024-04-02T18:30:54.000Z","dependencies_parsed_at":"2024-03-19T02:33:14.162Z","dependency_job_id":null,"html_url":"https://github.com/anmonteiro/now-static-bin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmonteiro%2Fnow-static-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmonteiro%2Fnow-static-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmonteiro%2Fnow-static-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmonteiro%2Fnow-static-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anmonteiro","download_url":"https://codeload.github.com/anmonteiro/now-static-bin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221717242,"owners_count":16868905,"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":["aws-lambda","builder","now","now-builder","serverless","zeit"],"created_at":"2024-10-12T21:26:00.972Z","updated_at":"2024-10-28T10:51:26.468Z","avatar_url":"https://github.com/anmonteiro.png","language":"Go","readme":"# now-static-bin\n\nThis package provides a\n[builder](https://zeit.co/docs/v2/deployments/builders/overview#when-to-use-builders)\nfor Zeit's [Now 2.0](https://zeit.co/blog/now-2) offering that enables running\narbitrary executables in the generated lambdas.\n\n## Usage\n\nYour `now.json` `\"builds\"` section should look something like this:\n\n## Example\n\n**Note**: don't forget to add `\"version\": 2` in your `now.json` file to use Now\n2.0 explicitly.\n\n```json\n{\n  \"builds\": [\n    {\n      \"src\": \"*.exe\",\n      \"use\": \"now-static-bin\",\n      \"config\": {\n        \"port\": 4000\n      }\n    }\n  ]\n}\n```\n\n### Other Examples\n\nMake sure to check the [`examples`](./examples) folder in this repo for examples\nin different programming languages. Below is a table that details their\nimplementation choices.\n\nThey are also deployed on every commit to master and the latest build lives in\n[`now-static-bin-examples.now.sh`](https://now-static-bin-examples.now.sh/).\n\n| Example    | Demo     | Description     |\n|:---------- |:---------|:----------------|\n| [OCaml](/examples/bintry) | [https://now-static-bin-examples.now.sh/examples/bintry/main.exe](https://now-static-bin-examples.now.sh/examples/bintry/main.exe) | An OCaml static binary example server (no source available yet) |\n| [Rust](/examples/rust) | [https://now-static-bin-examples.now.sh/examples/rust/server.exe](https://now-static-bin-examples.now.sh/examples/rust/server.exe) | A Rust [simple-server](https://github.com/steveklabnik/simple-server) example |\n| [Reason](/examples/reason) | [https://now-static-bin-examples.now.sh/examples/reason/main.exe](https://now-static-bin-examples.now.sh/examples/reason/main.exe) | A [Reason](https://reasonml.github.io/) [Cohttp](https://github.com/mirage/ocaml-cohttp) server example that outputs request information |\n\n## Configuration Options\n\n- `port`: the port that the deployed server listens on. Defaults to 8080.\n- `timeout`: the timeout that the launcher waits for your server to start\n  listening on the specified port. Defaults to 50ms.\n\n## Limitations\n\n- Currently only HTTP servers are supported.\n\n## Copyright and License\n\nCopyright © 2018 António Nuno Monteiro.\n\nDistributed under the MIT License (see [LICENSE](./LICENSE)).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmonteiro%2Fnow-static-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmonteiro%2Fnow-static-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmonteiro%2Fnow-static-bin/lists"}