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.
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.
{
"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
}
}
}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.
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 →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.
{
"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.
Everything to build, ship and watch it run.
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.
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.”
“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.”
“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.”
“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.”
“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.”