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

logoapi-script

v0.1.4

Published

Stock and crypto logos for pages that can only load scripts from a CDN (sandboxed AI artifacts). One script tag, then <span data-ticker="AAPL">. Original square SVG tiles from logoapi.sh, light and dark. No API key.

Readme

logoapi-script

Stock and crypto logos for pages that can only load scripts from a CDN, such as sandboxed AI artifacts where fetch() and outside images are blocked. One script tag, then one <span> per ticker.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/logo.js"></script>

<span data-ticker="AAPL"></span>
<span data-ticker="BTC" data-size="32"></span>
<span data-ticker="NVDA" data-theme="dark"></span>

The loader reads its own URL and loads one small script per ticker from the same version, for example [email protected]/t/AAPL.js or t/dark/AAPL.js. Each file holds the original square SVG tile served by https://logoapi.sh/ticker/AAPL.svg?shape=square&fallback=404 (dark: /dark/ticker/...), byte for byte. Where that answer is a wordmark too small to read in a tile, and the brand's own favicon is sharp and stands out on that theme's plate, the file holds the tile from ?shape=square instead (also byte for byte); t/list.json lists those files under favicon (as t/SYM and t/dark/SYM). Tickers rendered later by React or other code are picked up too.

| Attribute | Default | Notes | | --- | --- | --- | | data-ticker | required | Stock, ETF or coin symbol, any case. BRK.B, BRK-B and NASDAQ:AAPL work. Put it on an empty element; one that holds anything else is left alone | | data-logoapi | | Same as data-ticker, for pages that already use data-ticker for their own rows. Wins when both are set | | data-size | 48 | Width and height in px | | data-theme | light | dark for dark backgrounds. Set data-theme="dark" on the script tag to make dark the page default |

A ticker with no catalog logo in this version shows a letter tile, sized and centred like a logo. The loader never swaps in a logo from another source. t/list.json lists every ticker in the version.

Pin an exact version, as above. Logos added to the catalog later arrive in later versions.

Logos are trademarks of their owners. See https://logoapi.sh/terms. Code: MIT.