2 ms·
Show HN: Socket to Me, a static file server that runs in the browser
The service lets you share an entire folder - not just a single file - with anyone on the Internet in a single click.
Under the hood, GET responses are hydrated with file fragments streamed over a duplex WebSocket connection. Close the browser tab, and the server disappears. Files can also be password-protected.
I built it because I needed a way to share a static website with a client without first uploading the work to a cloud service.
- retmarut 3mo agoNice and easy! Is there a repo?
- markjivko 3mo agoThere's no repo yet, but if enough people find it useful, I'll make time to create one. The front end is written in Next.js, although I should probably rewrite it in vanilla JavaScript for the OSS version. The back end is a PHP service—essentially a continuously running `php -f server.php` process. Since it's a long-running process, it's effectively as fast as anything else (think a Rust binary). It's very well written, with a strong focus on security and memory management. I think you'll like it.
- retmarut 3mo agoI am sure I will. And to be honest, what you described would be the perfect combo: JS (or TypeScript) for the front, and PHP for the backend. It'll run anywhere!! --- Guys: upvote this so OP makes time to create a repo. Please.
- gnabgib 3mo agoPerhaps you could read the guidelines: https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- heliskyr2 3mo ago[flagged]