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

react-stock-logo

v0.1.0

Published

React stock logo component: <StockLogo ticker="AAPL" /> and <CompanyLogo domain="stripe.com" />. Light and dark, square option, free, no API key. Built on stock-ticker-logos.

Readme

react-stock-logo

React stock logo component. Show the logo for any stock ticker, ETF or crypto coin with one line, or a company logo from its domain. Light and dark, square tiles for lists, free, no API key.

Watchlist rows built with StockLogo and CompanyLogo, light and dark

For developers

npm install react-stock-logo
import { StockLogo, CompanyLogo } from 'react-stock-logo';

<StockLogo ticker="AAPL" theme="dark" shape="square" size={32} />
<CompanyLogo domain="stripe.com" />

Each component renders a plain <img> that points at a hosted logoapi.sh URL. The package has no runtime dependency except stock-ticker-logos, which builds the URL. React is a peer dependency (16.8 or newer). ESM, CommonJS and TypeScript types are included.

Dark background? Add theme="dark". Light is the default.

| Prop | Component | Default | Notes | | --- | --- | --- | --- | | ticker | StockLogo | required | Stock, ETF or coin symbol, any case: AAPL, VOO, BTC | | domain | CompanyLogo | required | stripe.com, www. and https:// are fine | | theme | both | light | dark for dark backgrounds | | shape | StockLogo | none | square gives an always 1:1 tile, best for watchlists | | size | both | 32 | Sets width and height in px | | alt | both | AAPL logo | Override for your own wording | | domain | StockLogo | none | Optional. If the logo fails to load, the site favicon is shown |

Behavior:

  • loading="lazy", decoding="async", width and height set, so the page does not jump.
  • If the image fails, it falls back to the favicon route (https://logoapi.sh/favicon/{domain}) when a domain is known, then to a letter tile. Your own onError still runs first.
  • Any other <img> prop (className, style, title) passes through.
  • Need only the URL? import { srcFor } from 'react-stock-logo' returns the hosted URL string.

Plain URL, no React needed:

<img src="https://logoapi.sh/ticker/AAPL.svg" alt="AAPL logo" height="32">
<img src="https://logoapi.sh/dark/ticker/AAPL.svg?shape=square" alt="AAPL logo" height="32">

Light and dark: https://logoapi.sh/ticker/AAPL.svg and https://logoapi.sh/dark/ticker/AAPL.svg. Square tile: add ?shape=square.

Free tier stays free: we give 12 months' notice before it is reduced or removed. No key, no attribution. More at logoapi.sh.

License

MIT for the code. Logos are trademarks of their owners.