{"id":21232195,"url":"https://github.com/oleskiewicz/httpipe","last_synced_at":"2025-03-15T02:40:49.811Z","repository":{"id":57712706,"uuid":"352174487","full_name":"oleskiewicz/httpipe","owner":"oleskiewicz","description":"http \u003c-\u003e stdio bridge","archived":false,"fork":false,"pushed_at":"2023-10-13T17:05:03.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T18:26:36.059Z","etag":null,"topics":["faas","go","http"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oleskiewicz.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-03-27T20:50:44.000Z","updated_at":"2022-05-06T17:14:18.000Z","dependencies_parsed_at":"2024-06-21T11:53:15.088Z","dependency_job_id":"d3cf1046-9abf-4319-a6f8-db7eb641f5b4","html_url":"https://github.com/oleskiewicz/httpipe","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleskiewicz%2Fhttpipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleskiewicz%2Fhttpipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleskiewicz%2Fhttpipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleskiewicz%2Fhttpipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleskiewicz","download_url":"https://codeload.github.com/oleskiewicz/httpipe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243676705,"owners_count":20329431,"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":["faas","go","http"],"created_at":"2024-11-20T23:49:59.018Z","updated_at":"2025-03-15T02:40:49.777Z","avatar_url":"https://github.com/oleskiewicz.png","language":"Go","readme":"httpipe\n=======\nhttp \u003c-\u003e stdio bridge inspired by \u003chttps://github.com/openfaas/faas\u003e.\n\n![meme kiss http stdio](./meme.jpg)\n\nSummary\n-------\n- each function gets a subdirectory\n- on GET request, it displays a `doc` file\n- on POST request, it runs `handle` executable\n- `handle` reads HTTP request body as stdin\n- anything that `handle` writes to stdout is sent as HTTP response\n- anything that `handle` writes to stderr is appended to `log` file with a timestamp\n- every invocation increments `runs` file with a timestamp\n\nExtras\n------\n- caching of (md5-checksummed) input can be handled by `contrib/memoize` script\n- piping works by calling `/pipe/{funcs}` endpoint\n- you can spawn a container for process by replacing normal shebang with `contrib/cr`\n\nExample\n-------\nInvoke:\n\n    $ envdir ./env ./httpipe  # or...\n    $ HTTPIPE_DIR=fn ./httpipe  # or...\n    $ ./httpipe -d fn\n\nThe simplest use case is with strings:\n\n    $ cat ./fn/b64e/handle\n    #!/bin/sh -e\n\tbase64\n\n\t$ curl -d \"hello world\" 0.0.0.0:8080/b64e\n\taGVsbG8gd29ybGQ=\n\n\t$ curl -d \"aGVsbG8gd29ybGQ=\" 0.0.0.0:8080/b64d\n\thello world%\n\n\t$ curl -d \"hello world=\" 0.0.0.0:8080/pipe/b64e/b64d\n\thello world%\n\n    $ cat ./fn/bw/handle\n    #!/bin/sh -e\n    convert - -grayscale Rec709Luminance fd:1\n\n    $ curl --data-binary @./meme.jpg 0.0.0.0:8080/bw \u003e meme_bw.jpg # or...\n    $ \u003c ./meme.jpg curl --data-binary @- 0.0.0.0:8080/bw \u003e ./meme_bw.jpg\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleskiewicz%2Fhttpipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleskiewicz%2Fhttpipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleskiewicz%2Fhttpipe/lists"}