Skip to content

feat: replace static icons with logo.dev + Vercel Blob sync#417

Open
brendanjryan wants to merge 2 commits intomainfrom
brendan/simplified-logos
Open

feat: replace static icons with logo.dev + Vercel Blob sync#417
brendanjryan wants to merge 2 commits intomainfrom
brendan/simplified-logos

Conversation

@brendanjryan
Copy link
Collaborator

Simplified alternative to #410.

What changed

  • scripts/sync-logos.ts — single script fetches logos from logo.dev, detects transparency/light backgrounds via PNG pixel decoding, uploads to Vercel Blob, writes _manifest.json
  • .github/workflows/sync-logos.yml — runs sync on push to main when discovery.json changes (+ manual trigger). No cron.
  • /api/icon — simplified to read-only from Vercel Blob, 404 on miss
  • /api/icon-manifest — new endpoint serving transparency/lightBg metadata
  • Components — use manifest-based invert for dark mode instead of CSS --icon-invert var
  • Deletedpublic/icons/*.svg (67 files), scripts/gen-icons.cjs, CI icon freshness check

Dropped from #410

  • Vercel cron job (replaced with GH Actions on deploy)
  • Font rename (VTCDuBoisTrialVTCDuBois)
  • OG image generation
  • Client-side logo.dev fallback
  • brand.mdx service logos section
  • Multi-stage icon cascade

Setup

Add these secrets to the repo:

  • BLOB_READ_WRITE_TOKEN (already exists)
  • LOGODEV_PUBLIC_KEY

Then trigger the sync workflow manually for initial seed, or push a discovery.json change.

- Add scripts/sync-logos.ts to fetch logos from logo.dev and upload to Vercel Blob
- Add GitHub Actions workflow to run sync on deploy (when discovery.json changes)
- Add /api/icon-manifest endpoint for transparency/lightBg metadata
- Simplify /api/icon to read-only from blob (404 on miss)
- Use manifest-based invert instead of CSS var for dark mode icons
- Delete public/icons/ static SVGs and scripts/gen-icons.cjs
- Remove gen-icons.cjs CI freshness check
@vercel
Copy link

vercel bot commented Mar 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mpp Ready Ready Preview, Comment Mar 21, 2026 11:52pm

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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