Listens on ports 80 and 443 and routes every incoming request to the right place β€” a static folder, a port, or any HTTP service.

Get started

netget is the entry point of a node. Install the global CLI (npm), then run first-time setup.

Install

npm i -g netget
netget --version

Command line

netget         # interactive CLI menu
netget init    # first-time setup
netget reload  # reload (or start) the gateway
netget restart # alias for reload

netget init

Run once the first time you set up a gateway on a machine. Safe to re-run; each step is idempotent:

  1. HTTPS cert β€” local cert via mkcert (skipped if one exists).
  2. Gateway config β€” writes/refreshes the OpenResty config from your domain map.
  3. Starts the gateway β€” installs com.netget.openresty (launchd on macOS / systemd on Linux). Needs ports 80/443; prompts for sudo in the terminal.
  4. Gateway identity claim β€” first-run only: establishes your .me identity as gateway owner (hash only; credentials are never stored).

When it finishes, start something behind the gateway (otherwise you get 502s):

npm install -g monad.ai
monads start local

Domain map

Live routing table; a Lua timer checks it every second. Changes take effect immediately β€” no restart needed:

{
  "domains": {
    "suis-macbook-air.local": { "type": "static", "root": "/Users/suign/.get/html" },
    "other-service.local": { "type": "proxy",  "target": "127.0.0.1:8161" }
  }
}
Type Behavior
static Serves files from root. index.html fallback.
proxy Forwards to target with standard proxy headers.
server Same as proxy. Alias for app servers.

Runtimes

  • πŸ”· TypeScript β€” npm package netget
  • πŸ¦€ Rust β€” not available yet
  • 🐍 Python β€” not available yet

Docs


MIT β€” neurons.me Β· GitHub Β· npm