MCPcopy
hub / github.com/sintaxi/surge

github.com/sintaxi/surge @v0.19.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.19.0 ↗
24 symbols 85 edges 46 files 0 documented · 0%
README

surge(.sh)

Publish web apps to a CDN with a single command and no setup required.

NPM

This is the CLI client for the surge.sh hosted service. It’s what gets installed when you run npm install -g surge.

This CLI library manages access tokens locally and handles the upload and subsequent reporting when you publish a project using surge.

Usage

It’s easier to show than tell so let’s get to it! The following command will deploy the current working directory to the surge servers where the application will be available at sintaxi.com.

$ surge ./ sintaxi.com

Run surge --help to see the following overview of the surge command...

  Surge – Single-command web publishing. (v0.17.6)

  Usage:
    surge [options]

  Options:
    -p, --project       path to projects asset directory (./)
    -d, --domain        domain of your project (<random>.surge.sh)
    -a, --add           adds user to list of collaborators (email address)
    -r, --remove        removes user from list of collaborators (email address)
    -V, --version       show the version number
    -h, --help          show this help message

  Shorthand usage:
    surge [project path] [domain]

  Additional commands:
    surge whoami        show who you are logged in as
    surge logout        expire local token
    surge login         only performs authentication step
    surge list          list all domains you have access to
    surge teardown      tear down a published project

  Guides:
    Getting started     surge.sh/help/getting-started-with-surge
    Custom domains      surge.sh/help/adding-a-custom-domain
    Additional help     surge.sh/help

  When in doubt, run surge from within your project directory.

CDN Features

  • Custom CNAME & custom SSL
  • Fallback 404.html pages
  • HTML5 mode 200.html pages
  • Stays out of gits way
  • Supports clean URLs && trailing slashes /
  • Implicit signup
  • Supports CNAME files

If you’re using tools like Grunt, Gulp, or a static site generator like Jekyll, your files are output into a compile directory like _site/, build/, or www/. From the root of your project, pass Surge the path to this directory to upload your compiled assets.

surge www

You may also add this directory to your .gitignore to keep your compiled assets out of your Git history.

Core symbols most depended-on inside this repo

next
called by 37
lib/middleware/util/skin.js
parse
called by 10
lib/surge.js
abort
called by 10
lib/middleware/util/helpers.js
getDomain
called by 3
lib/middleware/stats.js
upload
called by 2
lib/middleware/ssl.js
stats
called by 2
lib/middleware/stats.js
card
called by 2
lib/middleware/util/helpers.js
getFile
called by 2
lib/middleware/util/creds.js

Shape

Function 24

Languages

TypeScript100%

Modules by API surface

lib/surge.js4 symbols
lib/middleware/util/creds.js3 symbols
lib/middleware/ssl.js3 symbols
lib/middleware/util/helpers.js2 symbols
lib/middleware/stats.js2 symbols
lib/middleware/deploy.js2 symbols
lib/middleware/util/skin.js1 symbols
lib/middleware/teardown.js1 symbols
lib/middleware/size.js1 symbols
lib/middleware/project.js1 symbols
lib/middleware/plus.js1 symbols
lib/middleware/email.js1 symbols

Dependencies from manifests, versioned

commander2.9.0 · 1×
du0.1.0 · 1×
fstream-ignore1.0.2 · 1×
is-domain0.0.1 · 1×
minimist1.1.1 · 1×
mocha* · 1×
moniker0.1.2 · 1×
netrc0.1.4 · 1×
nixt0.4.1 · 1×
progress1.1.8 · 1×
prompt0.2.14 · 1×
read1.0.5 · 1×

For agents

$ claude mcp add surge \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact