{"id":23606167,"url":"https://github.com/reverier-xu/biosvg","last_synced_at":"2025-05-09T01:07:36.935Z","repository":{"id":191172216,"uuid":"684029387","full_name":"Reverier-Xu/biosvg","owner":"Reverier-Xu","description":"Captcha based on SVG.","archived":false,"fork":false,"pushed_at":"2025-04-04T19:57:57.000Z","size":39,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T01:07:24.486Z","etag":null,"topics":["captcha","captcha-generator","rust","svg","web"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/biosvg","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Reverier-Xu.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-08-28T09:56:02.000Z","updated_at":"2025-04-04T19:57:51.000Z","dependencies_parsed_at":"2023-08-28T15:12:57.623Z","dependency_job_id":"f70fe061-0022-4256-9361-f4b2c2ecbc20","html_url":"https://github.com/Reverier-Xu/biosvg","commit_stats":null,"previous_names":["reverier-xu/biosvg"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reverier-Xu%2Fbiosvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reverier-Xu%2Fbiosvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reverier-Xu%2Fbiosvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reverier-Xu%2Fbiosvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reverier-Xu","download_url":"https://codeload.github.com/Reverier-Xu/biosvg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171253,"owners_count":21865292,"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","rust","svg","web"],"created_at":"2024-12-27T13:15:35.385Z","updated_at":"2025-05-09T01:07:36.905Z","avatar_url":"https://github.com/Reverier-Xu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BioSvg\n\nCaptcha based on SVG.\n\n## Original idea\n\n[SVG绘制原理与验证码](https://blog.woooo.tech/posts/svg_1/)\n\n## Usage\n\n`cargo add biosvg`\n\n```rust\nlet (answer, svg) = BiosvgBuilder::new()\n    .length(4)\n    .difficulty(6)\n    .colors(vec![\n        \"#0078D6\".to_string(),\n        \"#aa3333\".to_string(),\n        \"#f08012\".to_string(),\n        \"#33aa00\".to_string(),\n        \"#aa33aa\".to_string(),\n    ])\n    .build()\n    .unwrap();\nprintln!(\"answer: {}\", answer);\nprintln!(\"svg: {}\", svg);\n```\n\n## Example\n\n![ncuz](samples/ncuz.svg)\n![wxgc](samples/wxgc.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freverier-xu%2Fbiosvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freverier-xu%2Fbiosvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freverier-xu%2Fbiosvg/lists"}