{"id":15288419,"url":"https://github.com/dyalicode/svelte-formly","last_synced_at":"2026-02-12T19:04:55.211Z","repository":{"id":36318494,"uuid":"223373514","full_name":"dyaliCode/svelte-formly","owner":"dyaliCode","description":"Generator dynamic forms for Svelte JS","archived":false,"fork":false,"pushed_at":"2023-10-06T21:50:33.000Z","size":750,"stargazers_count":255,"open_issues_count":11,"forks_count":29,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-31T20:39:08.243Z","etag":null,"topics":["form","formly","forms","svelte","svelte-form","svelte-framework","svelte-js","svelte-v3"],"latest_commit_sha":null,"homepage":"https://svelte.formly-js.com","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyaliCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-22T09:51:41.000Z","updated_at":"2025-03-31T12:40:32.000Z","dependencies_parsed_at":"2024-06-12T16:59:15.806Z","dependency_job_id":null,"html_url":"https://github.com/dyaliCode/svelte-formly","commit_stats":{"total_commits":99,"total_committers":3,"mean_commits":33.0,"dds":"0.030303030303030276","last_synced_commit":"0307b83c3db928b293820b2d8e1f603a361a2657"},"previous_names":["arabdevelop/svelte-formly"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyaliCode%2Fsvelte-formly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyaliCode%2Fsvelte-formly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyaliCode%2Fsvelte-formly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyaliCode%2Fsvelte-formly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyaliCode","download_url":"https://codeload.github.com/dyaliCode/svelte-formly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["form","formly","forms","svelte","svelte-form","svelte-framework","svelte-js","svelte-v3"],"created_at":"2024-09-30T15:48:44.540Z","updated_at":"2026-02-12T19:04:55.160Z","avatar_url":"https://github.com/dyaliCode.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"100%\" height=\"300\" src=\"./logo.png\" alt=\"Svelte Formly\" /\u003e\n\u003c/p\u003e\n\n# Svelte Formly\n\nby [@kamalkech](https://github.com/kamalkech)\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) [![CircleCI](https://circleci.com/gh/beyonk-adventures/svelte-component-livereload-template.svg?style=shield)](https://circleci.com/gh/beyonk-adventures/svelte-component-livereload-template) [![svelte-v3](https://img.shields.io/badge/svelte-v3-blueviolet.svg)](https://svelte.dev)\n\n## Introduction\n\n- ⚡️ Generate dynamic and reactive forms.\n- 😍 Easy to extend with custom field type, custom validation.\n\n## Documentation\n\n[Link Documentation](https://svelte.formly-js.com/)\n\n## Quick Installation\n\n```shell\nnpm install svelte-formly\n```\n\n## Usage\n\n```typescript\n\u003cscript lang=\"ts\"\u003e\n  import { Formly, type IField } from 'svelte-formly';\n\n  const form_name = 'formly_usage';\n  const fields: IField[] = [\n    {\n      type: 'input', // required\n      name: 'firstname', // required\n      attributes: {\n        type: 'text',\n        id: 'firstname', // required\n        classes: ['form-control'],\n        placeholder: 'Tap your first name'\n      },\n      rules: ['required', 'min:3', 'max:10'],\n      messages: {\n        required: 'The firstname is required',\n        min: 'Your firstname is too short min=3',\n        max: 'Your firstname is too long max=10'\n      }\n    },\n    {\n      type: 'input', // required\n      name: 'password', // required\n      attributes: {\n        type: 'password',\n        id: 'password', // required\n        classes: ['form-control'],\n        placeholder: 'Tap your password',\n        autocomplete: 'off'\n      },\n      rules: ['required', 'min:6', 'max:10'],\n      messages: {\n        required: 'The password is required',\n        min: 'Your password is too short min=6',\n        max: 'Your password is too long max=10'\n      }\n    }\n  ];\n\n  const onSubmit = ({ detail }: any) =\u003e {\n    console.log('values:', detail);\n  };\n\u003c/script\u003e\n\n\u003cFormly {fields} {form_name} on:submit={onSubmit} /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyalicode%2Fsvelte-formly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyalicode%2Fsvelte-formly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyalicode%2Fsvelte-formly/lists"}