Show HN: Lithent – a small UI library where component state lives in closures
Category: web-framework
Tags: ui-library, closure-state, lightweight, custom-elements, typescript
Score: 6.3/10 (Innovation: 5, Technical: 7, Documentation: 8, Utility: 5)
Lithent is a lightweight (~4.8KB) UI library that keeps component state in plain closure variables, offering manual or reactive update modes. It stands out by avoiding hooks rules and providing progressive enhancement options like custom elements and no-build templates, with performance comparable to Preact and Lit.
Target audience: frontend developers
Repository: https://github.com/superlucky84/lithent · TypeScript · MIT · 50 stars
View on Hacker News