GoBadge Dynamic: Transform Any JSON API to Universal Badge Generator
These articles are AI-generated summaries. Please check the original sources for full details.
From Module Stats to Universal Badges
CinfiniteDev has released GoBadge v2, transitioning the tool from a niche Go module tracker to a universal badge service. The system now allows developers to generate badges from any HTTPS JSON endpoint via a single URL pattern.
Why This Matters
Traditional badge services often rely on hardcoded integrations for specific platforms, creating a bottleneck when users need to display proprietary metrics or data from emerging APIs. By implementing an open-ended dynamic endpoint that supports dot notation for nested JSON, GoBadge removes the need for custom middleware or dedicated backend services just to display simple API values in documentation.
Key Insights
- Universal Integration (2026): Transitioned from three hardcoded endpoints (stars, imports, imported-by) to an open-ended system supporting any JSON API.
- Nested Data Extraction: Implementation of dot notation allows users to access deep JSON paths, such as extracting ‘license.spdx_id’ from a GitHub repository object.
- Multi-Value Aggregation: Support for repeating the ‘value’ parameter enables multiple data points within a single badge using custom separators.
Working Examples
Single value extraction from GitHub API with custom color.

Multiple value extraction using the ‘sep’ parameter for formatting.

Nested JSON extraction using dot notation.

Practical Applications
- ، { “use_case”: “Infrastructure monitoring (Custom Metrics API + README), displaying internal health or build status via dynamic badges.”, “pitfall”: “Using non-HTTPS endpoints; the system requires HTTPS JSON endpoints for functionality.” }
- { “use_case”: “Package Manager Tracking (npm, PyPI, Crates.io + Versioning), automating download and dependency counts on project landing pages.”, “pitfall”: “Incorrect key mapping; failing to use dot notation for nested JSON objects results in failed value extraction.” }
References:
-
https://dev.to/cinfinitedev_engine/gobadge-dynamic-from-module-stats-to-universal-badges-361l -
https://gobadge.vercel.app
Continue reading
Next article
Building a Production-Grade Async Job Queue: Engineering Resilience and Backpressure
Related Content
How to Submit Your First WordPress Core Patch: A Technical Guide
Learn how to contribute to WordPress core by resolving a 4-year-old REST API discoverability bug using focused 13-line patches.
KitchenAsty: A TypeScript Monorepo Alternative to Toast and Square
Sharang Parnerkar launches KitchenAsty, an MIT-licensed restaurant management system featuring 27,000 lines of TypeScript and 118 API endpoints.
OpenSparrow v2.3: Zero-Dependency Visual Admin Panel for PHP and PostgreSQL
OpenSparrow v2.3 launches with ERD mapping, M2M support, and a zero-dependency architecture for PHP 8.1 and PostgreSQL.