How chearon/dropflow works
File structure
• Top‑level:
• src/ – core TS modules (parsing, DOM, style, layout, paint, environment abstractions)
• gen/ – code‑generation scripts producing Unicode tries and property tables in C++/TS
• pkg/ – vendored C++ libraries (harfbuzz, sheenbidi, binaryen) and their build scripts
• dist/ – bundled WebAssembly (dropflow.wasm)
• examples/ – usage demos
• test/ – automated specs
• site/ – documentation front‑end (Vite)
• assets/ – fonts, logos, images
• build.zig/tools/postprocess_wasm.zig – Zig build configs for WASM
README for additional insights
• Confirms the pipeline stages and that HarfBuzz (WASM), SheenBidi, and Unicode tries are core. Emphasizes environment abstraction (fonts/images), hyperscript vs. HTML/CSS parsing, and multiple paint backends.
• A[Hyperscript API] --> B[DOM & Style Engine]
• C --> D[Layout Engine]
• D --> E[Paint Backend]