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

comic-vine-sdk

v2.0.1

Published

A JS/TS client for the Comic Vine API

Downloads

537

Readme

Comic Vine SDK

A TypeScript client library for the Comic Vine API with built-in caching, deduplication, and rate limiting. HTTP, caching, deduplication, and rate limiting are delegated to @http-client-toolkit/core.

Features

  • Type-safe API with detailed type definitions for all 19 Comic Vine resources
  • Field selection with automatic TypeScript type narrowing
  • Automatic pagination via async iteration
  • Caching, deduplication, and rate limiting via @http-client-toolkit/core
  • Comprehensive error handling with domain-specific error types

Quick Start

import ComicVine from 'comic-vine-sdk';

const client = new ComicVine({ apiKey: 'your-api-key' });

// Get a specific issue
const issue = await client.issue.retrieve(1);

// Search for characters
const characters = await client.character.list({
  filter: { name: 'Spider-Man' },
  limit: 10,
});

// Auto pagination
for await (const issue of client.issue.list({ filter: { volume: 796 } })) {
  console.log(issue.name);
}

Documentation

Full documentation is available at allymurray.github.io/comic-vine, including:

  • Getting Started - Installation, configuration, and quick start
  • Migration Guide - Upgrading from @comic-vine/client v1 to comic-vine-sdk v2
  • Guides - Field selection, filtering, pagination, caching, and rate limiting
  • API Reference - All 19 resources with full TypeScript interfaces
  • Examples - Basic and advanced usage patterns

For store internals, custom implementations, and advanced caching or rate limiting behavior, see the HTTP Client Toolkit documentation.

Code Generation

Resource types, classes, tests, and mock data are generated from sample API responses. See scripts/README.md for the full pipeline documentation and architecture diagrams.

# Generate all types, resource classes, tests, and mock data from samples
pnpm sdk:generate

# Fetch fresh API samples (requires COMIC_VINE_API_KEY)
COMIC_VINE_API_KEY=your-key pnpm samples:fetch

Contributing

See CONTRIBUTING.md for development setup and contribution guidelines.

License

MIT - see LICENSE for details.