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

@sundaywong/launched-badges

v0.1.8

Published

Universal badges for your product launches — celebrate on Lovable, Reddit, X, Hacker News, and more, not just Product Hunt.

Downloads

41

Readme

Launched Badges

Universal badges for your product launches. Product Hunt isn’t the only place. Celebrate launches anywhere — Lovable, Reddit, X, Hacker News, and beyond — with drop-in React components.

Launched Badges is a set of reusable, plug-and-play React components that showcase your product launches across platforms. Whether it’s Lovable, Reddit, X, or Hacker News, highlight your milestones where your users are — not just on Product Hunt.

🚀 Features

  • 🏷️ Prebuilt badges for Lovable, Reddit, Hacker News, X, Facebook, Instagram, LinkedIn, GitHub, MicroLaunch
  • 🎨 Light/dark themes with flexible sizing and layout control
  • ⚙️ Fine-grained over display — customize logo, text, icons, and count (upvotes, likes, followers, link-only, or none)
  • 🖼️ Scalable SVG components built for React — plug-and-play and pixel-perfect
  • 🧩 Powerful base component for full customizability

✨ Try it now

Visit our interactive demo on Homepage to customize and preview badges for your projects.

📋 Supported Platforms

  • Lovable
  • Reddit
  • Hacker News
  • X (Twitter)
  • Facebook
  • Instagram
  • LinkedIn
  • GitHub
  • MicroLaunch
  • Custom - Create your own badges with the generic base component

🔧 Prerequisites

Launched Badges are built with React. Please ensure React is installed and properly configured in your project.

{
  "react": "^18.0.0 || ^19.0.0",
  "react-dom": "^18.0.0 || ^19.0.0"
}

Installation

npm install @sundaywong/launched-badges
# or
yarn add @sundaywong/launched-badges
# or
pnpm add @sundaywong/launched-badges

Usage

Lovable Badge

   

import { LovableBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <LovableBadge 
      count="234" // Can use string or number
      linkUrl="https://launched.lovable.dev/<project-slug>"
      theme="dark"
      iconType="upvote"
    />
  );
};

Reddit Badge

   

import { RedditBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <RedditBadge 
      count={"1.2k"}
      linkUrl="https://reddit.com/..."
      iconType="upvote"
    />
  );
};

Hacker News Badge

   

import { HackerNewsBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <HackerNewsBadge 
      count={567}
      linkUrl="https://news.ycombinator.com/item?id=<post-id>"
      iconType="upvote"
    />
  );
};

Facebook Badge

   

import { FacebookBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <FacebookBadge 
      count="10k+" // Formatted count
      featuredText="FOLLOW US ON"
      linkUrl="https://facebook.com/..."
      iconType="likes"
    />
  );
};

Instagram Badge

   

import { InstagramBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <InstagramBadge 
      count={9876}
      featuredText="FOLLOW US ON"
      linkUrl="https://instagram.com/..."
      iconType="followers"
    />
  );
};

LinkedIn Badge

   

import { LinkedInBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <LinkedInBadge 
      count={101}
      featuredText="FEATURED ON"
      linkUrl="https://linkedin.com/..."
      iconType="likes"
      theme="light"
    />
  );
};

Twitter Badge

   

import { TwitterBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <TwitterBadge 
      linkUrl="https://x.com/..."
      theme="light"
      height={54}
      featuredText="FIND US ON"
      displayMode="link"
    />
  );
};

GitHub Badge

   

import { GitHubBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <GitHubBadge 
      count={1205}
      linkUrl="https://github.com/..."
      theme="light"
      iconType="star"
    />
  );
};

MicroLaunch Badge

   

import { MicroLaunchBadge } from '@sundaywong/launched-badges';

const MyComponent = () => {
  return (
    <MicroLaunchBadge 
      count={570}
      linkUrl="https://microlaunch.net/p/<project-slug>"
      theme="light"
      iconType="upvote"
    />
  );
};

Creating Custom Platform Badges

You can easily create custom badges for other platforms by extending the SocialBadge component:

import React from 'react';
import { SocialBadge, SocialBadgeProps } from '@sundaywong/launched-badges';

interface MyCustomBadgeProps extends Omit<SocialBadgeProps, 'platformName' | 'colors' | 'logoComponent'> {
  // Add any unique props for your custom badge if needed
}

export const MyCustomBadge: React.FC<MyCustomBadgeProps> = (props) => {
  // Custom logo
  const customLogo = (
    <svg width="29" height="29" viewBox="0 0 29 29">
      {/* Your custom SVG logo */}
    </svg>
  );

  // Custom colors
  const customColors = {
    light: {
      border: '#ff000020',
      text: '#ff0000',
      background: '#FFFFFF',
    },
    dark: {
      border: '#363636',
      text: '#FFFFFF',
      background: '#201e1e',
    },
  };
  
  const colors = props.theme === 'dark' ? customColors.dark : customColors.light;

  return (
    <SocialBadge
      {...props}
      platformName="My Platform"
      colors={colors}
      logoComponent={customLogo}
    />
  );
};

API

SocialBadge Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | count | number \| string | - | The count to display. Can be a number or a formatted string (max 6 chars, e.g., "10.5k"). | | theme | 'light' \| 'dark' \| string | 'light' | The theme of the badge. Use 'light' or 'dark', or provide a custom theme string (affects default colors if not overridden). | | width | number | 220 | The width of the badge in pixels. Scales height proportionally if height is not set. | | height | number | - | The height of the badge in pixels. Scales width proportionally if width is not set. | | featuredText | string | 'FEATURED ON' | Text shown above the platform name (max 15 characters). | | platformName | string | 'Social' | The platform name text (used if platformNameComponent is not provided). | | platformNameComponent | React.ReactNode | - | Custom React node to render the platform name (overrides platformName). | | linkEnabled | boolean | true | Whether to wrap the badge in a link specified by linkUrl. | | linkUrl | string | - | URL to link to when the badge is clicked (if linkEnabled is true). | | displayMode | 'count' \| 'link' \| 'none' | 'count' | What to display on the right side: the count/icon, a link icon, or nothing. | | iconType | 'upvote' \| 'upvote-arrow' \| 'likes' \| 'followers' \| 'star' | 'upvote' | Icon type to display next to the count when displayMode is 'count'. | | colors | { border?: string; text?: string; background?: string; } | - | Object to override specific colors (border, text, background). Takes precedence over theme defaults. | | logoComponent | React.ReactNode | - | Custom React node for the logo on the left side. | | viewBoxWidth | number | 220 | Override the default SVG viewBox width. Adjusted automatically if displayMode is 'none'. | | countGroupX | number | 172 | Override the default X position for the count/icon group. |

Platform-specific Badge Props

Platform-specific badges (LovableBadge, RedditBadge, etc.) accept all SocialBadge props except platformName, colors, and logoComponent, as these are pre-configured for each platform. They provide a convenient way to use styled badges without manual configuration.

Testing

This package includes a comprehensive test suite using Vitest.

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Run tests in watch mode during development
npm run test:watch