Installation
Install the SDK
Section titled “Install the SDK”bash pnpm add comic-vine-sdk bash npm install comic-vine-sdk bash yarn add comic-vine-sdk Optional Store Packages
Section titled “Optional Store Packages”The client works without any stores by default (no caching, deduplication, or rate limiting). Install store packages from @http-client-toolkit to enable these features:
In-Memory Stores
Section titled “In-Memory Stores”Best for development, testing, and single-instance applications. Fastest performance with zero setup.
bash pnpm add @http-client-toolkit/store-memory
bash npm install @http-client-toolkit/store-memory
bash yarn add @http-client-toolkit/store-memory
SQLite Stores
Section titled “SQLite Stores”Recommended for production. Persistent across restarts with cross-process support.
bash pnpm add @http-client-toolkit/store-sqlite
bash npm install @http-client-toolkit/store-sqlite
bash yarn add @http-client-toolkit/store-sqlite
TypeScript Support
Section titled “TypeScript Support”The SDK is written in TypeScript and provides comprehensive type definitions out of the box:
- Full type safety for all Comic Vine resources and fields
- Intelligent field selection with automatic type narrowing
- Auto-completion for all methods, parameters, and response properties
- Filter validation with type-safe filter options per resource
No additional @types packages are needed. Types are generated from actual Comic Vine API responses, ensuring accuracy and up-to-date definitions.
Requirements
Section titled “Requirements”- Node.js 20 or later
- TypeScript 5.0+ (recommended, but not required)
Upgrading From v1
Section titled “Upgrading From v1”If you are migrating from @comic-vine/client, see the v1 to v2 migration guide.