gtkx
Installation
SKILL.md
GTKX
GTKX renders React components as native GTK4 widgets on Linux: @gtkx/react → FFI bridge → GTK4/GLib.
Project Setup
npx @gtkx/cli@latest create my-app
# Runs: npm run dev | npm run build | npm test (vitest + Xvfb)
Generates src/app.tsx, src/dev.tsx (HMR), src/index.tsx. Entry calls render(<App />, pkg.gtkx.appId).
Essential Patterns
Controlled Inputs
Widgets require explicit two-way binding — not React state alone: