{"id":16787842,"url":"https://github.com/sveltecult/fluent-formdata-validator","last_synced_at":"2026-01-03T12:35:38.187Z","repository":{"id":236678665,"uuid":"773545666","full_name":"sveltecult/fluent-formdata-validator","owner":"sveltecult","description":"A versatile form data validation library offering a fluent API to ensure data integrity and consistency in web applications.","archived":false,"fork":false,"pushed_at":"2024-03-28T23:59:37.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T18:12:59.594Z","etag":null,"topics":["form-data","form-validation","validation","validator"],"latest_commit_sha":null,"homepage":"https://fluent-formdata-validator.sveltecult.com","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/sveltecult.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-03-17T23:50:39.000Z","updated_at":"2024-04-28T01:45:00.000Z","dependencies_parsed_at":"2024-04-28T07:05:10.515Z","dependency_job_id":null,"html_url":"https://github.com/sveltecult/fluent-formdata-validator","commit_stats":null,"previous_names":["sveltecult/fluent-formdata-validator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltecult%2Ffluent-formdata-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltecult%2Ffluent-formdata-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltecult%2Ffluent-formdata-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltecult%2Ffluent-formdata-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sveltecult","download_url":"https://codeload.github.com/sveltecult/fluent-formdata-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950946,"owners_count":20373665,"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-data","form-validation","validation","validator"],"created_at":"2024-10-13T08:16:07.802Z","updated_at":"2026-01-03T12:35:38.161Z","avatar_url":"https://github.com/sveltecult.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluent FormData Validator\n\nA versatile form data validation library offering a fluent API to ensure data integrity and consistency in web applications. Please note that this project is currently a work in progress and undergoing active development.\n\n## Features\n\n- Fluent validation API\n- Supports basic input types: boolean, date, number and string.\n- Array validation using `[]` and `.*` notations\n- Customizable validation rules\n- Framework agnostic\n- With 40+ [available rules](https://fluent-formdata-validator.sveltecult.com)\n\n## Installation\n\nTo install, use your preferred package manager:\n\n```bash\nnpm install fluent-formdata-validator\n```\n\n## Getting Started\n\nDetailed instructions on getting started and list of available validation rules can be found in the [documentation](https://fluent-formdata-validator.sveltecult.com).\n\n## Basic Usage\n\n```typescript\nimport { Rule, Validation } from '@sveltecult/formdata-validator';\n\n/** @type {import('./$types').Actions} */\nexport const actions = {\n\tdefault: async ({ request }) =\u003e {\n\t\tconst formData = await request.formData();\n\n\t\tconst validation = new Validation(formData, {\n\t\t\temail: Rule.string().required().email(),\n\t\t\tpassword: Rule.string().required().minLength(8).confirmed()\n\t\t});\n\n\t\tconst errors = await validation.errors();\n\n\t\tif (errors.any() === true) {\n\t\t\tconsole.log(errors.all());\n\t\t}\n\t}\n};\n```\n\n## Writing Custom Validation\n\nThis library allows writing custom validation logic using the `.custom()` rule for scenarios where standard validation rules don't meet specific requirements, such as database-related checks. [Click here](https://fluent-formdata-validator.sveltecult.com/guides/custom) to learn more about how to create your own custom validation.\n\n## License\n\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nThis library is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsveltecult%2Ffluent-formdata-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsveltecult%2Ffluent-formdata-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsveltecult%2Ffluent-formdata-validator/lists"}