Skip to content

feat(registry): open source batch — release-badge, ci-badge, discord-badge, download-sparkline#26

Merged
jal-co merged 11 commits into
mainfrom
feat/open-source-batch
Apr 22, 2026
Merged

feat(registry): open source batch — release-badge, ci-badge, discord-badge, download-sparkline#26
jal-co merged 11 commits into
mainfrom
feat/open-source-batch

Conversation

@jal-co

@jal-co jal-co commented Apr 22, 2026

Copy link
Copy Markdown
Owner

Open Source Batch

Four new components expanding the GitHub and Ecosystem categories, plus sidebar reorganization and a live Discord badge in the footer.

New Components

Release Badge

Live GitHub release badge showing latest tag, publish date, and pre-release indicator. Three layouts: inline pill, segmented row, expanded card. Async RSC + ISR.

CI Badge

GitHub Actions CI status badge with colored status dots for passing, failing, pending, and cancelled states. Two layouts: inline pill and expanded card. 10-minute ISR cache.

Discord Badge

Discord server badge showing server name and online count via the public widget API. Two layouts: inline pill and expanded card. Includes a discord blurple variant. No bot token required.

Download Sparkline

npm download trend sparkline. Pure SVG, zero charting dependencies. Three chart types (line, area, bar), three time ranges (7d, 30d, 1y). Includes trend indicator (+/-% with colored arrow), average baseline reference line, and date range labels.

Other Changes

  • Sidebar split: Open Source → GitHub (8 items) + Ecosystem (5 items)
  • Footer: Static Discord icon replaced with live DiscordBadge component (blurple variant, server name)
  • Release entry: 2026.04.1 added so all four components get "New" badges
  • shieldcn brief: Product brief for a standalone badge image service (shieldcn.dev)

Checklist

  • Component sources in registry/<name>/
  • registry.json entries with accurate metadata
  • MDX docs pages for all four components
  • Card preview files for all four components
  • pnpm previews:generate run (36 components)
  • Sidebar nav entries in lib/docs.ts
  • Fumadocs meta.json updated
  • Release entry in lib/releases.ts
  • pnpm registry:build passes (36 items)
  • pnpm build passes (87 pages, zero errors)
  • Descriptions aligned across registry, docs, releases, and component headers

Screenshots

Component Dark Light
Release Badge dark light
CI Badge dark light
Discord Badge dark light
Download Sparkline dark light

jal-co added 11 commits April 22, 2026 14:41
… ci-badge

Four new open-source components expanding the badge family:

- release-badge: Live GitHub release badge with tag, date, pre-release
  indicator. Three layouts (inline/row/card). Async RSC + ISR.

- discord-badge: Discord server member count badge via public widget API.
  Two layouts (inline/card). Includes discord blurple variant.

- download-sparkline: npm download trend sparkline. Pure SVG, zero
  charting deps. Three chart types (line/area/bar), three time ranges.

- ci-badge: GitHub Actions CI status badge. Colored status dots for
  passing/failing/pending/cancelled. Two layouts (inline/card).

All follow the established async server component + ISR pattern.
Includes registry entries, MDX docs, card previews, and nav entries.
The Open Source category had 13 items in a flat list. Split into:
- GitHub: repo-specific components (activity-graph, ci-badge,
  commit-graph, contributor-grid, github-button-group,
  github-stars-button, release-badge, repo-card)
- Ecosystem: platform/package badges (discord-badge,
  download-sparkline, license-badge, npm-badge, producthunt-button)

Also adds 2026.04.1 release entry so the four new components
get New badges automatically.
Uses the DiscordBadge component with server ID 1316199667142496307
to show live member count with online indicator in the footer.
Ghost variant, sm size, next to the GitHub icon.
The Discord widget API only exposes online/presence count, not total
members. Updated the inline layout to show the server name by default
with an optional showOnline flag that properly labels the count as
online. Made memberCount optional on DiscordServerData since it
requires a bot token to fetch.

Also adds trend indicator, date range label, and average baseline to
download-sparkline for richer data context.
Synced descriptions across registry.json, MDX frontmatter, docs copy,
release entry, and component file headers to reflect the actual
current behavior (server name not member count, sparkline trend/
baseline/date range features).
@jal-co jal-co merged commit 1102be0 into main Apr 22, 2026
2 checks passed
@jal-co jal-co deleted the feat/open-source-batch branch April 22, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant