{"id":13427601,"url":"https://github.com/ealush/vest","last_synced_at":"2026-10-19T07:59:31.364Z","repository":{"id":37451068,"uuid":"224295067","full_name":"ealush/vest","owner":"ealush","description":"Vest ✅ Declarative validations framework","archived":false,"fork":false,"pushed_at":"2026-10-18T03:29:24.000Z","size":22444,"stargazers_count":2670,"open_issues_count":73,"forks_count":94,"subscribers_count":12,"default_branch":"latest","last_synced_at":"2026-10-18T08:06:09.097Z","etag":null,"topics":["form","form-validation","forms","hacktoberfest","javascript","react-validation","react-validation-library","svelte-validation","typescript","unit-testing","validation","validation-library","vue-validation"],"latest_commit_sha":null,"homepage":"https://vestjs.dev/","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/ealush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"claude":null,"gemini":null,"cursor":null,"copilot":null,"dco":null,"cla":null,"disclosure":null},"funding":{"github":"ealush"}},"created_at":"2019-11-26T22:10:41.000Z","updated_at":"2026-10-14T09:22:03.000Z","dependencies_parsed_at":"2026-10-03T09:28:42.276Z","dependency_job_id":null,"html_url":"https://github.com/ealush/vest","commit_stats":{"total_commits":1623,"total_committers":47,"mean_commits":34.53191489361702,"dds":0.3407270486752927,"last_synced_commit":"8f400a0ba0da8505aa0dc65784be1b11e478cad6"},"previous_names":[],"tags_count":172,"template":false,"template_full_name":null,"purl":"pkg:github/ealush/vest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealush%2Fvest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealush%2Fvest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealush%2Fvest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealush%2Fvest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ealush","download_url":"https://codeload.github.com/ealush/vest/tar.gz/refs/heads/latest","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealush%2Fvest/sbom","scorecard":{"id":363704,"data":{"date":"2025-08-11","repo":{"name":"github.com/ealush/vest","commit":"8742d6f2145afe5e0cc4cfb449166e8349330c6d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 2/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/integration.yml:1","Warn: no topLevel permission defined: .github/workflows/nightly.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/ealush/vest/codeql-analysis.yml/latest?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/ealush/vest/codeql-analysis.yml/latest?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/ealush/vest/codeql-analysis.yml/latest?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/ealush/vest/codeql-analysis.yml/latest?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/ealush/vest/integration.yml/latest?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/ealush/vest/integration.yml/latest?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nightly.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ealush/vest/nightly.yml/latest?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'latest'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (8) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"44 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-q765-wm9j-66qj","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-f7f6-9jq7-3rqj","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-9crc-q9x8-hgqq","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T11:23:07.822Z","repository_id":37451068,"created_at":"2025-08-18T11:23:07.822Z","updated_at":"2025-08-18T11:23:07.822Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38337564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-18T02:00:06.448Z","response_time":63,"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":["form","form-validation","forms","hacktoberfest","javascript","react-validation","react-validation-library","svelte-validation","typescript","unit-testing","validation","validation-library","vue-validation"],"created_at":"2024-07-31T01:00:33.376Z","updated_at":"2026-10-19T07:59:31.358Z","avatar_url":"https://github.com/ealush.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ealush"],"categories":["Uncategorized","TypeScript","JavaScript","Projects by main language","📋 Form validation","Validation","Utilities","typescript","Components \u0026 Libraries"],"sub_categories":["Uncategorized","typescript","Runner","Form","Forms","UI Utilities","Misc"],"readme":"# Vest — form validation written like unit tests\n\n![Vest](https://cdn.jsdelivr.net/gh/ealush/vest@assets/logo_250.png 'Vest')\n\n[Documentation](https://vestjs.dev) · [Async race demo](https://vestjs.dev/#async-race-demo) · [Getting started](https://vestjs.dev/docs/get_started)\n\n[![Join Discord](https://badgen.net/discord/online-members/WmADZpJnSe?icon=discord\u0026label=Discord)](https://discord.gg/WmADZpJnSe) [![GitHub Stars](https://badgen.net/github/stars/ealush/vest?color=yellow\u0026label=GitHub%20Stars)](https://github.com/ealush/vest) [![Version](https://badgen.net/npm/v/vest?icon=npm)](https://www.npmjs.com/package/vest) [![Downloads](https://badgen.net/npm/dt/vest?label=Downloads)](https://www.npmjs.com/package/vest) [![Bundle size](https://badgen.net/bundlephobia/minzip/vest)](https://bundlephobia.com/package/vest) [![Status](https://badgen.net/github/status/ealush/vest)](https://github.com/ealush/vest/actions)\n\nVest runs the tests for the field or step that changed and keeps the results for everything else. When async checks overlap, only the latest result can update the suite.\n\n\u003e **Vest validates what changed, remembers what already passed, and prevents stale async validation results.**\n\nThe validation rules read like unit tests. The stateful runtime is what makes Vest different.\n\n```js\nimport { create, enforce, test } from 'vest';\n\nconst suite = create(data =\u003e {\n  test('username', 'Username is required', () =\u003e {\n    enforce(data.username).isNotBlank();\n  });\n\n  test('username', 'Username must be at least 3 characters', () =\u003e {\n    enforce(data.username).longerThanOrEquals(3);\n  });\n\n  test('username', 'Username is already taken', async ({ signal }) =\u003e {\n    const response = await checkUsername(data.username, { signal });\n    enforce(response.available).isTruthy();\n  });\n});\n\n// Run only username tests and retain previous results for every other field.\nconst result = suite.only('username').run(formData);\n\nresult.isPending('username');\nresult.hasErrors('username');\n\n// Await the current async run when final completion matters.\nawait result;\n```\n\n## Why Vest?\n\n- **Incremental execution:** Validate a field, group, or step without rerunning everything.\n- **Retained validation state:** A focused run updates part of the existing result instead of replacing it.\n- **Race-safe async:** Track pending work, cancel obsolete requests, and ignore stale completions.\n- **Real workflow primitives:** Model dependent fields, conditional sections, warnings, optional values, groups, and dynamic lists.\n- **Client and server continuity:** Run statelessly on the server and resume full validation state in the browser.\n- **Framework independence:** Use the same suite with React, Vue, Svelte, Angular, vanilla JavaScript, or Node.js.\n- **TypeScript and schemas:** Infer typed inputs and parsed outputs with Enforce schemas.\n- **Standard Schema interoperability:** Pass suites and Enforce rules to compatible tools while keeping `run()` and `runStatic()` as Vest's execution APIs.\n- **Familiar, testable rules:** Keep business validation outside UI components in suites that are easy to unit-test.\n\n## Where Vest fits\n\n| Layer                | Responsibility                                              | Typical tools                      |\n| -------------------- | ----------------------------------------------------------- | ---------------------------------- |\n| Form state           | Values, registration, touched state, submission             | React Hook Form, Formik            |\n| Data boundary        | Parse and protect a complete payload                        | Zod, Valibot, Ajv, Enforce schemas |\n| **Validation state** | Decide what runs now, retain results, coordinate async work | **Vest**                           |\n\nThese layers are complementary. A common architecture uses a form manager for input mechanics, Vest for progressive interaction, and a schema validator for the final submitted boundary.\n\n## Where Vest works well\n\nVest works well for:\n\n- async username, email, inventory, coupon, or eligibility checks;\n- onboarding and multi-step workflows;\n- linked fields and cross-field business rules;\n- warnings that should not block submission;\n- optional and conditional sections;\n- dynamic lists of travelers, products, or addresses;\n- rules shared between browser and server;\n- SSR workflows that should not validate everything twice.\n\nFor a trivial synchronous form or a one-shot API parse, native HTML validation or a schema validator may be all you need.\n\n## Installation\n\n```shell\nnpm i vest\n```\n\n## Start here\n\n- [Getting started](https://vestjs.dev/docs/get_started)\n- [Vest tutorials](https://vestjs.dev/docs/tutorials)\n- [How Vest handles validation](https://vestjs.dev/docs/concepts)\n- [Async validation without race conditions](https://vestjs.dev/docs/guides/async-validation-race-conditions)\n- [Complete registration example](https://vestjs.dev/docs/guides/production-architecture)\n- [When not to use Vest](https://vestjs.dev/docs/guides/when-not-to-use-vest)\n- [Vest, schema validators, and form libraries](https://vestjs.dev/docs/vest_vs_the_rest)\n- [Consumer AI usage guide](https://vestjs.dev/llms-consumer.txt)\n- [Public roadmap](https://github.com/ealush/vest/blob/latest/ROADMAP.md)\n\n## Contributing\n\nContributions are welcome. See [CONTRIBUTING.md](https://github.com/ealush/vest/blob/latest/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fealush%2Fvest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fealush%2Fvest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fealush%2Fvest/lists"}