Listens on ports 80 and 443 and routes every incoming request to the right place β a static folder, a port, or any HTTP service.
β‘ Installing NetGetInstall the CLI, set up OpenResty, and get local.netget running.
npm i -g netget
π₯οΈ local.netgetOperator surface β routing, monad mesh, logs, gateway control.http://local.netget
πΊοΈ Domain RoutingOpenResty, domain-map, and SSL provisioning.domain-map.json
π Multi-DomainOne codebase serving multiple domains with shared sources.shared/ + domains/
π·οΈ whatever.localhostHow <label>.localhost names are routed today.ana.localhost
π Signed CapabilitiesPer-request .me proofs for gateway control.identity Β· proof Β· capability
𧬠Digital Space IdentityInfographic on signed gateway capabilities.T β₯ A
π TypeDocsFull VitePress documentation and API reference.Typescript/typedocs/
π¦ npmInstall the global CLI.npm i -g netget
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:
- HTTPS cert β local cert via
mkcert(skipped if one exists). - Gateway config β writes/refreshes the OpenResty config from your domain map.
- Starts the gateway β installs
com.netget.openresty(launchdon macOS /systemdon Linux). Needs ports 80/443; prompts forsudoin the terminal. - Gateway identity claim β first-run only: establishes your
.meidentity 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