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

tootles-kofi

v1.0.2

Published

React components for embedding kofi shop products into custom web pages

Readme

Tootle's Kofi

Quickstart:

import the css from the module itself in your react project, :

import 'tootles-kofi/dist/tootles-kofi.css';

prepare shop item data, e.g.:

{
    "items": [
        {
            "Alias": "97fc12061b",
            "Name": "Autumn Colors Bucket Hat",
            "Price": 20.0,
            "ThumbnailUrls": [
                "1676cc93-f491-49ea-8c6f-b9cca3544722_50816.png",
                "7cbd00f3-5375-4a25-8a12-a4c7d815813b_50814.png" 
            ], 
            "Description": "Hand-crocheted cotton bucket hat that’s lightweight, breathable, and stylish. Perfect for sunny days..." 
        },
        {
            "Alias": "92c87bf833",
            "Name": "Black w/ Glow-In-The-Dark Ghost Cat Ear Beanie",
            "Price": 25.0,
            "ThumbnailUrls": [
                "0d424630-a20b-4988-b6a1-1cedef76973f_50868.png",
                "5962b092-c526-4f6e-b72e-5b11a4251199_50866.png" 
            ],
            "Description": "Hand-crocheted black cat ear beanie featuring a glow-in-the-dark ghost applique. Cozy, spooky, and p..." 
        } 
    ]
}

import the KofiShopGrid component and pass the list of shop items data to the 'inventory' prop:

import 'tootles-kofi/dist/tootles-kofi.css'
import { KofiShopGrid } from 'tootles-kofi'
....
const MyCustomComponent = ({shop_items_data}) => {
    return (
        <>
        ....
        <!-- this will create a clone of the kofi shop page's search/filter results -->
        <KofiShopGrid inventory={shop_items_data} />
        </>
    )
}

alternatively, you can use the KofiShopCard component to display just one item, e.g.

import 'tootles-kofi/dist/tootles-kofi.css'
import { KofiShopCard } from 'tootles-kofi'
... 
const MyCustomComponent = ({shop_items_data}) => {
    return (
        <>
        ....
        <!-- this will create a clone of a single item from the kofi shop  search/filter results -->
        <KofiShopCard 
          Alias={"97fc12061b"}
          Name={"Autumn Colors Bucket Hat"}
          Price={20.0}
          ThumbnailUrls={[ "1676cc93-f491-49ea-8c6f-b9cca3544722_50816.png" ]}
          Description={"Hand-crocheted cotton bucket hat that’s lightweight, breathable, and stylish. Perfect for sunny days..."} />
        </>
    )
}

Community:

contribute on issues

development notes:

referenced this medium tutorial for building the library https://medium.com/simform-engineering/building-a-component-library-with-react-typescript-and-storybook-a-comprehensive-guide-ba189accdaf5

referenced this medium tutorial for publishing to npm https://medium.com/@irekrog/quick-and-simple-create-and-publish-react-component-on-npm-df528cd26b0