Hatch.surf web application
Go to file
SoftwareEngineer 027e9a4a49 Add E2E smoke test — one-command DoD gate (ELF-23 Task 8)
TestSmokeE2E starts a real server and exercises the full product flow:
- Phase 1: Health check (liveness probe)
- Phase 2: Capture all 5 HTTP methods, verify stored
- Phase 3: Inspect page renders HTML with request cards, replay UI, SSE script
- Phase 4: SSE stream receives live events on capture
- Phase 5: Mock configuration and response (set mock → capture returns mock)
- Phase 6: Replay a captured request to a sink server
- Phase 7: Edge cases (query params, binary body, SSRF protection)

The one-command gate: go test ./cmd/hatch -run TestSmokeE2E -v

Also fix .gitignore: the bare 'hatch' entry was matching cmd/hatch/
directory, preventing test files from being tracked. Narrowed to /hatch
(root binary only) and hatch.exe.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-22 19:22:56 +02:00
.github/workflows feat: foundation Go module, HTTP server, Docker packaging 2026-06-22 14:31:27 +02:00
brand brand: add Hatch v1 wordmark, mark, favicon, banner, OG image, usage guide 2026-06-22 16:46:11 +02:00
cmd/hatch Add E2E smoke test — one-command DoD gate (ELF-23 Task 8) 2026-06-22 19:22:56 +02:00
docs brand: add Hatch v1 wordmark, mark, favicon, banner, OG image, usage guide 2026-06-22 16:46:11 +02:00
internal Add mock handler tests and fix env leakage in main_test.go 2026-06-22 19:13:12 +02:00
.dockerignore feat: foundation Go module, HTTP server, Docker packaging 2026-06-22 14:31:27 +02:00
.env.example feat: foundation Go module, HTTP server, Docker packaging 2026-06-22 14:31:27 +02:00
.gitignore Add E2E smoke test — one-command DoD gate (ELF-23 Task 8) 2026-06-22 19:22:56 +02:00
Caddyfile feat: foundation Go module, HTTP server, Docker packaging 2026-06-22 14:31:27 +02:00
CONTRIBUTING.md Engineering foundation: README, CONTRIBUTING, tech stack, ADR template, onboarding, CI placeholder, first engineer role 2026-06-22 05:58:34 +02:00
docker-compose.yml feat: foundation Go module, HTTP server, Docker packaging 2026-06-22 14:31:27 +02:00
Dockerfile feat: mock endpoint — configure response per endpoint 2026-06-22 14:32:53 +02:00
go.mod feat: add one-click replay for captured requests 2026-06-22 16:58:42 +02:00
go.sum feat: add one-click replay for captured requests 2026-06-22 16:58:42 +02:00
README.md feat: foundation Go module, HTTP server, Docker packaging 2026-06-22 14:31:27 +02:00

El Foundation

Engineering repository for El Foundation.

About

El Foundation builds institutions that outlast their founders. We create technology and organizations that compound in value over time. This repository is the source of truth for our engineering work.

Getting Started

  1. Read the company charter to understand why we exist.
  2. Read the operating model to understand how decisions are made.
  3. Read CONTRIBUTING.md before making any changes.

Repository Layout

├── .github/workflows/    # CI/CD definitions
├── docs/
│   ├── company/          # Founding documents (charter, org, etc.)
│   ├── engineering/      # Engineering standards and decisions
│   └── adrs/             # Architecture Decision Records
├── apps/                 # Application code (TBD — created when product work begins)
├── packages/             # Shared libraries and packages
└── scripts/              # Automation and utility scripts

Hatch — Deploy in one command

Hatch is a self-hostable HTTP request inspector + mocker. Ship it to any VPS with Docker.

Quick start (local dev, no HTTPS)

docker compose up --build
# Hatch UI: http://localhost:8080
# Capture endpoint: http://localhost:8080/{endpoint-id}

Production (with HTTPS via Caddy)

# Set your domain name
cp .env.example .env
# Edit HATCH_HOSTNAME in .env to your real domain

# Start Hatch + Caddy (auto-issues Let's Encrypt cert)
docker compose --profile with-caddy up -d --build
# Hatch UI: https://{your-domain}
# Capture endpoint: https://{your-domain}/{endpoint-id}

Architecture

Internet → :443 (Caddy) → hatch:8080 (Go binary, internal network)
                 │
                 ├─ Auto TLS (Let's Encrypt, or self-signed for localhost)
                 ├─ Reverse proxy with security headers
                 └─ JSON access logs to stdout

Caddy terminates TLS and reverse-proxies to the Hatch Go binary. The Hatch container only listens on 127.0.0.1:8080 — it's never directly exposed to the internet.

Technology Stack

See docs/engineering/tech-stack.md for current choices and rationale.

Contributing

See CONTRIBUTING.md.

License

Proprietary — All rights reserved.