{"id":28289345,"url":"https://github.com/drawing-captcha/drawing-captcha-frontend","last_synced_at":"2026-03-07T17:33:00.184Z","repository":{"id":248108366,"uuid":"827749957","full_name":"Drawing-Captcha/Drawing-Captcha-Frontend","owner":"Drawing-Captcha","description":"This repository provides the necessary frontend components to integrate the Drawing-Captcha system into your web forms.","archived":false,"fork":false,"pushed_at":"2025-05-27T11:47:19.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T19:38:14.896Z","etag":null,"topics":["captcha","frontend","npm","self-hosted"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@drawing-captcha/drawing-captcha-frontend?activeTab=readme","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/Drawing-Captcha.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,"zenodo":null}},"created_at":"2024-07-12T09:43:07.000Z","updated_at":"2025-05-27T11:47:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7346176-dd66-48f6-9a7d-425acbda6b25","html_url":"https://github.com/Drawing-Captcha/Drawing-Captcha-Frontend","commit_stats":null,"previous_names":["drawing-captcha/drawing-captcha-frontend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Drawing-Captcha/Drawing-Captcha-Frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FDrawing-Captcha-Frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FDrawing-Captcha-Frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FDrawing-Captcha-Frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FDrawing-Captcha-Frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drawing-Captcha","download_url":"https://codeload.github.com/Drawing-Captcha/Drawing-Captcha-Frontend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawing-Captcha%2FDrawing-Captcha-Frontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30223378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["captcha","frontend","npm","self-hosted"],"created_at":"2025-05-22T01:11:42.212Z","updated_at":"2026-03-07T17:33:00.154Z","avatar_url":"https://github.com/Drawing-Captcha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to integrate the Drawing-Captcha Frontend\n\nLearn how to integrate Drawing-Captcha into your web forms. Enhance security and user experience with our easy-to-follow guide on installation, configuration, and usage. Discover features like customizable patterns, responsive design, and seamless integration. Perfect for developers looking to add innovative captcha solutions to their projects.\n\n## Installation\n\n### Option 1: Usage with CDN\n\nFor a quick and easy integration, you can use the Drawing-Captcha frontend via our CDN. This eliminates the need to install the package locally via npm. Simply add the following script tag to your HTML file:\n\n```html\n\u003cscript src=\"https://cdn.drawing-captcha.com/captcha.js\"\u003e\u003c/script\u003e\n```\n\n### Option 2: Installation via npm\n\nIf you prefer to manage the Drawing-Captcha frontend locally within your project, you can install it via npm. Run the following command in your project console:\n\n```bash\nnpm i @drawing-captcha/drawing-captcha-frontend\n```\n\n## Implementation Guide\n\n### Step 1: Initialize Captcha\n\nFirst, you need to call the initialize function from the package you just installed. Add the following script tag to your HTML:\n\n```html\n\u003cscript src=\"/js/captcha.js\" onload=\"(function(){initializeCaptcha()})()\"\u003e\u003c/script\u003e\n```\n\n### Step 2: Configure Captcha with API Key\n\nGenerate an API key from your Drawing Captcha Instance in the back office. Then, add the API key and server details into the following script variables:\n\n```html\n\u003cscript\u003e\n    var CaptchaHiddenAPIKey = \"YOURKEY\";\n    var CaptchaServerWithPort = \"https://drawing.yourdomain.com\";\n\u003c/script\u003e \n```\n\n### Step 3: Add Drawing-Captcha Attribute to Your Form\n\nTo enable the captcha on your form, add the `drawing-captcha` attribute to the form element. Here is an example of what your form could look like:\n\n```html\n\u003cform drawing-captcha class=\"app-form\" id=\"contactForm\" action=\"./success.html\"\u003e\n    \u003cdiv class=\"app-form-group\"\u003e\n        \u003cinput class=\"app-form-control\" type=\"text\" id=\"name\" placeholder=\"Your Name\" required\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"app-form-group\"\u003e\n        \u003cinput class=\"app-form-control\" type=\"email\" id=\"email\" placeholder=\"EMAIL\" required\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"app-form-group message\"\u003e\n        \u003cinput class=\"app-form-control\" type=\"text\" id=\"message\" placeholder=\"MESSAGE\" required\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"app-form-group buttons\"\u003e\n        \u003cbutton type=\"reset\" class=\"app-form-button\"\u003eCANCEL\u003c/button\u003e\n        \u003cbutton type=\"submit\" class=\"app-form-button\"\u003eSEND\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/form\u003e\n\n\u003cscript\u003e\n    var CaptchaHiddenAPIKey = \"bd494f45-fc75-4a58-a5ae-815d18c35f44\";\n    var CaptchaServerWithPort = \"https://drawing.wpesic.dev\";\n\u003c/script\u003e \n\u003cscript src=\"/js/captcha.js\" onload=\"(function(){initializeCaptcha()})()\"\u003e\u003c/script\u003e\n```\n\n## Additional Resources\n\nFor further information and detailed documentation, please visit the official Drawing-Captcha documentation at [docs.drawing-captcha.com](https://docs.drawing-captcha.com).\n\n## Demo\n\nYou can find a demo of the Drawing-Captcha implementation on GitHub: [Drawing-Captcha-Demo](https://github.com/Drawing-Captcha/Drawing-Captcha-Demo) or try it live at [demo.drawing-captcha.com](https://demo.drawing-captcha.com).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawing-captcha%2Fdrawing-captcha-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrawing-captcha%2Fdrawing-captcha-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawing-captcha%2Fdrawing-captcha-frontend/lists"}