{"id":15853666,"url":"https://github.com/ivangabriele/publichost","last_synced_at":"2025-09-07T11:43:10.038Z","repository":{"id":253355668,"uuid":"842699962","full_name":"ivangabriele/publichost","owner":"ivangabriele","description":"Make your localhost apps public by tunneling subdomains to them.","archived":false,"fork":false,"pushed_at":"2025-07-22T23:05:12.000Z","size":4172,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T13:41:54.844Z","etag":null,"topics":["cli","local","local-dev","localhost","localtunnel","ngrok","sdk","server","tunnel","tunnel-client","tunnel-server"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivangabriele.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2024-08-14T22:13:59.000Z","updated_at":"2025-06-16T04:36:51.000Z","dependencies_parsed_at":"2024-09-13T08:56:43.802Z","dependency_job_id":"59928b0c-a165-4d37-87c1-5622cc337878","html_url":"https://github.com/ivangabriele/publichost","commit_stats":{"total_commits":56,"total_committers":3,"mean_commits":"18.666666666666668","dds":0.0892857142857143,"last_synced_commit":"3950a1ffab6d249376a3ae8d93bc6c49135c296d"},"previous_names":["ivangabriele/publichost"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ivangabriele/publichost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangabriele%2Fpublichost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangabriele%2Fpublichost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangabriele%2Fpublichost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangabriele%2Fpublichost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivangabriele","download_url":"https://codeload.github.com/ivangabriele/publichost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangabriele%2Fpublichost/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269778872,"owners_count":24474589,"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-10T02:00:08.965Z","response_time":71,"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":["cli","local","local-dev","localhost","localtunnel","ngrok","sdk","server","tunnel","tunnel-client","tunnel-server"],"created_at":"2024-10-05T19:22:06.919Z","updated_at":"2025-08-17T08:06:44.288Z","avatar_url":"https://github.com/ivangabriele.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"FirePT Logo\" height=\"128\" src=\"https://raw.githubusercontent.com/ivangabriele/publichost/main/packages/server/public/logo.1.png\" /\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003ePublicHost\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eTunneling subdomains to your localhost applications.\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/publichost\"\u003e\n    \u003cimg alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/publichost?style=for-the-badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ivangabriele/publichost/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"AGPL-3.0 license\" src=\"https://img.shields.io/github/license/ivangabriele/publichost?style=for-the-badge\u0026labelColor=000\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ivangabriele/publichost/actions?query=branch%3Amain+workflow%3ACheck\"\u003e\n    \u003cimg alt=\"CI Check Workflow\" src=\"https://img.shields.io/github/actions/workflow/status/ivangabriele/publichost/check.yml?branch=main\u0026label=Check\u0026style=for-the-badge\u0026labelColor=000\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ivangabriele/publichost/actions?query=branch%3Amain+workflow%3AE2E\"\u003e\n    \u003cimg alt=\"CI E2E Workflow\" src=\"https://img.shields.io/github/actions/workflow/status/ivangabriele/publichost/e2e.yml?branch=main\u0026label=E2E\u0026style=for-the-badge\u0026labelColor=000\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n- [Why PublicHost?](#why-publichost)\n- [Features](#features)\n- [How it works](#how-it-works)\n- [Installation](#installation)\n  - [CLI](#cli)\n  - [Usage](#usage)\n  - [Node.js SDK](#nodejs-sdk)\n    - [Koa Example](#koa-example)\n  - [Express Example](#express-example)\n\n---\n\n## Why PublicHost?\n\nBecause [ngrok](https://ngrok.com) but open-source and free.\n\n## Features\n\n- [x] PublicHost Server\n  - [x] Basic API Key Authentication\n- [x] PublicHost Client\n  - [x] CLI commands\n  - [x] Node.js SDK\n\n## How it works\n\n**To be updated.**\n\n\u003c!-- ```mermaid\nsequenceDiagram\n    participant User as User Browser\n    participant Server as PublicHost Server\n    participant Client as PublicHost Client\n    participant App as Local Application (localhost:8080)\n\n    User-\u003e\u003eServer: 1. HTTP Request (GET /hi) to http://default.localhost:3000/hi\n    Server-\u003e\u003eClient: 2. Forward request via WebSocket\n    Client-\u003e\u003eApp: 3. Forward request to http://localhost:8080/hi\n    App-\u003e\u003eClient: 4. Local Application processes and sends response\n    Client-\u003e\u003eServer: 5. Forward response via WebSocket\n    Server-\u003e\u003eUser: 6. HTTP Response (200 OK)\n``` --\u003e\n\n## Installation\n\n### CLI\n\n```sh\nnpm install -g publichost\n```\n\n### Usage\n\n```sh\nph --help\n```\n\n### Node.js SDK\n\n```sh\nnpm install -E publichost\n```\n\n#### Koa Example\n\n```ts\nimport Koa from 'koa'\n\nconst { PORT, PUBLICHOST_API_KEY, PUBLICHOST_HOST, PUBLICHOST_SUBDOMAIN } = process.env\n\nconst app = new Koa()\n\napp.listen(PORT, () =\u003e {\n  console.info('[My Amazing Localhost App]', `Server listening on port ${PORT}.`)\n\n  startPublicHost(PUBLICHOST_HOST, PUBLICHOST_SUBDOMAIN, PUBLICHOST_API_KEY, {\n    localhostAppPort: PORT,\n  })\n})\n```\n\n### Express Example\n\n```ts\nimport express from 'express'\n\nconst { PORT, PUBLICHOST_API_KEY, PUBLICHOST_HOST, PUBLICHOST_SUBDOMAIN } = process.env\n\nconst app = express()\n\napp.listen(PORT, () =\u003e {\n  console.info('[My Amazing Localhost App]', `Server listening on port ${PORT}.`)\n\n  startPublicHost(PUBLICHOST_HOST, PUBLICHOST_SUBDOMAIN, PUBLICHOST_API_KEY, {\n    localhostAppPort: PORT,\n  })\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangabriele%2Fpublichost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivangabriele%2Fpublichost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangabriele%2Fpublichost/lists"}