{"id":13562340,"url":"https://github.com/beefsack/webify","last_synced_at":"2025-08-12T21:19:21.185Z","repository":{"id":41140925,"uuid":"290097047","full_name":"beefsack/webify","owner":"beefsack","description":"Turn shell commands into web services","archived":false,"fork":false,"pushed_at":"2020-09-27T00:12:40.000Z","size":41,"stargazers_count":965,"open_issues_count":0,"forks_count":40,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-12T18:43:13.753Z","etag":null,"topics":["function","serverless","shell","web"],"latest_commit_sha":null,"homepage":"","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/beefsack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"beefsack"}},"created_at":"2020-08-25T02:56:38.000Z","updated_at":"2025-07-28T01:47:19.000Z","dependencies_parsed_at":"2022-09-09T02:31:52.656Z","dependency_job_id":null,"html_url":"https://github.com/beefsack/webify","commit_stats":null,"previous_names":["beefsack/script-httpd"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/beefsack/webify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefsack%2Fwebify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefsack%2Fwebify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefsack%2Fwebify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefsack%2Fwebify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beefsack","download_url":"https://codeload.github.com/beefsack/webify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beefsack%2Fwebify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270135758,"owners_count":24533350,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["function","serverless","shell","web"],"created_at":"2024-08-01T13:01:07.418Z","updated_at":"2025-08-12T21:19:21.139Z","avatar_url":"https://github.com/beefsack.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://i.imgur.com/I2HvDxv.png\"\u003e\u003c/p\u003e\n\u003ch1 align=\"center\"\u003ewebify\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003eTurn functions and commands into web services\u003c/b\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/beefsack/webify/actions\"\u003e\u003cimg src=\"https://github.com/beefsack/webify/workflows/build/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/beefsack/webify\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/beefsack/webify\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"MIT License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://i.imgur.com/OipBB3v.gif\"\u003e\u003c/p\u003e\n\nFor a real world example, see [turning a Python function into a web\nservice](examples/python-function).\n\n## Overview\n\n`webify` is a very basic CGI server which forwards all requests to a single\nscript. A design goal is to be as zero-config as possible.\n\n`webify` invokes your script and writes the request body to your process'\nstdin. Stdout is then passed back to the client as the HTTP response body.\n\nIf your script returns a non-zero exit code, the HTTP response status code will\nbe 500.\n\n## Installation\n\n`webify` is available from the [project's releases page](https://github.com/beefsack/webify/releases).\n\nOn macOS, it can also be installed via [MacPorts](https://ports.macports.org/port/py-boltons/summary):\n\n```bash\nsudo port install webify\n```\n\n## Usage\n\n```bash\n# Make a web service out of `wc` to count the characters in the request body.\n$ webify wc -c\n2020/08/25 12:42:32 listening on :8080, proxying to wc -c\n\n...\n\n$ curl -d 'This is a really long sentence' http://localhost:8080\n30\n```\n\n### Official Docker image\n\nThe official Docker image is [beefsack/webify](https://hub.docker.com/r/beefsack/webify).\n\nIt can be configured using the following environment variables:\n\n* `ADDR` - the address to listen on inside the container, defaults to `:80`\n* `SCRIPT` - the command to execute, defaults to `/script`\n\n#### Mounting script and running official image\n\n```\n$ docker run -it --rm -p 8080:80 -v /path/to/my/script:/script beefsack/webify:latest\n2020/08/25 04:27:46 listening on :80, proxying to /script\n\n...\n\n$ curl -d 'Some data' http://localhost:8080\n```\n\n#### Building a new image using official image as base\n\nCreate a `Dockerfile` like the following:\n\n```\nFROM beefsack/webify:latest\nCOPY myscript /script\n```\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","funding_links":["https://github.com/sponsors/beefsack"],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeefsack%2Fwebify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeefsack%2Fwebify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeefsack%2Fwebify/lists"}