A Svelte library for generating dynamic, reactive forms with custom field types and validation.
Svelte Formly is a library for Svelte that generates dynamic and reactive forms from JSON configurations. It solves the problem of repetitive form-building code by allowing developers to define forms declaratively, with built-in validation and support for custom field types.
Svelte developers building applications that require dynamic forms, such as admin dashboards, data entry interfaces, or configurable user settings.
Developers choose Svelte Formly for its simplicity and extensibility—it reduces boilerplate while offering custom validation and field types, tightly integrated with Svelte's reactivity.
Generator dynamic forms for Svelte JS
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Enables form generation from JSON objects, allowing runtime structure changes as demonstrated in the fields array example with type and name properties.
Supports custom field components for specialized inputs, highlighted in the introduction as easy to extend with custom field types.
Allows defining validation rules and error messages directly in field configuration, evident from the rules and messages properties in the code snippet.
Leverages Svelte's reactivity for real-time form updates, integrating smoothly with the component architecture as shown in the on:submit event handling.
Documentation is hosted externally at svelte.formly-js.com, which may be less accessible or prone to being outdated compared to integrated docs.
Validation uses string-based rules like 'min:3', which may not easily support complex or asynchronous validation without custom extensions.
JSON configurations can become lengthy and hard to manage for forms with many fields, increasing maintenance complexity over programmatic approaches.
The library is tightly coupled to Svelte, making it unsuitable for projects that might migrate to other frameworks or require cross-framework compatibility.