Remix.run Logo
Show HN: Socket to Me, a static file server that runs in the browser(socket2.me)
14 points by markjivko a day ago | 4 comments

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 a day ago | parent [-]

Nice and easy! Is there a repo?

markjivko a day ago | parent [-]

There'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 20 hours ago | parent [-]

I 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 20 hours ago | parent [-]

Perhaps you could read the guidelines:

https://news.ycombinator.com/newsguidelines.html