{"id":23196293,"url":"https://github.com/https-eduardo/vuct-validator","last_synced_at":"2026-04-09T01:31:04.218Z","repository":{"id":184949735,"uuid":"672010550","full_name":"https-eduardo/vuct-validator","owner":"https-eduardo","description":"An scalable validator library designed to work with Vue 3 and React.","archived":false,"fork":false,"pushed_at":"2023-08-05T18:25:33.000Z","size":122,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T16:21:01.009Z","etag":null,"topics":["javascript","npm-package","react","reactivity","typescript","validation","validator","vue3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/https-eduardo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-28T17:19:40.000Z","updated_at":"2023-07-31T13:44:17.000Z","dependencies_parsed_at":"2023-07-31T04:44:23.896Z","dependency_job_id":"eda31af0-2dee-4db1-9b67-612f4198c1a3","html_url":"https://github.com/https-eduardo/vuct-validator","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"42b2c4cb65e51ccc9f646547105cb3a15003a39a"},"previous_names":["https-eduardo/vuct-validator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/https-eduardo/vuct-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/https-eduardo%2Fvuct-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/https-eduardo%2Fvuct-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/https-eduardo%2Fvuct-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/https-eduardo%2Fvuct-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/https-eduardo","download_url":"https://codeload.github.com/https-eduardo/vuct-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/https-eduardo%2Fvuct-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","npm-package","react","reactivity","typescript","validation","validator","vue3"],"created_at":"2024-12-18T14:17:38.682Z","updated_at":"2026-04-09T01:31:04.197Z","avatar_url":"https://github.com/https-eduardo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✔️ Vuct Validator\n\nA library that provides validation to form fields, supporting reactivity of Vue 3 and React. You can use the validators that we already provides or you can create your own validator class. (maybe share with us too?)\n\n### 🚀 How to use\n\nFirst, you will need to install the package from npm.\n\n```bash\nnpm install vuct-validator\n# or (if you are using yarn)\nyarn add vuct-validator\n```\n\n#### Vue 3 (Vue 2 not tested yet)\n\n```typescript\n\u003cscript setup lang=\"ts\"\u003e\nimport { withCredentials } from \"vuct-validator/vue\";\nimport { EmailValidator } from \"vuct-validator/validators\";\n\n  const errorHandler = (error: ValidationError | null) =\u003e {\n    console.log({ error });\n  };\n\n  const rules = {\n    email: {\n      validators: [new EmailValidator()],\n    },\n  };\n\n  const state = withValidator(reactive({email: \"\"}), rules, errorHandler);\n\u003c/script\u003e\n```\n\n#### React\n\n```typescript\nimport { useValidatedState } from \"vuct-validator/react\";\nimport { EmailValidator } from \"vuct-validator/validators\";\n\nfunction Login() {\n  const errorHandler = (error: ValidationError | null) =\u003e {\n    console.log({ error });\n  };\n\n  const rules = {\n    email: {\n      validators: [new EmailValidator()],\n    },\n  };\n\n  const emailState = useValidatedState(\n    { name: \"email\", value: \"\" },\n    rules.email,\n    errorHandler\n  );\n}\n```\n\n## ✨ How to contribute\n\nFirst of all, you'll need to clone this repository and create a new branch from the main.\n\n```bash\ngit clone https://github.com/https-eduardo/vuct-validator.git\n\ngit checkout -b your_branch_name\n```\n\nAfter cloning the repository, you can start implementing your features, fixing the code or refactoring.\nWhen your changes are finished, open a pull request to be reviewed and, then, merged.\n\n**📍 TIP:** Adding new validator classes are necessary and good contribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttps-eduardo%2Fvuct-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttps-eduardo%2Fvuct-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttps-eduardo%2Fvuct-validator/lists"}