{"id":51377212,"url":"https://github.com/neutro-web/form","last_synced_at":"2026-07-05T21:00:33.484Z","repository":{"id":363745812,"uuid":"1264308037","full_name":"neutro-web/form","owner":"neutro-web","description":"High-Performance, Zero-Dependency, Framework-Agnostic Reactive Form Engine","archived":false,"fork":false,"pushed_at":"2026-06-29T17:51:18.000Z","size":1187,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-29T19:05:28.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://neutro-web.github.io/form/","language":"TypeScript","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/neutro-web.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-09T19:04:39.000Z","updated_at":"2026-06-29T17:51:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"bca383f4-1cd4-4ab6-8be6-5e54c33f1ba5","html_url":"https://github.com/neutro-web/form","commit_stats":null,"previous_names":["agnostic-web/agw-form","neutro-web/form"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/neutro-web/form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutro-web%2Fform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutro-web%2Fform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutro-web%2Fform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutro-web%2Fform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neutro-web","download_url":"https://codeload.github.com/neutro-web/form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutro-web%2Fform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35168795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-07-03T14:00:27.945Z","updated_at":"2026-07-05T21:00:33.478Z","avatar_url":"https://github.com/neutro-web.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Forms"],"readme":"# @neutro/form\n\nHigh-performance, zero-dependency, framework-agnostic reactive form engine.\n\n**[Documentation](https://neutro-web.github.io/form/)** · [Getting Started](https://neutro-web.github.io/form/getting-started) · [API Reference](https://neutro-web.github.io/form/api/) · [Benchmarks](https://neutro-web.github.io/form/benchmarks/)\n\n## Install\n\n```bash\nnpm install @neutro/form\n```\n\n## Quick start\n\n```ts\nimport { createForm } from '@neutro/form/core';\n\nconst form = createForm({\n  initialValues: { email: '', password: '' },\n  rules: {\n    email: ['required', 'email'],\n    password: ['required', { minLength: 8 }],\n  },\n});\n\nform.set('email', 'user@example.com');\nawait form.submit(async (payload) =\u003e {\n  await fetch('/api/login', { method: 'POST', body: JSON.stringify(payload) });\n});\n\n// Reset a single field without affecting others\nform.resetField('email');\nform.resetField('email', { keepError: true }); // restore value, keep error\n```\n\n### React\n\n```tsx\nimport { useForm, useFormPath } from '@neutro/form/adapters/react';\n\nfunction LoginForm() {\n  const { handleSubmit } = useForm(form);\n  const value = useFormPath(form, 'email');\n\n  return (\n    \u003cform onSubmit={handleSubmit(async (payload) =\u003e console.log(payload))}\u003e\n      \u003cinput value={value as string} onChange={(e) =\u003e form.set('email', e.target.value)} /\u003e\n    \u003c/form\u003e\n  );\n}\n```\n\n## Features\n\n- Zero dependencies — no external runtime\n- Framework adapters for React, Svelte, Vue, SolidJS, and Angular\n- 30+ built-in validation rules (presence, format, length, array, cross-field, file, conditional)\n- Async validation with debounce and `AbortSignal` cancellation\n- O(1) dependency graph for cross-field validation\n- DOM bridge with `WeakRef`-based automatic field cleanup\n- Dynamic arrays with index-safe `move`, `swap`, `insert`, `remove`\n- Zod, Yup, and class-validator schema adapters built in\n- Strongly typed field paths — `Path\u003cT\u003e`, `GetPathValue\u003cT,P\u003e`, and `ArrayItem\u003cV\u003e` give IDE autocomplete and value-type enforcement on every read and write\n- `resetField(path, options?)` — restore a single field to its initial value without touching other fields\n- `batch()` — defer all subscriber notifications until a set of mutations completes\n- `clearErrors()` — programmatically clear all or specific field errors\n- Configurable validation modes per field: `onTouched` (default), `onChange`, `onBlur`, `onSubmitOnly`\n- `state.isValid` — three-value validity flag: `null` (not yet validated), `true`, `false`\n- Persistence via `localStorageAdapter` / `sessionStorageAdapter` with optional debounce and field exclusion\n- Devtools: console logger (`devtools()`) and floating overlay panel (`createNeutroFormDevtoolsPanel()`)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneutro-web%2Fform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneutro-web%2Fform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneutro-web%2Fform/lists"}