Instant tunnels to your localhost. Zero DNS, zero accounts, pure simplicity.
The self-hosted, single-binary ngrok alternative with automated link previews and Twitter-style dashboard.
# 1. On your VPS ($3/mo, no domain needed)
maek server -p 8080
# 2. On your local machine (macOS / Linux / Windows)
curl -fsSL http://<VPS-IP>:8080/_maek/install.sh | sh
maek agent -s ws://<VPS-IP>:8080 -t http://localhost:3000Most tunneling tools either lock you into monthly subscriptions, require account registrations, or force you through complicated wildcard DNS and TLS certificate setups.
maek solves this cleanly. You run one tiny binary on a VPS, and it gives you unlimited tunnels with zero external dependencies.
| Feature | maek |
ngrok (Free) |
Cloudflare Tunnel | frp |
|---|---|---|---|---|
| Account / Sign-up | None | Required | Required | None |
| Custom Domain / Wildcard DNS | Not needed (IP-based) | Random subdomains | Domain required | Wildcard DNS required |
| Tunnel Limits & Pricing | Unlimited (Free & OSS) | 1 tunnel / rate limits | Free | Self-hosted |
| Private / Airgap Network | Fully self-contained | Cloud only | Cloud only | Manual binary copy |
| Client Installation | One-line script from VPS | Cloud download | Package manager | Manual configuration |
| Web Catalog Dashboard | Twitter-style UI | Web dashboard | Cloud console only | Basic admin UI |
| Auto Metadata Scraping | Title, icon, description | None | None | None |
| Social / Messenger Previews | Slack, Discord, KakaoTalk | None | None | None |
| WebSocket & Vite HMR | Full Yamux multiplexing | Yes | Yes | Yes |
Expose multiple private services through a single public VPS IP without purchasing custom domains, managing wildcard DNS (*.domain.com), or dealing with TLS certificates.
- 3-Way Routing Engine: Transparent session cookies for browsers, direct vanity URLs (
/_maek/:name), andX-Maek-Serviceheaders for APIs and automated scripts. - Smart Messenger Previews: Direct links serve automated OpenGraph cards with embedded thumbnails for Slack, Discord, and KakaoTalk bots.
- Isolated Floating Widget: Injected into HTML via Shadow DOM with magnetic corner snapping and a one-click disconnect button.
Bypass NATs and restrictive corporate firewalls with a single outbound WebSocket connection over standard ports (80/443)—no port forwarding or inbound firewall openings required.
- High-Throughput Streams: Multiplexes concurrent HTTP requests and high-volume assets over a single persistent TCP tunnel.
- Full WebSocket & HMR Support: Seamlessly proxies modern developer environments including Next.js HMR, Vite, Server-Sent Events (SSE), and live WebSockets.
- Resilient Auto-Reconnection: Re-establishes dropped connections automatically with exponential backoff.
A pure Go static binary (~15MB, CGO-free) that requires zero configuration files, zero account sign-ups, and zero third-party dependencies.
- Autonomous Target Inspection: The agent inspects your local target on startup to automatically extract the service title, description, and favicon without manual flags.
- Self-Hosted Embedded Installers: The server embeds multi-platform client binaries (
go:embed) and serves its own one-line install scripts (curl ... | shorirm ... | iex), making it 100% operational in air-gapped networks without callingapi.github.com.
flowchart TD
subgraph Clients ["Clients & Internet"]
Browser["Browser"]
Curl["CLI / curl"]
Bot["Messenger Bot<br/>(Slack, Discord, Kakao)"]
end
subgraph VPS ["Public VPS (maek server)"]
Router["Reverse Proxy Router"]
Catalog["Web Dashboard<br/>(Service Catalog)"]
OG["OpenGraph Engine<br/>(Rich Link Previews)"]
YamuxServer["Yamux Multiplexer"]
end
subgraph Local ["Private Network (Local Machine)"]
Agent["maek agent"]
Target["Target Service<br/>(Next.js, Vite, FastAPI, ...)"]
end
%% Client Traffic Flows
Browser -- "GET / (No Cookie)" --> Catalog
Browser -- "GET / (Cookie: maek_service)" --> Router
Browser -- "GET /_maek/:name (Direct URL)" --> Router
Curl -- "Header: X-Maek-Service" --> Router
Bot -- "Crawl /_maek/:name" --> OG
%% Server Internal Routing
Router --> YamuxServer
%% Tunnel & Local Forwarding
Agent -. "Outbound WebSocket (/_maek/ws)" .-> YamuxServer
YamuxServer <== "Multiplexed Yamux Streams<br/>(HTTP & WebSockets)" ==> Agent
Agent <== "Forward HTTP / TCP" ==> Target
Run the single binary on any machine with a public IP:
./maek server -p 8080Or via Docker:
docker run -d --name maek -p 8080:8080 --restart always ghcr.io/gosuda/maek:latestOn your development machine, install the CLI with a single command straight from your server:
macOS / Linux:
curl -fsSL http://<VPS-IP>:8080/_maek/install.sh | shWindows (PowerShell):
irm http://<VPS-IP>:8080/_maek/install.ps1 | iexExpose any local port (e.g. Next.js, Django, FastAPI, Spring Boot on port 3000):
# Zero-config (metadata auto-detected from target)
maek agent -s ws://<VPS-IP>:8080 -t http://localhost:3000
# Or with custom name and ID
maek agent -s ws://<VPS-IP>:8080 -n dev-app -i my-app -t http://localhost:3000- Web Catalog: Open
http://<VPS-IP>:8080/in your browser. - Direct URL: Share
http://<VPS-IP>:8080/_maek/dev-appwith your team! - cURL:
curl -H "X-Maek-Service: dev-app" http://<VPS-IP>:8080/api/health
Download directly from your running maek server:
# macOS & Linux
curl -fsSL http://<VPS-IP>:8080/_maek/install.sh | sh
# Windows (PowerShell 5.1+)
irm http://<VPS-IP>:8080/_maek/install.ps1 | iexgo install github.com/gosuda/maek/cmd/maek@latestgit clone https://github.com/gosuda/maek.git
cd maek
make build# Build image
make docker-build
# Run container
make docker-runUsage: maek server [flags]
Flags:
-addr, -p string Address or port to listen on (default ":8080")
Usage: maek agent [flags]
Flags:
-server, -s string Central maek server URL
-alias, -a string Service alias (optional, auto-detected from target)
-desc, -d string Short description (optional, auto-detected)
-thumb string Thumbnail URL or image avatar (optional, auto-detected)
-target, -t string Local target HTTP URL (default "http://localhost:3000")
| Endpoint | Method | Description |
|---|---|---|
/ |
GET |
Catalog Web UI or proxy to selected service |
/_maek |
GET |
Clears active routing cookie and returns to catalog |
/_maek/<id|alias> |
GET |
Direct route; dashboard-generated links use ID, duplicate aliases resolve oldest-active-first |
/_maek/ws |
GET |
Version-negotiated Agent WebSocket endpoint |
/_maek/api/services |
GET |
Active service metadata including id and alias |
/_maek/thumb |
GET |
Thumbnail endpoint |
/_maek/install.sh |
GET |
macOS / Linux installer |
/_maek/install.ps1 |
GET |
Windows installer |
/_maek/download |
GET |
Binary download endpoint |
/_maek/version |
GET |
Server binary version information |
Distributed under the MIT License. See LICENSE for more information.