5,316 karma · joined November 6, 2012
? A date after today
[date min="2026-10-13"]
? A number between 10 and 100 that's a multiple of 5
[number min=10 max=100 step=5]
I didn't want to pack everything on the homepage example, but there's more examples in the form builder.Also see:
If you use markup, HTML alone is not very expressive and is missing some fairly common use-cases, and the JSX snippets of existing UI frameworks aren't very portable. JSON-Schema is more expressive in terms of describing the shape of the result, but json-schema alone is usually not enough information to build a user-friendly form.
I've created a few versions of this DSL over the years but finally decided to try and take it a bit further.
My hope is that people like this and build implementations of this spec for a variety of frontend and traditional frameworks.
I know this will not cover every application's use case and it's not meant to supplant general application forms, but I especially think this will be useful for cases where you want your users to be able to create forms.
Feedback very welcome, especially if you have ideas on how to make the markup itself be more readable!
Websockets don't really have an advantage here because typically websockets are implemented server-side as event based systems, and if a RPC paradigm is put on top of it has the same properties as HTTP/2 request/responses ordering. So if HTTP/2 doesn't have head of line blocking, then you can't argue that websockets do.
It's fine because I'm comfortable in the CLI but I read your comment and wanted to share that it felt a bit rudimentary at best.
https://en.wikipedia.org/wiki/Common_law
I often see laws discussed here and people finding some edge case and presenting this as a gotcha. The reality is that it's unlikely to matter.