npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@podlink/icons

v0.2.0

Published

Podcast platform icons and badges — framework-agnostic SVG strings + React components

Downloads

480

Readme

@podlink/icons

Podcast platform icons and "Listen on" badges — framework-agnostic SVG strings + React components.

80+ podcast platforms. Light and dark themes. Three icon shapes. Static SVG assets included.

Install

npm install @podlink/icons

Quick start

React components

import { PlatformIcon, PlatformBadge } from '@podlink/icons/react'

// Square icon with superellipse (iOS-style) clip
<PlatformIcon platform="spotify" size={48} />

// "Listen on" badge
<PlatformBadge platform="applepodcasts" theme="dark" />

Core (framework-agnostic)

SVG strings you can use in any environment — server-side rendering, vanilla JS, web components, etc.

import { getIconData, resolveBadgeContent } from '@podlink/icons'

const data = getIconData('spotify')
// data.content  → raw SVG inner content
// data.viewBox  → "0 0 32 32"

// Get badge SVG content for a dark theme
const badgeSvg = resolveBadgeContent(data, 'dark')

Static SVG files

The package includes pre-built SVG files you can reference directly:

<!-- From npm (after install) -->
<img src="node_modules/@podlink/icons/static/icons/spotify.svg" width="32" height="32" />
<img src="node_modules/@podlink/icons/static/badges/spotify-dark.svg" height="40" />

Import via the package exports map:

import iconUrl from '@podlink/icons/static/icons/spotify.svg'
import badgeUrl from '@podlink/icons/static/badges/spotify-light.svg'

Next.js App Router

The core entrypoint (@podlink/icons) is safe to use from Server Components, route handlers, and shared server helpers because it returns framework-agnostic SVG data.

The React entrypoint (@podlink/icons/react) is also safe to render from Server Components. Its components are prop-only and do not use context or browser APIs.

For Podlink-specific defaults, styling, or accessibility choices, prefer local wrappers in your app:

import { PlatformIcon } from '@podlink/icons/react'

export function PlatformAvatarIcon({ platform }: { platform: string }) {
  return <PlatformIcon platform={platform} decorative />
}

Server Components can render the package component directly or render your local wrapper:

import { PlatformAvatarIcon } from './PlatformAvatarIcon'

export function PodcastPlatform({ platform }: { platform: string }) {
  return <PlatformAvatarIcon platform={platform} />
}

If you only need SVG strings or metadata in server code, import from @podlink/icons.

React API

<PlatformIcon>

Renders a platform icon as an inline SVG.

| Prop | Type | Default | Description | |------|------|---------|-------------| | platform | string | — | Platform ID (required) | | shape | 'superellipse' \| 'circle' \| 'square' | 'superellipse' | Clip shape | | size | number | 32 | Width and height in pixels | | className | string | — | CSS class | | style | CSSProperties | — | Inline styles | | aria-label | string | "{Platform} icon" | Accessible label | | decorative | boolean | false | If true, hides from assistive tech |

<PlatformBadge>

Renders a "Listen on {Platform}" badge as an inline HTML element.

| Prop | Type | Default | Description | |------|------|---------|-------------| | platform | string | — | Platform ID (required) | | theme | 'light' \| 'dark' | 'light' | Color theme | | label | string | 'Listen on' | Text above the platform name | | platformName | string | Platform display name | Override the platform name | | shape | 'superellipse' \| 'circle' \| 'square' | 'superellipse' | Icon clip shape | | dir | 'ltr' \| 'rtl' | 'ltr' | Text direction | | height | number | 40 | Badge height in pixels | | className | string | — | CSS class | | style | CSSProperties | — | Inline styles | | aria-label | string | "{label} {Platform}" | Accessible label | | decorative | boolean | false | If true, hides from assistive tech |

Core API

All exports are available from @podlink/icons.

Platform data

import {
  platforms,
  resolvePlatformId,
  hasPlatformIcon,
  getPlatform,
  getIconData,
} from '@podlink/icons'

platforms                 // Platform[] — all platforms
resolvePlatformId(input)  // PlatformId | undefined
hasPlatformIcon(input)    // boolean
getPlatform(input)        // Platform | undefined
getIconData(input)        // IconData | undefined

Platform lookups accept canonical IDs and known aliases. They also normalize common slug input, so amazon, Amazon Music, and amazon-music all resolve to the canonical amazonmusic ID.

Badge resolution

import { resolveBadgeContent, resolveBadgeViewBox } from '@podlink/icons'

// Resolves the correct SVG content for a badge variant
// Light: badge → icon fallback
// Dark:  badgeDark → badge → icon fallback
resolveBadgeContent(data, 'light')  // string
resolveBadgeContent(data, 'dark')   // string

resolveBadgeViewBox(data)  // string — viewBox for the badge

Shapes

import { shapes } from '@podlink/icons'

shapes.superellipse  // iOS-style squircle (default)
shapes.circle
shapes.square

// Each ShapeDefinition has:
//   svgPath(size: number): string   — <path d="..."> for the shape
//   clipPath(size: number): string  — <clipPath> element as string

SVG utilities

import { extractSvgContent, extractViewBox, prefixIds, minifySvg } from '@podlink/icons'

extractSvgContent(svgString)       // inner content of an <svg> element
extractViewBox(svgString)          // viewBox attribute value
prefixIds(svgContent, 'myprefix')  // prefix all id/url(#...) references
minifySvg(svgString)               // minify SVG markup

Types

import type { PlatformId, Platform, IconData, IconShape, ShapeDefinition } from '@podlink/icons'

Shapes

Icons support three clip shapes:

  • superellipse (default) — iOS-style squircle with a smooth continuous curve
  • circle — circular clip
  • square — no clipping, raw icon bounds

Platforms

The package includes 80+ podcast platforms. See src/data/platforms.json for the full list of platform IDs and display names.

Each platform has an active flag — inactive platforms are deprecated but still included for backwards compatibility.

License

MIT