Surge

Open source

A command-line tool for publishing static sites to a CDN in one command, with a free tier and a $30 per month Professional plan.

surge.sh
Surge homepage screenshot
GitHub stars
3.1k
Last 30 days
+11(+0%)
Last commit
today
Repository age
12 years
Version
v0.19.0
Self-hosted
Yes

About Surge

Surge is a command-line publishing tool for static web projects. Running surge in a project directory uploads the HTML, CSS and JS and serves them on a surge.sh subdomain or a custom domain. It installs through npm, and the homepage counts 16,883,233 deployments, a figure the vendor publishes itself.

It is designed to fit existing build tooling, with guidance for Grunt, Gulp, npm run scripts, Git hooks, Jekyll, static site generators and CI services such as Travis CI and CircleCI. Collaborators can be added through the CLI. Every project includes custom domain support, free SSL for surge.sh subdomains, pushState support for single page apps and custom 404 pages.

Key features

  • Single-command publishing of HTML, CSS and JS
  • Deploys to a production-quality CDN
  • Custom domains, SSL and single page app support
  • Works with Grunt, Gulp and npm run scripts
  • Team collaborators added through the CLI
  • Automatic deployment from CI services

Good fit for

  • Publishing a static site from the command line
  • Deploying a single page app from CI
  • Previewing Jekyll or other generated sites
Tags
static hosting
deployment
cli
front-end
cdn
npm
static sites

Surge: questions and answers

What is Surge used for?
Surge is a command-line tool for publishing static sites to a CDN in one command, with a free tier and a $30 per month Professional plan. It is a good fit for publishing a static site from the command line, deploying a single page app from CI and previewing Jekyll or other generated sites.
Is Surge open source?
Yes. Surge is open source. Its source code is on GitHub at sintaxi/surge and is written mainly in JavaScript.
Is Surge free?
Yes. Surge is open source, so the software itself is free to use. A managed cloud version is also available.
Can I self-host Surge?
Yes. Surge can be self-hosted on your own server or infrastructure.
What is Surge an alternative to?
Surge is an open-source alternative to Cloudflare Pages, GitHub Pages, Proxyman and Charles Proxy. Other open-source alternatives to Cloudflare Pages include Coolify, Dokploy and Openship.
Is Surge actively maintained?
Yes. The most recent commit to Surge was on 22 November 2026, and the latest release is v0.19.0, published on 18 March 2017. The project has 3.1k stars on GitHub, with 11 added in the last 30 days.

Open-source alternatives to Surge

See all

SaaS alternatives to Surge

See all