iDev-Games / State-JS
PublicState.js is a CSS‑reactive framework that makes UI state and updates flow through CSS instead of JavaScript logic.
State.js is a lightweight tool that connects your HTML data values to CSS styles, letting you build interactive dashboards, games, and animations using mostly HTML and CSS with minimal JavaScript.
How It Works
You discover you want to build interactive buttons, progress bars, or game-like interfaces without writing complex code.
You add one small script tag to your webpage, either from a CDN or by downloading the file directly.
You mark the elements you want to track with simple attributes like data-health or data-score.
Your numbers and values instantly become CSS variables that your styles can read and react to automatically.
You connect buttons to increase scores, toggle states, or change values with just HTML attributes.
You add sound effects, animations, and visual feedback using built-in features that play automatically.
Your interactive dashboard, game interface, or clicker game works completely without any hand-written JavaScript logic.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.