invara
v0.0.0
Published
Readme
🧠 Invara
Invara is an experimental form state library inspired by the concept of invariants — conditions that must always remain true.
Most form libraries like React Hook Form or Formik focus on handling form state and validating after changes.
Invara explores a different direction:
What if form state could be designed so that invalid data never becomes part of the system?
⚡ Core Idea
Instead of:
- accepting any input
- then validating later
Invara aims to:
- control how state updates happen
- apply constraints during updates
- ensure only valid state is committed
This shifts validation from a reaction to a guarantee.
🚧 Status
The core architecture and API are being designed.
Nothing here is final.
🧩 Direction
The library is being built around:
- Controlled state transitions
- Constraint-driven updates
- Clear separation between raw input and valid state
- Strong alignment with type safety
💭 Philosophy
Stop validating forms. Start enforcing invariants.
📌 Note
This project is in the exploration phase.
The goal is to rethink how form state is handled — not to replicate existing solutions.
