Language

Architecture: one binary, four layers, no hidden proxy

A single process connects TLS directly, assuming no nginx or CDN in front; responsibilities are split into four layers: kernel, platform modules, business plugins, themes.

One binary delivers every capability: it listens on its own port, handles TLS and certificate issuance itself, and does not assume an nginx or CDN in front. Responsibilities are split into four layers: the kernel, platform modules, business plugins, and themes.

Why "direct connection" instead of "a layer in front"

The product shape decides this: a single-process Go binary connects TLS and HTTP/2 directly on 443. If a reverse proxy layer were assumed in front by default, then certificates, timeouts, request body limits and the client address would each have two answers, and they would always drift. So this site's boundary is written into the implementation: the process answers the outside directly and trusts no "looks like a proxy" address declaration, unless the deployer explicitly configures a trusted proxy.

The backend administration UI is compiled into the same binary. Frontend and backend are not two programs; installing one program gives you the server, the TLS endpoint and the administration console at once.

What the four layers each manage

Kernel system capabilities are owned by the kernel, and modules can only call their interfaces: routing and middleware, authentication and sessions, permission enforcement, database connections and migrations, configuration storage and encryption of sensitive fields, file and upload boundaries, the event bus and reliable delivery, scheduled tasks, audit writes, backup and recovery, frontend rendering context and HTML sanitization, module manifest validation and capability registration.

Platform modules carry the common capabilities of the website CMS, shipped, tested and upgraded together with the system, enabled by default. The reason this layer exists is specific: if there were only "system" and "plugin" as the two categories, high-frequency foundational capabilities such as content, themes and media would be treated as plugins you can disable on a whim — and disabling them is not losing one feature; it is the public site having no content to read.

Business plugins are the layer customers enable and disable as needed. Their lifecycle belongs to the customer, data stays in the store, and disabling does not delete content.

Themes are server-side rendering presentation extensions, running within the kernel's routing, sanitization, caching and content contracts. They do not resolve languages, inject scripts or build SQL themselves — they only consume the data the kernel has already computed.

Single-site and scope

Single-site is a product constraint, not something not done: no multi-tenancy, no site switching, no tenant-level configuration.

The mall and membership are explicitly excluded scope, not "not in this version, next version will add it". The product catalog only presents items and links out to the customer's own store, with no prices, inventory, cart, orders, payment or checkout; there is also no member registration, login, tiers, points, subscriptions or customer accounts. The reason is written in the decision records: these domain models have no real consumers, and what would be written down is a guessed shape.

The database is embedded SQLite, directly connected by one process, with no external database service. Having one fewer process to deploy, back up and monitor is part of this delivery shape.

Judging which layer something belongs to

Without it, can the system still start, recover or be managed safely? Yes — then it is not a system capability. Most websites use it, and it decides the CMS's basic workflow? Yes — platform module. It has a clear business boundary, is optional for customers, and has its own domain data? Yes — business plugin. It only answers "what does this content look like"? Yes — theme.