nextdeploy

module
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT

README


NextDeploy

NextDeploy is an open-source CLI and daemon for deploying and managing Next.js applications on your own infrastructure. No lock-in. No magic. Just Docker, SSH, and full control.

[!WARNING] Experimental / Hobby Project: NextDeploy is currently a hobby project and is not intended for production use as of now. Use it at your own risk for testing and personal projects.


Why NextDeploy?

  • Builds Docker images optimized for Next.js
  • Ships to any VPS (Hetzner, DigitalOcean, AWS, bare metal) via SSH
  • Injects secrets securely with Doppler
  • Streams logs and metrics from running containers
  • Runimage: test production builds locally with real secrets
  • Daemon support: health checks, logs, and automation on servers

One tool. One config. Full transparency.


Installation

There are multiple ways to install NextDeploy:

You can download the pre-compiled binaries for Windows, macOS, and Linux from the GitHub Releases page. Simply download the appropriate binary for your system architecture, extract it, and place it in your PATH.

2. For Go Developers

If you have Go installed on your system, you can easily install the CLI directly:

Install CLI (Windows, macOS, Linux):

go install github.com/Golangcodes/nextdeploy/cli@latest

Install Daemon (Linux only):

go install github.com/Golangcodes/nextdeploy/daemon/cmd/nextdeployd@latest
3. Bash Install Script (Linux Servers)

For a quick setup on a Linux server, you can use our installation script to fetch the latest daemon and CLI securely:

curl -fsSL https://nextdeploy.one/install.sh | bash

Quick Start

nextdeploy init       # Scaffold Dockerfile + nextdeploy.yml
nextdeploy build      # Build production Docker image
nextdeploy runimage   # Run locally with Doppler secrets
nextdeploy prepare # Prepare a fresh VPS
nextdeploy ship       # Deploy to your server
nextdeploy serve      # Serve app online

Test with production config before shipping:

nextdeploy runimage --prod

Secrets Done Right

NextDeploy is Doppler-first. No more .env files:

  • Secrets injected at deploy/runtime
  • Fully encrypted and scoped (dev/staging/prod)
  • Update, restart, done
  • Works the same locally and in CI

Philosophy

Other platforms abstract until you lose control. NextDeploy flips that. You own the pipeline. You see every step.

No black boxes. No middleware. Just you and your server.

Inspired by: Kamal - We loved their approach to self-hosted deployments and specialized it for Next.js.


Perfect For Developers Who

  • Deploy Next.js or full-stack apps to VPS/bare metal
  • Want transparent, auditable DevOps
  • Need strong security practices without complexity
  • Care about simplicity over vendor lock-in

Roadmap

  • serverless deployment with aws
  • Doppler integration
  • Logs and metrics
  • runimage for local testing
  • CI/CD via GitHub webhooks
  • Rollbacks and release tracking
  • Stack plugins (Rails, Go, Bun, Astro...)
  • Dashboard and multitenant support


Community

We welcome contributors:

  • Systems engineers (daemon/logging)
  • Security reviewers
  • Product-minded devs

NextDeploy — Transparent Deployment, Under Your Control.

Directories

Path Synopsis
cli
NextDeploy CLI is a command-line interface for interacting with and managing Next.js app deployments across self-hosted infrastructure.
NextDeploy CLI is a command-line interface for interacting with and managing Next.js app deployments across self-hosted infrastructure.
cmd
NOTE: cross compile safe
NOTE: cross compile safe
daemon
cmd/decrypt command
cmd/nextdeployd command
internal/daemon
Package daemon — metrics.go Exposes internal daemon state via the standard expvar package on localhost:6060/debug/vars.
Package daemon — metrics.go Exposes internal daemon state via the standard expvar package on localhost:6060/debug/vars.
config
NOTE: cross compile safe
NOTE: cross compile safe
fs
git
nextcore
TODO: decouple this
TODO: decouple this
sanitizer
Package sanitizer provides security-focused sanitization functions to prevent common vulnerabilities like command injection, path traversal, and other security issues.
Package sanitizer provides security-focused sanitization functions to prevent common vulnerabilities like command injection, path traversal, and other security issues.
updater
Package updater provides GitHub release-based update checking and self-update functionality for the NextDeploy CLI and Daemon.
Package updater provides GitHub release-based update checking and self-update functionality for the NextDeploy CLI and Daemon.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL