{"id":16488792,"url":"https://github.com/austindd/rescript-validator","last_synced_at":"2026-02-08T23:35:08.645Z","repository":{"id":128179934,"uuid":"325222377","full_name":"austindd/rescript-validator","owner":"austindd","description":"A composable data-validation library for ReScript","archived":false,"fork":false,"pushed_at":"2021-03-30T20:31:32.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T04:23:45.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ReScript","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/austindd.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-29T07:52:34.000Z","updated_at":"2022-03-02T20:55:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"112c99a0-a8f9-4510-bbe3-d558df96bee7","html_url":"https://github.com/austindd/rescript-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/austindd/rescript-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2Frescript-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2Frescript-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2Frescript-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2Frescript-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austindd","download_url":"https://codeload.github.com/austindd/rescript-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austindd%2Frescript-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268823838,"owners_count":24313088,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"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":"2024-10-11T13:39:57.544Z","updated_at":"2026-02-08T23:35:08.586Z","avatar_url":"https://github.com/austindd.png","language":"ReScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rescript-validator\nA composable data-validation library for ReScript. Currently under construction.\n\nThe goal of this library is to allow users to intuitively compose a set of validators using boolean logic. For example:\n\n```rescript\nlet isValidUserName = {\n  open Validator.StringValidators;\n  open Validator.Infix;\n\n  let isValidNonEmailHandle =\n    isLongerThan(3)\n    \u0026\u0026 isShorterThan(65)\n    \u0026\u0026 allCharsAreAscii\n    \u0026\u0026 blacklistChars(bannedChars)\n    \u0026\u0026 blacklistWords(bannedWords);\n  \n  let isValidNonEmailHandle = useName(\"isValidNonEmailHandle\", isValidNonEmailHandle);\n\n  useName(\"isValidUserName\", isEmail || isValidNonEmailHandle);\n}\n\nlet userName = \"qF5wr*ywDLYta40^Dbwv\";\n\nlet result = Validator.validate(isValidUserName, userName);\n```\n\nThis ability to compose validators will hopefully make data validation feel intuitive and easy. Feel free to take a look and offer suggestions during development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustindd%2Frescript-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustindd%2Frescript-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustindd%2Frescript-validator/lists"}