Skip to content

feat: static BCOS badge generator web tool (issue #2292)#1761

Open
createkr wants to merge 2 commits intoScottcjn:mainfrom
createkr:feat/issue2292-bcos-badge-generator-web-tool
Open

feat: static BCOS badge generator web tool (issue #2292)#1761
createkr wants to merge 2 commits intoScottcjn:mainfrom
createkr:feat/issue2292-bcos-badge-generator-web-tool

Conversation

@createkr
Copy link
Contributor

Summary: Delivers a static BCOS badge generator page aligned to bounty requirements. Includes cert_id/repo input, live badge preview via /bcos/badge/{cert_id}.svg, markdown embed output, HTML embed output, and style selector (flat / flat-square / for-the-badge) with rustchain.org vintage terminal aesthetic. No backend required. Includes lightweight validation/documentation for deployment under rustchain.org/bcos/badge-generator. Closes #2292.

xr and others added 2 commits March 22, 2026 14:12
- Add tools/bcos_badge_generator.py: Flask web app for generating BCOS badges
- Add tests/test_bcos_badge_generator.py: 34 unit tests (100% pass)
- Add tools/BCOS_BADGE_GENERATOR.md: Comprehensive documentation

Features:
- Dynamic SVG badge generation with tier-based styling (L0/L1/L2)
- Trust score visualization with color coding
- QR code support for verification
- RESTful API for programmatic access
- SQLite database for badge tracking and analytics
- Certificate verification endpoint

API Endpoints:
- GET / - Badge generator UI
- POST /api/badge/generate - Generate badge
- GET /api/badge/verify/<id> - Verify certificate
- GET /api/badge/stats - Get statistics
- GET /badge/<id>.svg - Download badge SVG
- GET /health - Health check

Test Results: 34/34 tests passing

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@github-actions github-actions bot added documentation Improvements or additions to documentation BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) tests Test suite changes size/XL PR: 500+ lines labels Mar 22, 2026
@createkr
Copy link
Contributor Author

RTC payout wallet: RTC1d48d848a5aa5ecf2c5f01aa5fb64837daaf2f35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) documentation Improvements or additions to documentation size/XL PR: 500+ lines tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant