Skip to content
homeport

Bun

Bun servers and static builds

homeport installs with your bun.lock and runs bun run build. Compile your server to a binary with bun build --compile, run it on Bun as your start script does, or build a static site. It is served any of those ways.

What homeport reads

bun.lock
Installs exactly what the lockfile says. The Bun version comes from packageManager or .bun-version.
package.json build script
Run as your build. A binary it compiles runs as your app; otherwise your start script runs on Bun, or a site folder (build, dist or out) is served as files.
Vite, Astro, SvelteKit (static)
Recognised as static builds, served from their output folder with long caching on fingerprinted assets.

What you get

  • A compiled Bun binary: no node_modules to ship
  • Elysia, Hono or any Bun server, run with its production dependencies
  • Static sites served as files, with nothing running behind them
  • You pay only while it’s in use, and nothing while nobody is using it
  • HTTPS on a homeport.run address, and your own domain on paid plans

Start from bun-api

A Bun HTTP API compiled to a single binary, ready to deploy.

Open on GitHub