Libraries and templates
Use an app template to scaffold a working app in minutes with Shopify CLI, then choose from Shopify's official API libraries or community-maintained options to suit your language and framework.
Anchor to App templatesApp templates
App templates give you a fully working Shopify app out of the box, including OAuth, billing, and webhooks. Use Shopify CLI with the --flavor flag to scaffold from a template.
Shopify recommends the React Router template for most new apps. It uses the @shopify/shopify-app-react-router package and is actively maintained.
| Template | Description |
|---|---|
| React Router template | Recommended for most apps |
| Extension-only template | For apps that only need extensions and no app home |
| Express template | Express, Node.js, and React |
| Ruby template | Ruby on Rails |
| PHP template | PHP with Laravel |
Anchor to Sample appsSample apps
Sample apps demonstrate common patterns and integrations. Use them as a reference or starting point for your own project.
| App | Description |
|---|---|
| Shopify QR Code app | A full-featured example app with QR code generation, built with Node.js and React Router. |
Anchor to Official API librariesOfficial API libraries
Shopify's official libraries handle authentication, versioning, and request management so you can focus on building your app's logic.
| Library | Language | Description |
|---|---|---|
| shopify-api-ruby | Ruby | Ruby gem for the Admin API. Handles OAuth, webhooks, REST, and GraphQL. |
| shopify_app | Ruby / Rails | Rails engine that adds Shopify app scaffolding, session management, and webhooks to a Rails app. |
| shopify-api | Node.js | Library for the Storefront and Admin APIs, OAuth, webhooks, and billing. |
| admin-api-client | Node.js | Lightweight library for making Admin API requests directly, without the full app framework. |
Anchor to Third-party API librariesThird-party API libraries
These community-maintained libraries cover additional languages and frameworks. Shopify doesn't officially maintain them, but they're widely used by the developer community.
| Library | Language | Description |
|---|---|---|
| Shopify-api-node | Node.js | Node Shopify connector |
| shopify-node-api | Node.js | OAuth2 module for Shopify API |
| php-shopify | PHP | PHP SDK for Shopify API |
| shopify-php-sdk | PHP | PHP SDK for development with the Shopify API |
| Basic-Shopify-API | PHP | PHP API wrapper using Guzzle for GraphQL |
| go-shopify | Go | Go library for Shopify |
| ShopifySharp | .NET | .NET library for Shopify |