Pindakaas

Started June 2026 · Open-source hackathon project (superseded)

A self-hosted ngrok alternative in Go. Exposes a local web server on a public HTTPS subdomain over plain OpenSSH, with no custom client required.

  • SSH reverse tunnels
  • Zero client install
  • Live SSE dashboard
Role
Design and implementation (hackathon project)
Stack
  • Go
  • x/crypto/ssh
  • Echo v5
  • SQLite
  • sqlc
  • goose
  • gomponents
  • Svelte
  • Tailwind CSS
  • Vite
  • Ansible
The Pindakaas web dashboard showing two online tunnels and two inactive tunnels alongside a terminal running an SSH reverse tunnel that streams forwarded HTTP requests and status codes. Demo data.

What?

Pindakaas exposes a local web server to the public internet over standard SSH. You create a tunnel in the web UI, get a credential and a stable subdomain, and connect with plain OpenSSH:

ssh -p 42069 -R 0:localhost:3000 user:password@host

Public HTTPS requests to https://<subdomain>.<base-domain> are reverse-proxied through the SSH session, and request logs stream straight back to your terminal. The name is a pun on Pinggy (the commercial service it replaced) and pindakaas, the Dutch word for peanut butter.

Why?

At Day Job Inc., we build voice agents with Pipecat and Twilio. Testing an agent locally meant letting Twilio reach a container on a developer’s laptop for both webhooks and WebSocket media streams, which we initially did with Pinggy.

I built Pindakaas during a company hackathon in Mallorca as a self-hosted replacement, racing a colleague who built a cloud-native version in Rust. Neither tunnel ended up in production: shortly after, we moved local testing off phone calls onto direct WebRTC connections relayed through Amazon Kinesis Video Streams’ managed TURN servers, which removed the need for public HTTP tunnels altogether.

How?

Custom SSH server

Built on Go’s golang.org/x/crypto/ssh, the server needs nothing beyond stock OpenSSH on the client. Credentials are passed in the SSH username (username:password) and checked against column-encrypted records in SQLite during authentication. Rejected clients get an SSH banner explaining what went wrong instead of a bare Permission denied.

When a client sends a tcpip-forward request, it registers in an in-memory map keyed by subdomain using an atomic “last connection wins” rule. A reconnect replaces the previous session, notifies it, and closes it. During teardown, deregistration checks that the map entry still points to the same connection so an evicted session can’t accidentally delete its replacement.

Reverse proxy over SSH channels

The HTTP server extracts the subdomain from the Host header, looks up the active tunnel, and forwards requests through Go’s httputil.ReverseProxy. Each tunnel implements http.RoundTripper by opening a forwarded-tcpip channel over the SSH connection per request, which gives us standard header rewriting and streaming while preserving the public Host header. Plain HTTP redirects to HTTPS with HSTS enabled, and HTTP/2 can be turned off when WebSocket upgrades need HTTP/1.1 connection hijacking.

Web UI and deployment

Admins sign in with Google OIDC to create and delete tunnels, which receive adjective-noun subdomains. The UI is server-rendered in Go with gomponents and enhanced with Svelte 5, and online/offline states update live over Server-Sent Events published by the tunnel registry. Everything persists in SQLite with sqlc and goose, deployed via a separate Ansible repository.