{"id":19536670,"url":"https://github.com/skidgod4444/profanity-validator","last_synced_at":"2025-10-07T06:02:32.470Z","repository":{"id":259660593,"uuid":"879138810","full_name":"SkidGod4444/profanity-validator","owner":"SkidGod4444","description":"A lightweight SDK for profanity filtering in forms. This library is designed to prevent bad word spam by validating user input and throwing errors if profanity is detected.","archived":false,"fork":false,"pushed_at":"2025-03-21T17:40:10.000Z","size":2469,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T19:03:58.155Z","etag":null,"topics":["profanity","profanity-detection","profanity-validator","swearword"],"latest_commit_sha":null,"homepage":"https://profanity.devwtf.in/","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/SkidGod4444.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["SkidGod4444"]}},"created_at":"2024-10-27T04:58:25.000Z","updated_at":"2025-02-24T12:37:07.000Z","dependencies_parsed_at":"2024-10-29T02:05:23.504Z","dependency_job_id":null,"html_url":"https://github.com/SkidGod4444/profanity-validator","commit_stats":null,"previous_names":["skidgod4444/profanity-validator"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkidGod4444%2Fprofanity-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkidGod4444%2Fprofanity-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkidGod4444%2Fprofanity-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkidGod4444%2Fprofanity-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkidGod4444","download_url":"https://codeload.github.com/SkidGod4444/profanity-validator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251001705,"owners_count":21520998,"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":["profanity","profanity-detection","profanity-validator","swearword"],"created_at":"2024-11-11T02:23:41.883Z","updated_at":"2025-10-07T06:02:32.464Z","avatar_url":"https://github.com/SkidGod4444.png","language":"TypeScript","funding_links":["https://github.com/sponsors/SkidGod4444"],"categories":[],"sub_categories":[],"readme":"[![Profanity Validator](https://github.com/user-attachments/assets/18c77256-bfe9-47d1-9375-d5de8efedaf5)](https://www.youtube.com/watch?v=WVCBLilL0mQ) \u003c!-- Replace with actual image path and YouTube video link --\u003e\n\nA lightweight SDK for profanity filtering in forms. This library is designed to prevent bad word spam by validating user input and throwing errors if profanity is detected. Built to be flexible, it can be integrated easily into any HTML or JavaScript framework, including React, Next.js, and many more.\n\n## Features\n\n- **Profanity Filtering:** Automatically detects and validates user input against a predefined list of profane words.\n- **Customizable:** Allows users to add their own custom profanity words to the validation.\n- **Framework Agnostic:** Works seamlessly across different frameworks and libraries.\n- **Error Handling:** Throws validation errors instead of replacing profanity words, preventing form submission.\n- **Asynchronous Validation:** Uses an internal API [(profanity.dev)](https://www.profanity.dev/) to check for profanity, Built by [Josh](https://github.com/joschan21) .\n\n## Installation\n\nYou can install the SDK via any nodejs package manager:\n\n```bash\nnpm install profanity-validator@latest\n```\n\n```bash\npnpm add profanity-validator@latest\n```\n\n```bash\nbun add profanity-validator@latest\n```\n\n```bash\nyarn add profanity-validator@latest\n```\n\n## Examples \n\nWe have mentioned few examples with preview and source code:\n\n- **Example 1:** [ Basic Profanity Validation](https://profanity.devwtf.in/examples#basic-example) | [Source](https://github.com/SkidGod4444/profanity-validator/blob/main/www/components/custom/examples/example1.tsx)\n- **Example 2:** [Profanity Validation with React Hook Form](https://profanity.devwtf.in/examples/#react-hook-form-example) | [Source](https://github.com/SkidGod4444/profanity-validator/blob/main/www/components/custom/examples/example2.tsx)\n- **Example 3:** [Integrating with Zod schema validation](https://profanity.devwtf.in/examples/#zod-schema-example) | [Source](https://github.com/SkidGod4444/profanity-validator/blob/main/www/components/custom/examples/example3.tsx)\n- **Example 4:** [Multiple fields and real-time validation](https://profanity.devwtf.in/examples/#real-time-validation-example) | [Source](https://github.com/SkidGod4444/profanity-validator/blob/main/www/components/custom/examples/example4.tsx)\n\n## Change Logs\n\n- **Change Logs:** View the [Change Log](https://github.com/SkidGod4444/profanity-validator/blob/main/CHANGELOG.md) for a detailed history of changes and updates.\n\n## Contributing\n\nWe welcome contributions! Please feel free to submit a pull request or open an issue if you have suggestions or improvements.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/SkidGod4444/profanity-validator?tab=MIT-1-ov-file) file for details.\n\n## Contact \n\nFor support or inquiries, please reach out to [connect.saidev@gmail.com](https://dub.sh/saidev-twitter) or join our [discord community!](https://l.devwtf.in/discord)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskidgod4444%2Fprofanity-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskidgod4444%2Fprofanity-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskidgod4444%2Fprofanity-validator/lists"}