# Declarative-forms

> Ask the user for an object, the way prompt() asks for a string. A form is a function you call, not a component you mount. Zero dependencies, framework agnostic, with async options, cross-field reactivity, tabs and stacked dialogs.

Page: https://nowfound.app/launch/declarative-forms-await-an-object-the-way-prompt-awaits-a-st

- Launched: 2026-08-21
- Launch-day votes: 12, 1 comments; #915 of 23,210 launches that month (top 4%)
- Website: [wolfoo2931.github.io](https://wolfoo2931.github.io/declarative-forms/), online when checked 2026-10-20
- Category: [Dev tools](https://nowfound.app/c/developer-tools.md)
- Pricing: Free. Free and open source (checked 2026-11-20 on its site)

## In plain words

Declarative-forms is a JavaScript library that lets developers collect user input by calling a function and awaiting an object, similar to how prompt() works with strings. It requires zero dependencies and works framework-agnostic, supporting features like cross-field reactivity, tabs, stacked dialogs, and async options. Rather than mounting components, developers define form fields as a simple array and receive the completed object directly.

## Does a similar job

- [Formless](https://nowfound.app/launch/formless): Answer user questions and redirect them to the right place (2023-10-02, 436 votes, formless.ai)
- [ShapeForm](https://nowfound.app/launch/shapeform-schema-driven-forms-for-react): A form library that uses JSON schema and works with Redux. Originally a part of the TakeShape React web client. (2019-08-29, 118 votes, github.com)
- [React Hook Form](https://nowfound.app/launch/react-hook-form-simple-form-validation): React hook for form validation without the hassle (2019-10-09, 112 votes, react-hook-form.com)
- [GolemUI](https://nowfound.app/launch/golemui-declarative-form-engine): GolemUI is an open-source library that generates forms dynamically from JSON definitions, allowing developers to store, version, and manage form structures in databases or generate them with LLMs. (2026-07-01, 53 votes, golemui.com)
- [Formbutton](https://nowfound.app/launch/formbutton-customizable-pop-up-forms): Does one thing well. Simple to integrate. Has a free option. (2020-06-30, 103 votes, formspree.io)
- [Mosaic](https://nowfound.app/launch/mosaic-a-declarative-front-end-javascript-library-for-buildi): 🎨 A front-end JavaScript library for building user interfaces! (2019-03-22, 63 votes, github.com)

All alternatives: https://nowfound.app/alternatives/declarative-forms-await-an-object-the-way-prompt-awaits-a-st.md

## For the maker of Declarative-forms

- Feature it at the top of the NowFound home page for $19 for 30 days, marked sponsored: https://nowfound.app/feature/declarative-forms-await-an-object-the-way-prompt-awaits-a-st
- Free: put the badge on the product's own site and it joins Featured products after the paid spots. HTML for the footer: `<a href="https://nowfound.app/launch/declarative-forms-await-an-object-the-way-prompt-awaits-a-st"><img src="https://nowfound.app/badge/declarative-forms-await-an-object-the-way-prompt-awaits-a-st.svg" alt="Declarative-forms on NowFound" height="32"></a>`

Source: [Show HN post](https://news.ycombinator.com/item?id=49391469)
