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

@tapcolorapp/api

v1.0.0

Published

Official TypeScript/JavaScript client for the TapColor Developer API — browse coloring categories and collections.

Readme

@tapcolorapp/api

Official TypeScript/JavaScript client for the TapColor Developer API — browse coloring categories and collections over a simple REST API.

Zero dependencies. Works in Node 18+, Deno, Bun and modern browsers.

Install

# npm
npm install @tapcolorapp/api

# JSR (Deno / Node / Bun)
deno add jsr:@tapcolorapp/api
npx jsr add @tapcolorapp/api

Quickstart

import { TapColor } from "@tapcolorapp/api";

const tc = new TapColor({ apiKey: "YOUR_API_KEY" });

// List categories
const cats = await tc.categories();
console.log(cats.total, "categories");

// List collections (filter + search + pagination)
const page = await tc.coloringPages({ category: "animals", limit: 20 });
page.items.forEach((c) => console.log(c.subtopic, "->", c.url));

// Iterate EVERY collection, auto-paginated
for await (const c of tc.allColoringPages({ category: "animals" })) {
  console.log(c.subtopicSlug);
}

API

new TapColor(options)

| Option | Type | Default | Notes | | --------- | ------------------ | ----------------------------- | ----------------------------------- | | apiKey | string | — | Required. Sent as the api-key header. | | baseUrl | string | https://api.tapcolor.app | Override for testing/staging. | | fetch | typeof fetch | global fetch | Custom fetch for Node <18 / tests. |

tc.categories(): Promise<CategoriesResponse>

Lists all 25 categories.

tc.coloringPages(params?): Promise<ColoringPagesResponse>

| Param | Type | Description | | ---------- | -------- | -------------------------------------------------- | | category | string | Category slug, e.g. animals. | | q | string | Search collection names (partial, case-insensitive). | | limit | number | 1–100 (default 20). | | offset | number | Pagination offset. |

tc.allColoringPages(params?): AsyncGenerator<Collection>

Auto-paginates and yields every matching collection.

Errors

Any non-2xx response throws a TapColorError with status and body:

import { TapColor, TapColorError } from "@tapcolorapp/api";

try {
  await new TapColor({ apiKey: "bad" }).categories();
} catch (err) {
  if (err instanceof TapColorError) {
    console.error(err.status, err.message); // 401 "invalid or missing api-key"
  }
}

Rate limit: 120 requests / 10 minutes per key → 429.

License

MIT © TapColor