@nimibyte/reducer-form - Reducer-driven form state primitives for explicit transitions and predictable validation.
Avoids repeated ad-hoc form state handling across complex product flows.
Form behavior drifts when field updates, validation, and derived values are scattered across local handlers. Control becomes implicit and difficult to reason about.
Trade-offs: Prioritizes explicit reducer transitions over highly abstract, magic-driven APIs.
Intentionally not solving: Schema engines, UI form builders, or opinionated component rendering layers.
useForm<T>(options)FormProvideruseFormContext<T>()register({ name, required?, type? })set(name, value)reset()stateerrorsloadingonSubmitThis reflects Nimibyte's engineering posture: narrow control surfaces, explicit state transitions, and predictable runtime behavior. We prioritize maintainability over convenience abstractions.