Developers

The commerce backend you thought you’d have to build.

Products, orders, subscriptions and your own data models behind one API. Build headless storefronts in any framework, extend the dashboard with apps, and ship from the CLI.

Custom data

The API is a JSON file.

Drop a model into your app’s models/ directory and Swell generates the REST resource: fields, validation, relationships and lifecycle events, with no endpoint code to write. Add a field to see what changes.

models/reviews.jsonYour app
{
  "label": "Reviews",
  "public": true,
  "fields": {
    "product": {
      "type": "link",
      "model": "products",
      "key": "product_id"
    },
    "title": { "type": "string", "required": true },
    "rating": {
      "type": "int",
      "min": 1,
      "max": 5,
      "required": true
    }
  }
}
GET/apps/honest_reviews/reviewsList, with where, sort, limit and page
GET/apps/honest_reviews/reviews?expand=productThe link field expands to the product
GET/apps/honest_reviews/reviews/:idOne record
POST/apps/honest_reviews/reviewsCreate, validated against the model
PUT/apps/honest_reviews/reviews/:idUpdate
DELETE/apps/honest_reviews/reviews/:idDelete
Plus lifecycle events your functions and webhooks can listen to.
Headless

Any frontend. One cart, one checkout.

Use swell-js with your store’s public key for the catalog, cart, checkout and customer accounts. Your own models come through the same client.

Next.jsNuxtSvelteKitVueAstroRemix
catalog.js
import swell from 'swell-js';

// The frontend API uses your store's public key.
swell.init('your-store', 'pk_...');

const { results } = await swell.products.list({
  category: 'summer',
  limit: 24,
});

Storefront apps

Create unique storefronts, hosted by Swell on the Cloudflare Network, enabling any experience you can imagine.

Storefront app guide →

Liquid themes

Create themes using Liquid, with compatibility for Shopify theme tags, filters and objects.

Theme guide →
Apps

An app is configuration, not scaffolding.

Six keys in swell.json, one folder per concern, no build config. A function is one file that default-exports a handler, and its exported config decides the trigger: HTTP route, model event or cron.

Frontends

Build frontends for storefronts and admin workflows with any framework.

Functions

Deploy serverless functions to customize logic and connect to external APIs.

Models

Add functionality to the dashboard and backend API with custom models.

Settings

Create controls for users to configure your apps from the dashboard.

swell.json
{
  "id": "honest_reviews",
  "version": "1.0.6",
  "name": "Honest Reviews",
  "description": "Honest reviews from honest people",
  "type": "admin",
  "permissions": [
    "write_products",
    "read_orders",
    "write_accounts",
    "public"
  ]
}

Every command that does work takes flags, and -y accepts defaults without hanging, so no prompt blocks a script or an agent.

Tools

Everything to build, ship and watch it run.

swellCLIStart creating and testing apps using our CLI, with deployment and release management baked in.Swell CLI docs →
swell-jsSDKsBuild ecommerce frontends with full CRUD access, or use our browser library for client-side apps.Apps SDK docs →
logsLogsSee function requests for your app in test and live environments to troubleshoot and observe activity in a store.
consoleAPI consoleView and change data in a store right from the dashboard with the interactive API console.
Platform

Build, use and sell commerce apps without managing infrastructure.

Managed infrastructure

Swell Apps functions and frontends are deployed on the Cloudflare Network.

Database and compute

Get full database access and scalable compute using the Swell API.

Merchants control their data

App data is stored in a secure, isolated database for each merchant.

Open-source or paid apps

Publish open-source or paid solutions to the Swell App Store.

From developers

Built for flexibility.

“Headless and API-first solutions is our preference because of the need for flexibility and interoperability. Swell was the most complete offer, with subscriptions and personalization included.”
Antonie CailletFounder, ültro
“You seem to be tackling the common issues with other platforms (such as multi-language and multi-currency) in a beautiful and more importantly simple way.”
“I've spent far too many hours of my life hacking together APIs that were an afterthought. Reading your docs gives me the same breath of fresh air I felt when reading Stripe's documentation for the first time many years ago.”
“It's clear you guys have put a lot of thought into the design of the API. We've evaluated 14 commerce platforms so far and very few offer all of the endpoints and properties necessary for truly headless commerce so we're always excited to find a new platform that has everything covered.”
Rhen ZabelCo-Founder, VIOLET
“So sick that you can have a bunch of options, select whether or not they generate variants, etc... I can't tell you how many hacky things I've done with Shopify to achieve this.”
Joseph ThomasSoftware Developer, Sanctuary Computer
“The ability to create custom notifications and have them blend in seamlessly with the rest of the notifications is so nice. For example, seeing my custom shipping confirmation email in the dashboard... chef's kiss.”
“Using Swell for subscriptions, it just works. We develop it, it shows up in the dashboard, it's beautiful and all integrated. It just makes sense.”
Claudio Christian FofiuDirector of Technology, Monogram
“Swell was very easy to work with. I could get all the information out of the backend very easily, and you could tell it was something that was thought about from the beginning.”
Yuliy SchwartzburgCo-Founder, THE RAYY

Create a store and start building today.

Create your storeDeveloper docs14-day free trial. No credit card required.