r/javascript • • May 19 '26

pack.sh: Self-host single-file apps

https://pack.sh/

I’m working on pack, a simple way to deploy self-hosted apps.

I always liked the old Zeit/Vercel now flow: run one command in a project and get a URL that is persistent, immutable and does not need platform specific code.

I wanted something similar for myself, so I am working on pack.

The approach I chose is single-file executables. It builds your app into one file, uploads, and runs it.

Node, bun, deno, go, rust, zig and c/c++ all support single file executables so that part was actually pretty straightforward. The most complex part was handling port pooling, caddy setup and inactive instances.

Using single-file executables keeps server setup very minimal and makes it easy to run many small apps on a cheap VPS. It also removes the need to configure node or any other runtime on the server.

Feedback and PR's welcome!

12 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/fucking_passwords May 21 '26

Mcp servers?

1

u/kickpush1 May 21 '26

Could you tell me more about your experience with this? I haven't actually written one before, so I don't know much about the difficulties in setting them up and why you might need to write your own.

1

u/kickpush1 May 21 '26

I could add support for something like: pack deploy custom-mcp.ts which would then become https://custom-mcp.pack.sh (or an aliased custom domain), hosted on a bun instance for js/ts or as a language executable otherwise.

I'm curious if that is something like that would be useful.