// readme

Tiny - Mini-program Engine

A mini-program engine based on glass-easel: dual-side tree (service logic tree + host render tree), versioned bridge protocol, standalone compiler, and a browser debugger.

Online demo: Tiny debugger online, no local build required. You can directly select the sample apps under tests/apps to run.

Architecture

The kernel is strictly pure: packages/runtime does not depend on any host. The browser, iOS, and test hosts share the same kernel, and all environment capabilities are injected from the boundary.

  Source (WXML / WXSS / JS / TS)
        β”‚
        β–Ό
  tools/cli ──► manifest + service.js + templates.js + styles
        β”‚
        β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β–Ό                   β–Ό                   β–Ό
  browser host          iOS host            test host
  iframe / port    JSCore / WKWebView  in-memory transport
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚ Injected: transport / canvas / renderer / API / resources…