{"id":24196784,"url":"https://github.com/pchchv/captcha","last_synced_at":"2025-08-22T11:05:25.166Z","repository":{"id":169664012,"uuid":"645682183","full_name":"pchchv/captcha","owner":"pchchv","description":"captcha provides an simple, unopinionated API for captcha generation","archived":false,"fork":false,"pushed_at":"2023-05-30T08:54:13.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T08:24:00.305Z","etag":null,"topics":["captcha","captcha-generator","go","go-package","golang","golang-library","golang-package","image-captcha"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pchchv.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":"2023-05-26T07:43:48.000Z","updated_at":"2023-05-30T09:13:18.000Z","dependencies_parsed_at":"2023-06-09T08:45:25.190Z","dependency_job_id":null,"html_url":"https://github.com/pchchv/captcha","commit_stats":null,"previous_names":["pchchv/captcha"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pchchv/captcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchchv%2Fcaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchchv%2Fcaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchchv%2Fcaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchchv%2Fcaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pchchv","download_url":"https://codeload.github.com/pchchv/captcha/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchchv%2Fcaptcha/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263586030,"owners_count":23484496,"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":["captcha","captcha-generator","go","go-package","golang","golang-library","golang-package","image-captcha"],"created_at":"2025-01-13T19:38:05.621Z","updated_at":"2025-07-04T17:12:20.448Z","avatar_url":"https://github.com/pchchv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# *captcha* provides an simple, unopinionated API for captcha generation\n\n[![goreference](https://pkg.go.dev/badge/github.com/pchchv/captcha)](https://pkg.go.dev/github.com/pchchv/captcha)\n[![Go Report Card](https://goreportcard.com/badge/github.com/pchchv/captcha)](https://goreportcard.com/report/github.com/pchchv/captcha)\n\n## Compatibility\n\nThis package uses embed package from Go 1.16.\n\n## Usage\n\n```Go\nimport \"github.com/pchchv/captcha\"\n\nfunc handle(w http.ResponseWriter, r *http.Request) {\n\t// create a captcha of 150x50px\n\tdata, _ := captcha.New(150, 50)\n\n\t// session come from other library such as gorilla/sessions\n\tsession.Values[\"captcha\"] = data.Text\n\tsession.Save(r, w)\n\t// send image data to client\n\tdata.WriteImage(w)\n}\n\n```\n\n## Sample image\n![image](examples/captcha.png)\n\n\n[documentation](https://pkg.go.dev/github.com/pchchv/captcha) |\n[example](examples/exa,ple/main.go) |\n[font example](examples/load-font/main.go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpchchv%2Fcaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpchchv%2Fcaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpchchv%2Fcaptcha/lists"}