Release

Introducing TypeDock in Go: A Single-Binary, Minimal-Attack-Surface CMS for the AI Era

If you build and maintain websites for clients or internal teams, you know the gap that exists today.

Static site generators are great for personal developer blogs, where Git pull requests and Markdown files are fine. Client and corporate websites are different: non-engineers need a real browser editor to publish pages, schedule posts, upload media, and manage navigation — and budgets still expect the site to run cleanly on $5 shared hosting or a small container.

For twenty years, the default answer to that requirement has been WordPress. And for twenty years, every agency that shipped a WordPress site inherited the same operational tax: PHP runtime upgrades, theme templates executing arbitrary server code, dozens of third-party plugins hooking into every request, and weekly vulnerability patches.

Now add autonomous scanners and AI-assisted exploit automation probing production sites around the clock. Maintaining an unrestricted runtime for a brochure site or corporate blog no longer makes engineering sense.

Today we are releasing TypeDock v0.1.0 — completely rebuilt in pure Go (CGO_ENABLED=0) as a single static binary.

Why We Rebuilt TypeDock in Go

The earlier TypeDock prototype proved out the architecture in PHP (stopping at RC7). Because the user base was still small, we took the chance to reset the foundation cleanly before 1.0 and port the entire system into Go.

Shipping TypeDock as a single static Go binary eliminates an entire class of deployment and maintenance work:

  • Zero runtime dependencies on the server: no PHP version drift, no Composer tree, no Node build step on production hosts.

  • Native speed and low memory footprint: runs comfortably on a $5 shared host via Apache FastCGI (mod_fcgid on Linux amd64/arm64 and FreeBSD amd64), as a standalone HTTP server, or in Docker.

  • All four database drivers built in: SQLite (default WAL mode), MySQL, PostgreSQL, and remote libSQL ship inside the same binary.

Defense: Minimal Attack Surface by Architecture

Instead of bolting security plugins onto an unrestricted runtime, TypeDock constrains what themes, plugins, and content are allowed to do:

  • Declarative themes with zero code execution: Themes consist strictly of theme.json, Pongo2 templates, and static CSS/JS assets. A theme cannot run arbitrary Go code, shell out, read secrets, or query the database directly.

  • Sandboxed JavaScript plugins (`goja`): Drop-in plugins run inside an isolated ES sandbox with strict execution timeouts, panic/exception isolation, guarded database access (db_guard), exclusive capability collision detection (provides: ["mail"], provides: ["captcha"]), and iframe-isolated admin screens with configurable CSP. High-I/O modules like backups, WordPress import, image optimization, and cloud storage ship as native Go core modules.

  • Structured content AST: The Tiptap 3 block editor stores structured JSON rather than raw pasted HTML. TypeDock renders sanitized HTML server-side and automatically exposes clean Markdown at /blog/<slug>.md.

  • Hardened auth built into core: RBAC with granular permissions, TOTP 2FA, login lockout protection, CSRF checks, and scoped API keys ship out of the box.

Offense: Built for AI-Crafted Custom Themes

The way teams build client themes has changed. Instead of buying a bloated multipurpose theme and fighting its override hierarchy for three years, an engineer or agency can now pair with an AI coding agent to build a bespoke, fast, accessible theme from scratch — provided the CMS gives the agent a clean, bounded contract.

In TypeDock, that contract is intentionally small and legible:

{
  "name": "Client Brand Theme",
  "version": "1.0.0",
  "settings": {
    "colors": {
      "label": "Colors",
      "fields": {
        "accent": {
          "type": "color",
          "label": "Accent",
          "default": "#1be0bb"
        }
      }
    }
  },
  "menus": {
    "header": { "label": "Header Navigation" }
  },
  "slots": {
    "sidebar": {
      "label": "Sidebar",
      "context": ["post", "page", "archive"],
      "defaults": [
        { "component": "latest_posts", "params": { "count": 5 } }
      ]
    }
  }
}

Every setting in theme.json automatically emits a --td-<group>-<field> CSS custom property, templates hot-reload on file modification time with no server restart, and slots keep layout regions editable from the admin panel. We also publish a dedicated AI Agent Authoring Guide you can hand directly to your coding agent.

Zero-Touch Docker or $5 Shared Hosting

You can boot a fully initialized TypeDock instance in one command using headless environment bootstrap (TYPEDOCK_ADMIN_EMAIL and TYPEDOCK_ADMIN_PASSWORD create the database and initial admin user once, then become a no-op on subsequent restarts):

docker run -d \
  --name typedock \
  -p 8080:8080 \
  -v typedock_storage:/app/storage \
  -v typedock_uploads:/app/public/uploads \
  -e APP_URL=https://example.com \
  -e TYPEDOCK_SITE_NAME="My Site" \
  -e [email protected] \
  -e TYPEDOCK_ADMIN_PASSWORD=change-me-in-production \
  ghcr.io/typedock/typedock:latest

Mounting your own custom theme or JS plugin takes one volume flag:

-v ./my-theme:/app/themes/my-theme:ro
-v ./my-plugin:/app/plugins/my-plugin:ro

Prefer classic shared hosting? Download the FastCGI archive (typedock-fcgi_<version>_<os>_<arch>.zip for Linux or FreeBSD), extract it into your webroot, chmod 755 app.fcgi, and complete the 3-step browser installer.

Dogfooding on TypeDock.com

This website itself runs on Go TypeDock v0.1.0 using a declarative Pongo2 theme (typedock-official) with zero custom server code. Every page you are reading — the landing page, this blog post (also available in raw Markdown via the .md link above), and the documentation synced from typedock/typedock — is served by the same single binary.

Try v0.1.0

TypeDock v0.1.0 is Apache 2.0 open source. Try spinning it up in Docker or on a staging shared host, ask your coding agent to build a theme against theme.json, and open an issue on GitHub with whatever breaks or feels rough.