{"id":13413488,"url":"https://github.com/steambap/captcha","last_synced_at":"2026-01-12T06:37:21.308Z","repository":{"id":39345431,"uuid":"103233604","full_name":"steambap/captcha","owner":"steambap","description":":sunglasses:Package captcha provides an easy to use, unopinionated API for captcha generation","archived":false,"fork":false,"pushed_at":"2024-01-13T01:53:20.000Z","size":230,"stargazers_count":151,"open_issues_count":0,"forks_count":26,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-07-31T20:52:23.578Z","etag":null,"topics":["captcha","captcha-generator","golang","golang-library","image-captcha"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/steambap/captcha","language":"Go","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/steambap.png","metadata":{"files":{"readme":"README.md","changelog":"history.md","contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","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":"2017-09-12T06:52:15.000Z","updated_at":"2024-07-27T19:17:48.000Z","dependencies_parsed_at":"2024-06-18T13:53:39.630Z","dependency_job_id":"82e2826a-0e55-462a-bad3-9d2a839b4b28","html_url":"https://github.com/steambap/captcha","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steambap%2Fcaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steambap%2Fcaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steambap%2Fcaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steambap%2Fcaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steambap","download_url":"https://codeload.github.com/steambap/captcha/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243635466,"owners_count":20322945,"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","golang","golang-library","image-captcha"],"created_at":"2024-07-30T20:01:41.511Z","updated_at":"2026-01-12T06:37:21.303Z","avatar_url":"https://github.com/steambap.png","language":"Go","readme":"\u003e Package captcha provides an easy to use, unopinionated API for captcha generation.\n\n\u003cdiv\u003e\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/steambap/captcha)](https://pkg.go.dev/github.com/steambap/captcha)\n[![Build Status](https://github.com/steambap/captcha/workflows/CI/badge.svg)](https://github.com/steambap/captcha/actions?workflow=CI)\n[![codecov](https://codecov.io/gh/steambap/captcha/branch/main/graph/badge.svg)](https://codecov.io/gh/steambap/captcha)\n[![Go Report Card](https://goreportcard.com/badge/github.com/steambap/captcha)](https://goreportcard.com/report/github.com/steambap/captcha)\n\n\u003c/div\u003e\n\n## Why another captcha generator?\nI want a simple and framework-independent way to generate captcha. It also should be flexible, at least allow me to pick my favorite font.\n\n## install\n```\ngo get github.com/steambap/captcha\n```\n\n## usage\n```Go\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[documentation](https://pkg.go.dev/github.com/steambap/captcha) |\n[example](example/basic/main.go) |\n[font example](example/load-font/main.go)\n\n## sample image\n![image](example/captcha.png)\n\n![image](example/captcha-math.png)\n\n## Compatibility\n\nThis package uses embed package from Go 1.16. If for some reasons you have to use pre 1.16 version of Go, reference pre 1.4 version of this module in your go.mod.\n\n## Contributing\nIf your found a bug, please contribute!\nsee [contributing.md](contributing.md) for more detail.\n\n## License\n[MIT](LICENSE)\n","funding_links":[],"categories":["Microsoft Office","其他杂项","Miscellaneous","杂项","Go","Uncategorized","其他","\u003cspan id=\"其他-miscellaneous\"\u003e其他 Miscellaneous\u003c/span\u003e"],"sub_categories":["Uncategorized","暂未分类","未分类的","Strings","Advanced Console UIs","交流","暂未分类这些库被放在这里是因为其他类别似乎都不适合。","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteambap%2Fcaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteambap%2Fcaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteambap%2Fcaptcha/lists"}