Skip to content

Nuxt module that automatically configures Nitro for `bun build --compile`, generating a standalone executable binary from your Nuxt app.

Notifications You must be signed in to change notification settings

jprando/nuxt-bun-compile

Repository files navigation

Nuxt Bun Compile

Socket Badge NPM Downloads NPM Last Update NPM Type Definitions NPM Version (with dist tag) Libraries.io dependency status for latest release NPM License

Logo Nuxt Bun Compile

🚀 Nuxt module that automatically configures Nitro for bun build --compile, generating a standalone executable binary from your Nuxt app — zero runtime dependencies needed.

Leia em Português


⚡ Quick Start

Step 1: Install the module

bun nuxt add nuxt-bun-compile

Step 2: Build your binary

bun run -b build

Why is -b required?

If you encounter memory issues during build

Step 3: Run your binary

./nuxtbin
# Listening on http://localhost:3000

Done! Your standalone binary is ready.

That's it. One binary. No node_modules. No runtime. Just your app.



✅ Requirements

  • Bun 1.3.9+ (for the --compile step)
  • Nuxt 3.x / 4.x
  • Node 24+ (when not using Bun as runtime)

📄 License

MIT

About

Nuxt module that automatically configures Nitro for `bun build --compile`, generating a standalone executable binary from your Nuxt app.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •