Core Packages
@shopify/shopify-api
Framework-agnostic core library for OAuth, APIs, and webhooks
@shopify/shopify-app-remix
Build Shopify apps with Remix framework
@shopify/shopify-app-express
Build Shopify apps with Express.js
@shopify/shopify-app-react-router
Build Shopify apps with React Router v7
Architecture
The Shopify App JavaScript SDK follows a layered architecture:Core Layer (@shopify/shopify-api)
The foundation library that provides:
- OAuth authentication flow
- Admin API and Storefront API clients
- Webhook handling and validation
- Session management interfaces
- Billing API integration
- REST and GraphQL support
Framework Adapters
Framework-specific packages that wrap the core library:
- Remix:
@shopify/shopify-app-remix - Express:
@shopify/shopify-app-express - React Router:
@shopify/shopify-app-react-router
Key Features
Authentication & Authorization
OAuth 2.0 Flow
OAuth 2.0 Flow
All packages support Shopify’s OAuth 2.0 authentication flow with automatic token management:
- Authorization code flow
- Token exchange (Remix & React Router)
- Online and offline access tokens
- Automatic token refresh
Session Management
Session Management
Built-in session handling with support for multiple storage backends:
- Automatic session creation and validation
- Scope verification
- Token expiration handling
- Online and offline session types
API Clients
Webhook Handling
All packages provide webhook validation and processing:Choosing the Right Package
- Starting Fresh
- Existing Express App
- Custom Framework
Recommended: @shopify/shopify-app-remixRemix provides the best developer experience with:
- Modern React framework
- Built-in routing and data loading
- TypeScript support
- Excellent performance
Installation
Version Requirements
All packages require Node.js 20.0.0 or higher
| Package | Current Version | Node Requirement |
|---|---|---|
| @shopify/shopify-api | 12.3.0 | >= 20.0.0 |
| @shopify/shopify-app-remix | 4.1.1 | >= 20.10.0 |
| @shopify/shopify-app-express | 6.0.5 | >= 20.0.0 |
| @shopify/shopify-app-react-router | 1.1.1 | >= 20.0.0 |
Next Steps
Core API Guide
Learn about the @shopify/shopify-api package
Remix Guide
Build apps with Remix
Express Guide
Build apps with Express
React Router Guide
Build apps with React Router