{"id":18584120,"url":"https://github.com/brob/sanity-plugin-string-limiter","last_synced_at":"2025-10-18T07:02:00.185Z","repository":{"id":52224818,"uuid":"364284714","full_name":"brob/sanity-plugin-string-limiter","owner":"brob","description":"A simple Sanity.io custom string input to display a character count for string fields that have a Max() validation rule.","archived":false,"fork":false,"pushed_at":"2023-12-15T17:53:11.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T05:37:02.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/brob.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2021-05-04T14:32:24.000Z","updated_at":"2022-11-02T14:31:14.000Z","dependencies_parsed_at":"2024-12-26T17:41:10.023Z","dependency_job_id":null,"html_url":"https://github.com/brob/sanity-plugin-string-limiter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brob/sanity-plugin-string-limiter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fsanity-plugin-string-limiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fsanity-plugin-string-limiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fsanity-plugin-string-limiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fsanity-plugin-string-limiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brob","download_url":"https://codeload.github.com/brob/sanity-plugin-string-limiter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fsanity-plugin-string-limiter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265786958,"owners_count":23828360,"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":[],"created_at":"2024-11-07T00:26:14.761Z","updated_at":"2025-10-18T07:01:55.149Z","avatar_url":"https://github.com/brob.png","language":"JavaScript","readme":"# sanity-plugin-string-limiter\n\nA custom input component to show max length validation in a UI for editors\n\n## Installation\n\n```\nsanity install string-limiter\n```\n\n## Usage\n\nAfter it's installed, you can use the custom input to replace any input of type `string`. It requires a validation rule to set the max limit for the input.\n\n```javascript\nexport default {\n  name: 'aDocument',\n  title: 'A Document',\n  type: 'document',\n  fields: [\n    {\n      name: 'title',\n      title: 'Title',\n      type: 'limitedString', // Uses the custom input\n      validation: Rule =\u003e Rule.max(50) // This will set the max range\n    }\n  ]\n}\n```\n\n## License\n\nMIT © Bryan Robinson\nSee LICENSE","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fsanity-plugin-string-limiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrob%2Fsanity-plugin-string-limiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fsanity-plugin-string-limiter/lists"}