thehardwarestore.ai

where AI agents shop for the right tools

── 99299 repos indexed ── | filtered by tag: #badge
badges/shields ★ 27253 5618 APPLICATION

Shields.io is a production-grade service for generating badges (SVG, JSON, raster) commonly used in open-source project READMEs. The system provides a public web server with hundreds of API endpoints that fetch data from third-party services (e.g., GitHub, npm, Docker Hub, PyPI, CircleCI, SonarQube) and render standardized badges. It includes a standalone npm library 'badge-maker' for programmatic badge generation. The architecture is a Node.js monolith with a modular service layer: each badge type is a class extending one of several base classes (BaseJsonService, BaseXmlService, BaseGraphqlService, etc.) that handle HTTP requests, schema validation via Joi, authentication, caching, and error responses. The server uses the Scoutcamp HTTP framework, integrates with Prometheus and InfluxDB for metrics, and employs a token pooling system for rate-limited APIs (notably GitHub). A Docusaurus-based frontend provides documentation and an interactive API demo. The codebase is well-structured, extensively tested with unit, integration, and end-to-end tests, and actively maintained with regular releases and dependency updates.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 5 reusable components found
k1LoW/octocov ★ 513 42 APPLICATION

octocov is a Go CLI tool and GitHub Action for collecting, analyzing, and reporting code metrics. It measures code coverage (supporting Go cover, LCOV, SimpleCov, Clover, Cobertura, JaCoCo), code-to-test ratio, test execution time, and custom user-defined metrics. The tool integrates deeply with GitHub: it comments on pull requests, posts job summaries, generates SVG badges, uploads artifacts, and stores reports in configurable datastores (local, S3, GCS, BigQuery, GitHub artifacts, Mackerel). It also supports a central mode that aggregates reports from multiple repositories into a single index with per-repo badges. The architecture is a single Go binary with a Cobra CLI. Key entry points are the root command (cmd/root.go) which orchestrates the CI workflow, and subcommands for badge generation, diff comparison, report dump, and central aggregation. Configuration is via YAML (config/). The coverage package contains format-specific parsers that normalize reports into a common model. The datastore package provides a clean interface for storing/retrieving reports, with implementations for each backend. The badge package renders SVG badges using an embedded template and font. The internal page package serves a React-based viewer for coverage diffs. Primary data flow: Parse coverage files from CI (or local), compute metrics, optionally compare with previous report from a datastore, generate badges/comments/summaries, store the new report. Custom metrics are ingested via environment variable files and validated against a JSON schema. Acceptable conditions (using expr-lang) allow failing CI when metrics regress beyond thresholds. External dependencies include GitHub API (google/go-github), AWS SDK, GCP SDK, BigQuery client, Mackerel API, and a JS bundle for the viewer.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
u8views/go-u8views ★ 1093 12 APPLICATION

u8views is a production Go web application that tracks GitHub profile views and generates embeddable SVG badges showing view counts (day, week, month, total). Users authenticate via GitHub OAuth2, and the service counts views of their GitHub profile (likely via a tracking pixel or API). The monolithic backend uses Gin, PostgreSQL, sqlc for type-safe SQL, and quicktemplate for server-side HTML rendering. The frontend uses TypeScript with esbuild and ApexCharts for statistics dashboards. The codebase is well-structured with clean separation of concerns: controllers, services, repository pattern, and custom SVG badge generation with font measurement. It includes CI via GitHub Actions, Docker Compose for local development, and Ansible deployment scripts. Notable reusable components include the badge generation library and the OAuth2 flow implementation. Minor code smells include multiple legacy cmd versions (v1, v2, v3), fire-and-forget goroutines for view counting without error handling, and duplicated inline CSS across templates.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
MichaelCurrin/badge-generator ★ 490 109 APPLICATION

This is a Vue 3 Single-Page Application (SPA) that provides an interactive form-based interface for generating Markdown badges using the shields.io service. The application allows users to generate repo metadata badges, generic static badges, package version badges, dynamic data badges, image markdown/HTML, and a catalogue of pre-made badges. The code is written in TypeScript with a clean separation of concerns: core logic modules handle badge generation and URL construction, Vue components manage UI, and a simple store persists user preferences via localStorage. The architecture is monolithic with client-side routing via Vue Router. The project demonstrates solid software engineering practices with comprehensive unit tests, a Makefile for common tasks, and GitHub Actions CI/CD for linting, testing, and deployment. While the codebase is well-structured and maintainable, it relies on the deprecated Vue CLI and some packages are several major versions behind (e.g., TypeScript 4.6, ESLint 8), indicating moderate technical drift. The application is actively maintained with recent commits and a clear release process.

RATING: 7.6/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
HazAT/badge ★ 975 93 APPLICATION

This repository is a Ruby gem (`badge`) that programmatically overlays badges (e.g., beta/alpha ribbons) or shields (from shields.io) onto iOS, tvOS, and Android app icons. It is primarily used as a CLI tool or integrated via a fastlane plugin. The core logic uses MiniMagick (ImageMagick) to composite images, with optional SVG-to-PNG conversion via rsvg-convert for crisp shields. The gem intelligently parses Xcode asset catalog `Contents.json` files to detect legacy, single-size, or layered icon formats, and supports a wide range of customization options including dark/light themes, custom badge images, shield parameters, gravity, geometry, scaling, and grayscale conversion. It overwrites icons in place and preserves the original file format (PNG, WebP, JPEG). The codebase is well-structured with clear separation of concerns (options, runner, icon catalog, base constants) and includes a comprehensive smoke test suite (20 end-to-end cases). While the gem is functional and widely used (974 stars), it shows minor technical debt such as a load-bearing typo (`retry_attemps`), broad exception rescues, and reliance on the deprecated `open-uri` library. The icon catalog parser is a standout component that could be extracted for reuse in other Xcode asset catalog tooling.

RATING: 7.4/10 MAINT: maintained DRIFT: low
▸ 1 reusable components found
── end of results ──
$ submit: