{"id":13580930,"url":"https://github.com/rbino/live_bin","last_synced_at":"2025-09-02T20:34:52.982Z","repository":{"id":35422221,"uuid":"214041710","full_name":"rbino/live_bin","owner":"rbino","description":"A self-hostable request bin that doesn't get in your way, powered by Phoenix LiveView","archived":false,"fork":false,"pushed_at":"2023-04-13T23:35:57.000Z","size":260,"stargazers_count":36,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-04T08:11:10.466Z","etag":null,"topics":["elixir","liveview","phoenix","postbin","requestbin"],"latest_commit_sha":null,"homepage":"https://liveb.in","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rbino.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2019-10-09T23:13:16.000Z","updated_at":"2024-11-29T18:51:51.000Z","dependencies_parsed_at":"2024-10-28T13:23:13.140Z","dependency_job_id":"91b7c335-fde2-4a5c-9ad2-fae97b370232","html_url":"https://github.com/rbino/live_bin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rbino/live_bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbino%2Flive_bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbino%2Flive_bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbino%2Flive_bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbino%2Flive_bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbino","download_url":"https://codeload.github.com/rbino/live_bin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbino%2Flive_bin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261927623,"owners_count":23231380,"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":["elixir","liveview","phoenix","postbin","requestbin"],"created_at":"2024-08-01T15:01:56.469Z","updated_at":"2025-06-25T18:10:42.028Z","avatar_url":"https://github.com/rbino.png","language":"Elixir","readme":"# LiveBin\n\nLiveBin is a simple tool used to inspect HTTP requests.\n\nIt tries not to get in your way, it doesn't parse the body or do other\nfancy stuff with your request. This way you see exactly what was sent.\nThe idea is basically having the same output you would get by doing HTTP\nrequests to a listening instance of `netcat`.\n\nUnder the hood it uses the super cool\n[Phoenix Live View](https://github.com/phoenixframework/phoenix_live_view),\nso new requests are prepended at the top of the page without the need of\nrefreshing.\n\nYou can visit [liveb.in](https://liveb.in) to try it live.\n\n## Running your instance (with Docker)\n\nYou can run your instance using the Docker image\n\n```\nexport SECRET_KEY_BASE=$(mix phx.gen.secret)\n# or `openssl rand -base64 48` if you don't have phx generators installed\ndocker run -e SECRET_KEY_BASE -p 4000:4000 rbino/live_bin:0.3.0\n```\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\n### Additional environment variables\nlive_bin accepts these additional environment variables, that you can pass with `-e`\nto `docker run`:\n\n- `PORT`: the listening port, that will have to be exposed from the container.\nDefaults to `4000`.\n- `PHX_HOST`: base host (e.g. `example.com`) where live_bin is served. Needed to\nmake websockets work and to correctly generate links. Defaults to `example.com`.\n- `LIVE_BIN_INACTIVITY_TIMEOUT`: the timeout after which a bin will be deleted\nif there's no activity on it, in milliseconds. Defaults to infinity.\n- `LIVE_BIN_MAX_REQUESTS`: the max number of requests that a bin can receive\nbefore being deleted. Defaults to `nil`, which means unlimited.\n- `LIVE_BIN_USE_BIN_SUBDOMAINS`: if `true`, generates request URLs appear as\n`\u003cbin_id\u003e.\u003chost\u003e` instead of `\u003chost\u003e/r/\u003cbin_id\u003e`. This just changes the way URLs\nare generated, to make it work, the reverse proxy must perform the appropriate\nURL rewriting (taking `\u003cbin_id\u003e` from the subdomain and putting it in the path).\n\n### nginx configuration example\nIn `priv/examples/nginx-example.conf` you can find a sample `nginx` conf to\nserve as reverse proxy for live_bin, with bin subdomains support. You should just be\nable to replace `live_b.in` with your URL and, after obtaining SSL certificates,\nyou should be good to go.\n\n## Developing and building\n\nYou can run your local instance (to test modifications) simply with:\n\n```bash\n$ mix deps.get\n$ npm install --prefix assets\n$ iex -S mix phx.server\n```\n\nAlternatively, you can also rebuild the Docker image with:\n\n```bash\n$ docker build .\n```\n\n## License\nCopyright (c) 2019-2022 Riccardo Binetti \u003crbino@gmx.com\u003e\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at\n```\nhttp://www.apache.org/licenses/LICENSE-2.0\n```\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See the License for the\nspecific language governing permissions and limitations under the License.\n","funding_links":[],"categories":["Elixir"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbino%2Flive_bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbino%2Flive_bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbino%2Flive_bin/lists"}