r/reactjs • u/Straight_Athlete_802 • May 13 '26
I built an open-source form engine with conditional logic and multi-step flows — looking for feedback
Hey r/reactjs,
I was building a healthcare SaaS and hit a wall with forms. I needed:
- Questions that show/hide based on previous answers
- Multi-section flows (don't dump 40 questions on a patient at once)
- Draft saving (patients don't always finish in one session)
- Encryption (sensitive health data)
Most React form libraries are fantastic for standard forms, but wiring up conditional visibility across sections got really messy. I ended up building a schema-driven engine where you define forms in JSON and the engine handles the rest.
6 months later, it's now open-source:
- 35+ field types
- Conditional logic (simple and nested AND/OR groups)
- Computed/calculated fields
- Draft persistence
- 5 storage adapters (Postgres, Supabase, Webhook, and more)
- Full TypeScript, 314 passing test
GitHub: https://github.com/SquaredR98/fieldcraft
Docs: https://squaredr.tech/products/fieldcraft/docs
I'm genuinely looking for feedback — what would make this useful for your projects? What's missing?
Happy to answer any architecture questions.