{"id":13563667,"url":"https://github.com/schollz/hostyoself","last_synced_at":"2025-05-15T20:03:55.137Z","repository":{"id":41086492,"uuid":"196062547","full_name":"schollz/hostyoself","owner":"schollz","description":"Host yo' self from your browser, your phone, your toaster.","archived":false,"fork":false,"pushed_at":"2023-09-18T15:06:08.000Z","size":4411,"stargazers_count":1847,"open_issues_count":10,"forks_count":75,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-08T01:38:47.624Z","etag":null,"topics":["golang","inception","javascript","web","web-hosting","website"],"latest_commit_sha":null,"homepage":"https://hostyoself.com","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/schollz.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"schollz"}},"created_at":"2019-07-09T18:31:27.000Z","updated_at":"2025-03-20T19:21:47.000Z","dependencies_parsed_at":"2024-01-07T18:57:13.945Z","dependency_job_id":null,"html_url":"https://github.com/schollz/hostyoself","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/schollz%2Fhostyoself","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fhostyoself/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fhostyoself/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fhostyoself/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schollz","download_url":"https://codeload.github.com/schollz/hostyoself/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414497,"owners_count":22067272,"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":["golang","inception","javascript","web","web-hosting","website"],"created_at":"2024-08-01T13:01:21.968Z","updated_at":"2025-05-15T20:03:52.714Z","avatar_url":"https://github.com/schollz.png","language":"Go","funding_links":["https://github.com/sponsors/schollz"],"categories":["Go","Tools"],"sub_categories":["Go","WebTools"],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg\n    src=\"/static/banner.jpg\" border=\"0\" alt=\"hostyoself\"\u003e\n\u003cbr\u003e\n\u003ca\nhref=\"https://github.com/schollz/hostyoself/releases/latest\"\u003e\u003cimg\nsrc=\"https://img.shields.io/badge/version-0.0.6-brightgreen.svg?style=flat-square\"\nalt=\"Version\"\u003e\u003c/a\u003e \u003c/p\u003e\n\n\u003cp align=\"center\"\u003eA hosting service from the browser, because why not. Try it at \u003ca href=\"https://hostyoself.com\"\u003ehostyoself.com\u003c/a\u003e.\u003c/p\u003e\n\n## See it in action\n\nHere's an example where I use [hostyoself.com](https://hostyoself.com) to host itself. I use `wget` to download [hostyoself.com](https://hostyoself.com) and then host [hostyoself.com](https://hostyoself.com) from [hostyoself.com](https://hostyoself.com): [hostyoself.com/hostyoself/](https://hostyoself.com/hostyoself/). Happy 9th Anniversary [Inception](https://en.wikipedia.org/wiki/Inception) :cake:!\n\n![Inception](/static/inception.gif)\n\n\n## Host from the browser\n\nOpen [hostyoself.com](https://hostyoself.com) and drag and drop a folder, or select a file. Your browser will host the files!\n\n\n## Host from the command line\n\nYou can host files directly from the terminal!\n\n```\n$ hostyoself host\nhttps://hostyoself.com/confidentcat/\n```\n\nNow if you have a file in your folder `README.md` you can access it with the public URL `https://hostyoself.com/confidentcat/README.md`, directly from your computer!\n\nIf you're on a Mac, you can install with Homebrew:\n\n```\nbrew tap schollz/homebrew https://github.com/schollz/homebrew-tap.git\nbrew install hostyoself\n```\n\nOr you can host your current directory using Docker:\n\n```\n$ docker run -v `pwd`:/data schollz/hostyoself\n```\n\n## Run your own relay\n\nWant to run your own relay? Its easy. \n\n```\n$ hostyoself relay --url https://yoururl\n```\n\n## FAQ\n\n\n**How do I start web hosting?** You will need to setup port forwarding, a dynamic DNS, name registration, MySQL, PHP, Apache and take a online course in Javascript. \n\nJust *kidding*! You don't need any of that crap. Just goto [hostyoself.com](https://hostyoself.com) drag and drop a folder, or select a file. That's literally it. Now you can host a website from your laptop or your phone or your smartwatch or your toaster.\n\n**How is this possible?** When the server you point at gets a request for a webpage, the server turns back and asks *you* for that content and will use what you provide for the original request.\n\n**Seriously, how is this possible?** The relay uses websockets in your browser to process GET commands.\n\n**Won't my website disappear when I close my browser?** Yep! There is a [command-line tool](https://github.com/schollz/hostyoself#host-from-the-command-line) that doesn't require a browser so it can run in the background if you need that. But yes, if your computer turns off then your site is down. Welcome to the joys of hosting a site on the internet.\n\n**Won't I have to reload my browser if I change a file?** Yep! Welcome to the joys of Javascript.\n\n**What's the largest file I can host using this?** `¯\\_(ツ)_/¯`\n\n**Should I use this to host a website?** Dear god yes.\n\n**Does this use AI or blockchain?** Sure, why not. \n\n**Does it scale?** Horizontally, or vertically? Probably neither!\n\n**What inspired this?** [beaker browser](https://beakerbrowser.com/), [ngrok](https://ngrok.com/), [localhost.run](http://localhost.run/), [inlets.dev](https://github.com/alexellis/inlets), Parks and Recreation.\n\n**What's the point of this?** You can host a website! You can share a file! Anything you want, directly from your browser!\n\n## Develop\n\n```\n$ git clone https://github.com/schollz/hostyoself\n$ cd hostyoself\n$ go generate -v -x\n$ go build -v\n```\n\n## License \n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Fhostyoself","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschollz%2Fhostyoself","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Fhostyoself/lists"}