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

@juanpprieto/shopify-api-types

v2025.10.0

Published

TypeScript types and JSON schemas for Shopify's GraphQL APIs

Readme

@juanpprieto/shopify-api-types

TypeScript definitions for the Shopify GraphQL APIs, automatically generated from the official Shopify GraphQL schemas.

npm version License: MIT

📦 Installation

npm install @juanpprieto/shopify-api-types
# or
yarn add @juanpprieto/shopify-api-types
# or
pnpm add @juanpprieto/shopify-api-types

🚀 Quick Start

Import types for the specific API and version you need:

// Storefront API
import {
  Product,
  Cart,
  Checkout,
} from '@juanpprieto/shopify-api-types/sfapi/2025-10';

// Admin API
import {
  Shop,
  Webhook,
  InventoryLevel,
} from '@juanpprieto/shopify-api-types/admin/2025-10';

// Customer Account API
import {
  Customer,
  Order,
  MailingAddress,
} from '@juanpprieto/shopify-api-types/caapi/2025-10';

📋 Available APIs

| API | Types | Description | Examples | | ------------------------ | ----------- | ------------------------------------------------- | ------------------------------------- | | Storefront API | 266 types | Product catalog, cart, checkout, and others | Product, Cart, Checkout | | Admin API | 1,775 types | Store management, webhooks, analytics, and others | Shop, Webhook, InventoryLevel | | Customer Account API | 298 types | Customer profiles, orders, addresses, and others | Customer, Order, MailingAddress |

🏷️ Version Support

Current Versions

| Version | Status | Description | | ------------ | --------------- | -------------------------------------------------- | | 2025-10 | ✅ Stable | Current stable release with full support | | 2025-07 | 🔒 Maintenance | Previous stable release with security patches only | | 2026-01 | 🚧 Preview | Release candidate for next API version | | unstable | ⚠️ Experimental | Unstable development version - APIs may change |

Import Patterns

You can import types using specific versions or aliases:

// Specific versions
import { Product } from '@juanpprieto/shopify-api-types/sfapi/2025-10';
import { Shop } from '@juanpprieto/shopify-api-types/admin/2025-07';

// Version aliases
import { Product } from '@juanpprieto/shopify-api-types/sfapi/current';
import { Shop } from '@juanpprieto/shopify-api-types/admin/previous';
import { Customer } from '@juanpprieto/shopify-api-types/caapi/next';

📊 What's New in 2025-10

Storefront API Changes

  • 20 total changes with 0 breaking changes
  • New features: Cart cloning, delivery address management, gift card support
  • 🔧 Enhanced cart functionality: Parent-child line item relationships, better error handling

Admin API Changes

  • 158 total changes with 3 breaking changes
  • New features: Theme duplication, fulfillment order rerouting, enhanced metaobjects
  • 🔧 Function improvements: Better function identifier handling across customizations
  • ⚠️ Breaking changes: Collection reorder error types, cart transform function IDs

Customer Account API Changes

  • 4 total changes with 0 breaking changes
  • 🔧 Minor improvements: Internal optimizations and bug fixes

View detailed changelog →

🛠️ Advanced Usage

Schema Validation

JSON schemas are available for runtime validation:

import adminSchema from '@juanpprieto/shopify-api-types/schemas/admin/2025-10';
import storefrontSchema from '@juanpprieto/shopify-api-types/schemas/sfapi/2025-10';

// Use with your preferred validation library

Version Comparisons

Access detailed API change information:

import currentChanges from '@juanpprieto/shopify-api-types/comparisons/current';
import nextChanges from '@juanpprieto/shopify-api-types/comparisons/next';

console.log(currentChanges.admin.summary.totalChanges); // 158
console.log(nextChanges.storefront.summary.breakingChanges); // 1

🔄 Migration Guide

Upgrading from 2025-07 to 2025-10

Most changes are additive and non-breaking:

// ✅ Safe - no breaking changes in Storefront API
import { Product, Cart } from '@juanpprieto/shopify-api-types/sfapi/2025-10';

// ⚠️ Check breaking changes in Admin API
import { CollectionReorderProductsPayload } from '@juanpprieto/shopify-api-types/admin/2025-10';
// Note: userErrors field type changed

Preparing for 2026-01

// Preview upcoming changes
import { Customer } from '@juanpprieto/shopify-api-types/caapi/2026-01';
// Note: returnReason field changes in RequestedLineItemInput

📖 API Reference

Export Structure

@juanpprieto/shopify-api-types/
├── sfapi/{version}          # Storefront API types
├── admin/{version}          # Admin API types
├── caapi/{version}          # Customer Account API types
├── schemas/                 # JSON schemas for validation
└── comparisons/             # API change information

Version Aliases

| Alias | Resolves To | Description | | ---------- | ----------- | ----------------------- | | current | 2025-10 | Current stable version | | previous | 2025-07 | Previous stable version | | next | 2026-01 | Next preview version | | unstable | unstable | Development version |

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

MIT License - see the LICENSE file for details.

🔗 Links


Last updated: November 16, 2025 • Version: 2025.10.0