Live data from Hacker News

Show HN: ShapeForm – Schema Driven Forms for React

github.com

11–17 of 17 posts

Re: Show HN: ShapeForm – Schema Driven Forms for React

#12

How does shapeform compare to https://github.com/mozilla-services/react-jsonschema-form

If you look through the slides mentioned by the author (https://shape-form-talk.netlify.com/), comparison is provided for redux-form and react-jsonschema-form. They had to create it to support multi-part forms, redux, easy customizations without bootstrap.

Re: Show HN: ShapeForm – Schema Driven Forms for React

#13

How does shapeform compare to https://github.com/mozilla-services/react-jsonschema-form

There is also https://frontier-forms.dev inspired by react-jsonschema-form. It generates forms based on your graphql schema with types in typescript. It is pretty cool too. Based on final-form.

Author talks about it here https://www.youtube.com/watch?v=Ovg9CYwWFBM&t=6s

Re: Show HN: ShapeForm – Schema Driven Forms for React

#14
It's great to see more libraries that deal with rendering JSONSchema. I've been working on a drag and drop formbuilder / grid [0] for creating crud apps that leverages react-jsonschema-form.[1]

I noticed that while I create custom rails apps for clients, they often want to create additional forms and still leverage the authentication, permissions, and existing data in the app. This rules out most 3rd party form builders like typeform, jotform etc. which are mostly for surveys anyway. Sometimes the dev time to create them(UI, DB migrations, testing, validations) is too costly for an idea they just want to test.

So, I use the builder to create a JSON Schema, then embed the form into the rails app. What's cool is that I can utilize permissions from the core app to disable certain fields, and I can pass in enum values so drop downs have up-to-date options pulled right from the DB.

We use react-jsonschema-form, but the jsonschema we produce could be used in any of the tools mentioned in this thread.

I'm close to opening this up to other devs soon, and would love your feedback. There's a signup form on the website if you're interested.

[0] https://responsevault.com/ [1] https://github.com/mozilla-services/react-jsonschema-form

Re: Show HN: ShapeForm – Schema Driven Forms for React

#15

It's great to see more libraries that deal with rendering JSONSchema. I've been working on a drag and drop formbuilder / grid [0] for creating crud apps that leverages react-jsonschema-form.[1] I noticed that while I create custom rails apps for clients, they often want to create additional forms and still leverage the authentication, permissions, and existing data in the app. This rules out most 3rd party form build…

Signed up for alpha. Definitely sparked my curiosity regarding the type of client needs you encounter for things like form builders.

We are currently working on our own visual app builder, starting out with Vue/Vuetify. Demo:

https://youtu.be/6ywDYebcxdo

https://youtu.be/jdb0j_vN9RM

Re: Show HN: ShapeForm – Schema Driven Forms for React

#16

Looks nice! Our forms have a lot of logic where certain answers hide/show other fields/sections. Does this have the ability to swap the schema/form fields on the fly?

JSON schema has in one of it's drafts a way to define business rules like these, no idea if this library supports it (most likely not)

On a previous project I needed something like this and used react-json-schema as a form renderer and created my own rule engine that evaluated a lot of rules defined in a custom format I needed.

The result was a generated schema that was rendered by react-json-schema.

Re: Show HN: ShapeForm – Schema Driven Forms for React

#17
Disclosure: I work on Tree Notation.

Down the line (maybe in 2020) you might want to consider looking at using Tree Notation instead of JSONSchema. Could simplify things quite a bit.

Here's what that might look like, using your example on your Readme:

http://treenotation.org/designer/#grammar%0A%20shapeFormNode...

Post reply on HN