vanilla-lynx
Installation
SKILL.md
Build Lynx Apps without Framework
Use this skill to build Lynx apps directly from Element PAPIs and Lynx Runtime APIs.
Core Rules
- Do not use ReactLynx, JSX, virtual DOM, or browser DOM APIs unless the user explicitly asks for them.
- Split app code into three parts.
src/main-thread.tscreates and mutates the element tree by using Element PAPIs.src/background.tsget data from main-thread environment and handle events which always generate patches to main thread.src/style.csscontains common CSS styles used in the app.
Recommended Path
- For bundle scenarios, start with
references/template-webpack-build.mdfor package setup. - Then read
references/main-thread-rendering.mdfor main-thread UI tree creation and mutation. - Then read
references/double-thread-data-sync.mdfor double-thread event dispatch and data synchronization.