# nibrun > One-click deployment for any single-binary app. Each compiled binary gets a microVM of its own, > a persistent filesystem, and an HTTPS URL. No Dockerfile, no YAML, no cluster. ## What you get - **A machine to itself.** One microVM per app, 1 vCPU and 256 MiB by default. Nothing else runs in it. - **Just write to the disk.** `data/` is yours — a SQLite file, uploads, both. 8 GiB, and it survives every redeploy. - **Take it all with you.** One click: the binary and its whole disk, as one `.tar.gz` — and a new app can be created holding it again. - **A URL right away.** `https://.nibrun.app`, the moment it boots. ## Hosting location Apps and persistent storage are hosted in Frankfurt, Germany (AWS `eu-central-1`). Uploaded binaries, data imports, exports and platform database backups are stored in the same region. HTTPS requests pass through Cloudflare's global network. ## Pricing The first 3 apps are free forever, and each app after that is $1/month. Every app gets the same machine either way — 1 vCPU, 256 MiB, 8 GiB disk. Past 10 apps, or for a bigger machine, email hello@nibrun.com. Custom domains are free for now and will become a paid feature. Pricing has not been announced. ## Deploying Drag the binary onto https://app.nibrun.com, or: ```sh curl -fsSL https://nibrun.com/install.sh | sh nib login nib run ./my-server --name my-app ``` Redeploy onto the same app with `nib run ./my-server --app my-app`. Without `--app`, a non-interactive shell creates a second app rather than replacing the first. ### GitHub Actions GitHub Actions can deploy an existing app without an API key or `nib login` in CI. Configure a trusted repository and workflow, give the workflow `id-token: write`, then deploy with `nib run ./my-server --github-trusted-oidc --app-id APP_ID`. Requires a CLI release with GitHub OIDC support; deployments use the app’s saved arguments and configuration. See the [GitHub Actions example](https://github.com/ilbertt/nibrun/blob/main/skills/deploy-to-nibrun/SKILL.md#github-actions). ## Starting with data An app can be created with `data/` already holding something — a seeded SQLite file, a corpus, an export of another app: ```sh nib run ./my-server --name my-app --data-folder ./seed ``` It takes a local folder, a `.tar.gz` or `.zip` file, or an HTTPS URL to either archive format. Remote archives are fetched by nibrun. The root of the archive becomes the root of `data/`. Up to 1 GiB, and only as the app is created: ```sh nib run ./my-server --name my-app --data-folder https://example.com/seed.tar.gz ``` For an app where the first visitor claims the admin account, try seeding that setup before deploying, if the app supports it. Use a compatible native build or run from source: a Linux binary cannot run directly on macOS. Check that the same app version can share data between the local and Linux builds. Use a documented initialization command, or complete setup on localhost and stop the app cleanly, then deploy the configured folder with `--data-folder` and the Linux binary. Supply any environment values the saved data needs on that first deploy too. If seeding is unavailable, check for first-boot admin configuration; otherwise, first-visitor setup is reachable when the public URL goes live. `nib apps export ./my-app.tar.gz --app my-app` goes the other way: `data/`, the binary, and a `.env` of the variables the app was deployed with. Unpack it, and `--data-folder ./data` gives a second app the same disk. ## A folder of static assets Needs no binary of its own: `nib` is one, and `nib serve` serves whatever folder it is given on the port the guest hands it. The folder goes up as `data/`, the CLI's own Linux build as the binary: ```sh nib run "https://github.com/ilbertt/nibrun/releases/latest/download/nib-linux-x64 serve /app/data" --name my-site --data-folder ./dist ``` `serve /app/data --single-page` answers every miss with the root `index.html`, for a SPA. The assets go up only as the app is created, so a rebuilt site is a new app. ## What the binary can count on Linux x86_64 (glibc). Working directory `/app`. The persistent volume is `/app/data`; everything outside it, `/tmp` included, is lost on restart. `PORT` is set by the guest and the binary must listen on it, on `0.0.0.0`. ## The tradeoffs One microVM per app: no horizontal scaling, no load balancing. A deploy stops the old VM before starting the new one, so it is a few seconds of downtime rather than blue/green. An app sleeps after five minutes without incoming traffic and wakes on the next request in ~120 ms. Background jobs, timers, scheduled emails and outbound polling do not run while it sleeps. Owners cannot change activation through the CLI, API or dashboard. Apps that need background work to run on schedule are not currently a fit. It fits a single-binary app that owns its own state; it does not fit anything that has to be several machines. ## Links - [Skill: deploy-to-nibrun](https://github.com/ilbertt/nibrun/blob/main/skills/deploy-to-nibrun/SKILL.md) — the full guest contract, every command, and when not to use nibrun. Install it with `npx skills add ilbertt/nibrun`. - [bun-full-stack-starter](https://github.com/ilbertt/bun-full-stack-starter) — a template already shaped for this: an Elysia API and a React SPA compiled into one binary. - [One-click deploys](https://nibrun.com/apps) — open source apps that already ship a single binary, deployed straight from their release assets. The catalog is also served as Markdown at `https://nibrun.com/apps.md`, and every app's page at `/apps/.md`. - [Blog](https://nibrun.com/blog) — every post is also served as Markdown, at its own URL with `.md` on the end. - [Dashboard](https://app.nibrun.com) - [Source](https://github.com/ilbertt/nibrun)