Alpaca - Easy Forms for jQuery
alpacajs.org
alpacajs.org
A much better solution would be to generate the markup on the server-side. It should be easy enough to port this to Node, and a bit more of work for other major backend languages like Ruby, Python and PHP.
It could even be implemented as a webapp that takes the input JSON on the left side, and spits out HTML on the right, which I could paste into my site markup directly.
Right now, the trade-off is too big for the developer-time convenience of generating forms dynamically.
This is very useful for when you have a single API that drives your web, Android, and iOS apps. Your back-end just describes the form in JSON and each front-end is responsible for how that form renders. Alpaca is just a shortcut for your web front-end.
Java ,PHP ,Ruby and Python have had excellent form libraries for years ,handling multipage forms ,complex client/server/db validation , etc...
I say it's more difficult to do anything in node,as soon as you have a complexe domain model.
1. From a 'prospective developer' standpoint, I'm worried about the dependencies and general heft of the thing. Does it require jQuery UI? Is there a stripped-down version I can use? As far as I can tell, the landing page doesn't answer these questions.
2. More broadly, I'd argue that there are two types of <form> implementations: barebones forms that use 'value' and 'type' and very little else, and hyper-customized ones that are generated bespoke. This plugin seems to address the middle of that spectrum: people who need a little -- but not too much -- customization. It's hard to tell exactly what options I'm given just from poking through the first few pages.
Good libraries decorate html to provide functionality because, well html is pretty good at the html bit.
1. Too heavy.
2. Doesn't degrade nicely.
https://github.com/1337/alpaca/commit/d15032dd14214786f69525...
It literally would have taken a similar amount of time to fix vs complain :/, and much less to just open the issues list.
As others have said: dealbreaker. Not going to use it.