Theme Architecture
WebbiOS Themes give you complete frontend freedom: build with your preferred web framework, deploy independently (prioritizing Cloudflare Pages for static/hybrid sites), and connect to WebbiOS through a single unified API when dynamic data is needed.
Architecture Evolution (
v1.1.0): Legacy JSON-driven storefront rendering (storefront-engine,theme.jsonin KV) and the Visual Theme Builder are deprecated from the target architecture. Modern WebbiOS Themes are real, independent frontend codebases developed with standard frameworks and AI-assisted workflows.
Core Theme Principles
Section titled “Core Theme Principles”- Frontend-Agnostic: Choose the right tool for the site (e.g., Astro for content-heavy/SEO sites, React/Vite for interactive apps). WebbiOS Core does not lock your frontend to a proprietary rendering engine.
- Independent Deployment: Themes build and deploy independently (e.g., Cloudflare Pages) with their own Git lifecycle and versioned releases—never coupled to Core API redeploys.
- Single API Entry Point: When a Theme needs dynamic data from Core or installed Apps, it calls only the instance’s official API hostname (
The Kernel API). Direct database (D1) access from a Theme is strictly forbidden, and Themes never embed private secrets in client bundles. - Minimal Theme Manager: Core’s Theme Manager tracks theme metadata (inventory, version, mapped domain, deployment reference, operational status) without visual drag-and-drop builder overhead.
Declarative Theme Descriptor (Target)
Section titled “Declarative Theme Descriptor (Target)”Under v1.1.0, a Theme declares its metadata separately from App Manifests (theme.descriptor.json target spec):
{ "slug": "example-theme", "name": "Example Independent Theme", "version": "1.0.0", "framework": "astro", "apiContractsRequired": ["/v1/apps/wiki/public"], "deploymentTarget": "cloudflare-pages"}Note: Theme descriptors contain no D1 bindings and no secrets.