E-commerce11 areas · 79 features

Everything you run, in source you own

Everything in Openfront E-commerce, the open-source commerce platform you own.

Try the demo
data models in one Keystone schema, from carts to claims
85
data models in one Keystone schema, from carts to claims
MCP tools so any agent can browse, build a cart and check out
29
MCP tools so any agent can browse, build a cart and check out
payment operations per provider, each a module or your own HTTP adapter
6
payment operations per provider, each a module or your own HTTP adapter
0110 features

Agentic

An assistant in every dashboard page

Ask the chat in the right sidebar to find an order, update a product or explain a refund. It calls the store's own MCP endpoint and acts with exactly your permissions.

Orders/Assistant

Assistant

  1. modelSpecificSearch · Order
    status: requires_action · 3 rows
  2. queryData · orders
    id displayId total
  3. updateData · updateOrder
    needs your write permission

Each tool runs GraphQL with your session cookie, so your roles apply to the assistant too.

  • Agents can search products, read a product, create a cart, add items and apply a discount code.
  • Set shipping and billing addresses, list shipping options, pick a method and start payment sessions from any MCP client.
  • Schema tools let an agent list models, look up fields and input types, then query or write data.
  • The last 20 messages go to the model, so long threads stay fast and focused.

MCP over OAuth for outside agents

Claude, ChatGPT or your own client connect to the same endpoint through OAuth discovery. An MCP token acts as the operator who approved it, and writes need the mcp:write scope.

Apps

Apps

Apps
3
Active
2
AppScopesStatus
Desk assistantread, writeActive
Reporting agentmcp:readActive
Inventory agentread, writePending
  • Connected apps can never sign in, change passwords, emails, tokens, API keys or OAuth records.
  • Bring any model on OpenRouter and cap tokens per reply with one variable.
  • Tool results stream back into the sidebar, so you see what the assistant read and changed.
  • Without mcp:write, every mutation is refused, which makes read-only agents a one-scope decision.
027 features

Storefront

A storefront for every country

Country-code routes serve home, store, product, category, collection, cart, checkout, confirmation and account pages. The storefront picks the region, currency and prices from the path.

Storefront//us/storeCustomer

Store · /us

HomeStoreCartAccount
ProductPriceStock
Canvas tote$38.00In stock
Ceramic mug$24.00In stock
Linen apron$52.00Low
Region
United States
Currency
USD

Regions, currencies and taxes

Regions group countries with a currency, tax rate, payment providers and shipping options. Onboarding sets up North America, Europe and the United Kingdom in one step.

Markets

Markets

RegionCurrencyTax rate
N. AmericaUSD0%
EuropeEUR21%
United KingdomGBP20%

Carts that prove who owns them

Guest carts carry a signed proof header, and signed-in carts belong to their owner, so nobody can read or change someone else's cart by ID.

CartCustomer

Your cart

ItemQtyTotal
Canvas tote2$76.00
Ceramic mug1$24.00
Owner
Guest · signed proof
Subtotal
$100.00
  • Set the store name, logo SVG and colour from the dashboard. Uploaded SVGs are sanitized against an allowlist.
  • Homepage title and description are store settings, not code changes.
  • Build your own front end on the same cart and checkout operations and keep the dashboard.
  • Business customers apply for credit from the account invoicing page.
037 features

Catalog

Products, variants and options

A product carries a handle, subtitle, rich description, images and status. Options like size and colour generate variants, each with its own SKU, prices per region and stock count.

Products/Canvas tote

Canvas tote

Status
Published
Variants
4
Options
2
VariantSKUStock
Natural / STOTE-NAT-S42
Natural / LTOTE-NAT-L17
Black / STOTE-BLK-S0

Collections and categories

Group products into collections for merchandising and nest categories as a tree. Shoppers only see active categories and published products.

Collections

Collections

Collections
3
Categories
14
CollectionHandleProducts
Spring editSpring12
KitchenKitchen28
Gifts under $50gifts-5019

Price lists for sales

A price list groups alternate prices with a start and end date. The storefront reads the calculated and original amount, so strike-through prices just work.

Price Lists

Price Lists

Active
2
Draft
1
NameTypeStatus
Spring saleSaleActive
Trade pricingOverrideActive
Black FridaySaleDraft
  • Order lines store the accepted price, so later catalog edits never rewrite an order.
  • Images live in S3-compatible storage or at any external URL, with alt text and order.
  • When inventory is managed, checkout only takes stock that exists and writes a stock movement.
  • Tags and product types add classification without new code.
046 features

Orders

Every order on one page

The order page shows items, payments, fulfillments, returns, claims and a full event timeline. Status filters split pending, completed, canceled and orders that need action.

Orders

Orders

PendingCompletedCanceledRequires action
OrderStatusTotal
#1042Pending$124.00
#1041Done$68.50
#1040Action$212.00

A timeline you can audit

Order events record who did what and when, from placement to capture to fulfillment. Fulfillments and labels require an idempotency key, so a double click never ships twice.

Orders/#1042

#1042

  1. Order placed
    Region: North America
  2. Payment captured
    Stripe · $124.00
  3. Fulfillment created
    Idempotency key accepted
  4. Label purchased
    Tracking added
  • Filter the order list by status, with counts on every tab.
  • transitionOrderStatus handles cancel and archive with a reason.
  • Notes on an order stay with it for the whole team.
  • Customers see their own orders and details in the storefront account pages.
057 features

Payments

Stripe and PayPal, built in

Checkout and invoice payments run through payment providers linked to each region. Webhooks are verified with each provider's signature before Openfront acts on them.

Payment Providers

Payment Providers

Installed
2
Regions
3
ProviderInstalledRegions
StripeYesNA, EU, UK
PayPalYesNA, EU

Webhooks are verified with each provider's signature before Openfront acts on them.

Bring your own processor

Point any operation at an HTTP adapter you deploy. Openfront posts the provider record and arguments as JSON and reads the reply.

Payment Providers/Custom

Custom adapter

createPaymentFunction
https://pay.internal/create
capturePaymentFunction
https://pay.internal/capture
refundPaymentFunction
https://pay.internal/refund
handleWebhookFunction
https://pay.internal/hook

Openfront posts the provider record and arguments as JSON and reads the reply.

Close the books each month

The finance close report reconciles captured payments and refunds for any window up to 31 days, straight from the payment records.

Analytics/Finance close

Finance close

Captured
$48,210
Refunds
$1,940
Net
$46,270
Window
Oct 1 – Oct 31
Region
All regions

Reconciled from payment and refund records. Windows up to 31 days.

  • Checkout captures when the provider reports requires_capture, approved or authorized, then checks the amount.
  • Refunds never exceed the captured payment and carry your idempotency key.
  • Only installed, configured providers linked to the cart's region appear at checkout.
  • Stripe uses constructEvent and PayPal its verification API for signed webhooks.
065 features

Gift cards

Gift cards with a full ledger

Issue a card with a code, value and expiry for a region. Every movement is a gift card transaction with its amount and tax, and the gift cards page shows balance and history at a glance.

Gift Cards

Gift Cards

Issued
$175
Balance
$112.50
Cards
3
CodeValueBalance
GC-7F3K-92QD$100.00$62.50
GC-1M8P-40XA$50.00$50.00
GC-5T2R-77LB$25.00$0.00
  • Status tabs separate active, turned-off and expired cards.
  • Enable or disable a card in one click without losing its history.
  • Values and balances are stored in minor units, so currencies never round.
  • Cards link to the order they came from and the region they belong to.
077 features

B2B

Credit accounts for business buyers

Business customers apply with their company, type and monthly volume. Approve the request with a credit limit and they check out on account.

Account Requests

Account Requests

Business typeVolumeStatus
WholesaleHighPending
ResellerMediumApproved
DistributionEnterpriseInfo
Credit limit
$25,000
Terms
On account

Invoices from unpaid orders

Group unpaid account lines by region into an invoice with a due date. Customers pay it by Stripe or PayPal and see paid invoices in their account.

Business Accounts/Invoices

Invoices

InvoiceDueStatus
INV-0031Nov 15Sent
INV-0030Oct 30Overdue
INV-0029Oct 12Paid

Customer tokens for reorders

Approved buyers create a ctok_ token to order through the API from their own systems. Openfront shows it once and keeps only a digest.

Business Accounts/Token

Reorder token

Token
ctok_9f2a…c41e
Shown
Once
Stored
Digest only
Account
Active
Tokens
2
Orders via API
17

Order through the API from your own systems with this token.

  • Requests move through pending, approved, not approved and requires info, with review notes.
  • Approval creates a business account in the store's default currency.
  • Customer tokens can subscribe to fulfillment.created to track shipments.
  • Staff see every business account and invoice in one place.
086 features

Returns

Returns with refunds

Create a return from the order page with items and reasons, move it to received, then refund it against the original payment.

Orders/Return

Return · #1038

ItemQtyReason
Linen apron1Too small
Ceramic mug1Damaged
Return status
Received
Refund
$76.00 to original payment

Refunds run against the original payment.

Claims for damaged or missing items

Open a refund or replace claim with items and photos, and track its payment and fulfillment status alongside the order.

Orders/Claim

Claim · #1036

Type
Replace
Payment
N/A
Fulfillment
Not fulfilled

Claim payment and fulfillment status track alongside the order.

ItemQtyIssue
Ceramic mug2Damaged
Canvas tote1Missing
  • Return reasons are your own list, with parent reasons for detail.
  • Every refund carries an idempotency key and never exceeds what was captured.
  • The claims page lists every claim and its status across orders.
  • Return status moves from requested to received, requires action or canceled.
097 features

Shipping

Live rates and labels

Shippo and ShipEngine return live rates, validate addresses, buy labels, track shipments and cancel labels from the order page.

Orders/Shipping

Rates · #1042

CarrierServiceRate
USPSPriority$9.20
UPSGround$11.40
FedEx2Day$18.90
Label
Purchased
Provider
Shippo

Labels can be cancelled from the order page.

Fulfill in one pass

Pick the items, choose a provider or record a manual fulfillment with tracking number and carrier. Stock and order status follow.

Orders/Fulfill

Fulfill · #1042

ItemQtyIn stock
Canvas tote240
Ceramic mug1117
Provider
Manual
Carrier
USPS
Tracking
9400 1118 9922 4417

Stock and order status follow the fulfillment.

Shipping options per region

Flat-rate, calculated or free options with minimum or maximum subtotal requirements decide what customers can pick at checkout.

Shipping Options

Shipping Options

Options
3
Regions
2
OptionRegionType
StandardN. AmericaFlat
ExpressN. AmericaCalc.
Free over $75EuropeFree
  • Any shipping operation can point at an HTTP adapter you deploy.
  • Labels keep their tracking number, carrier and label URL with the fulfillment.
  • Onboarding creates a manual fulfillment provider so day one works without a carrier account.
  • Fulfillment webhooks tell your other systems when an order ships.
106 features

Marketing

Discounts that stack, or don't

Percentage, fixed and free-shipping rules apply to the total or to items, with start and end dates, usage limits and a stackable switch.

Discounts

Discounts

Active
3
Redemptions
341
CodeRuleUsed
SPRING1515% items212 / 500
FREESHIPFree ship88 / ∞
WELCOME10$10 off41 / 100

Analytics by region

Revenue and orders over time, product performance, carts, customers and fulfillment, split by region and date range.

Analytics

Analytics

Revenue
$48.2k+12%
Orders
612
Customers
389
Revenue by region
NA
EU
UK
  • Discount conditions target products, collections, categories, types, tags or customer groups.
  • Limit a discount to the regions where it applies.
  • Usage limits and a running usage count stop a code at the number you choose.
  • Customer groups organise wholesale, VIP and staff buyers for targeting.
1111 features

Developer

Platform primitives

One GraphQL API for everything

GraphQL at /api/graphql exposes every model plus named cart, checkout, fulfillment and refund operations. Each list's access rules apply to every caller.

POST /api/graphqlShell
# named operations beside every model
$ curl -X POST $STORE/api/graphql \
-H 'Cookie: keystonejs-session=…' \
-d '{"query":"{ orders(take: 3) { id displayId status } }"}'
{ "data": { "orders": [
{ "displayId": 1042, "status": "pending" },
{ "displayId": 1041, "status": "completed" } ] } }

Secure ecosystem

OAuth apps

Register an app with redirect URIs and scopes. Operators approve it with PKCE, and the app gets refreshable tokens.

Apps/OAuth

New app

Name
Desk assistant
Redirect URIs
https://desk.example/cb
Scopes
read, write
Status
Active
Auth
PKCE

Operators approve with PKCE; the app gets refreshable tokens.

Signed webhooks

Endpoints receive order, fulfillment and payment events signed with HMAC-SHA256 in the X-OpenFront-Webhook-Signature header.

Webhook deliveryShell
POST https://hooks.example/openfront
X-OpenFront-Webhook-Signature: sha256=…
{ "event": "payment.captured",
"order": 1042 }
# events: order.created, payment.captured,
# fulfillment.created, fulfillment.canceled
  • API keys with scopes, expiry and IP restrictions, stored hashed.
  • Four bearer types: API keys, OAuth tokens, customer tokens and MCP tokens.
  • Schema visualizer maps every model relationship.
  • Thin route files over feature slices, so screens are easy to find and change.

Run it yourself

Run on your infrastructure

Next.js, Keystone 6, Prisma and Postgres with S3-compatible storage. Keep your database, deployment and storefront under your control.

Run locallyShell
$ git clone https://github.com/openshiporg/openfront
$ cd openfront && npm install
$ npm run dev
# keystone build --no-ui && npm run migrate && next dev
# Next.js · Keystone 6 · Prisma · Postgres

MIT source on GitHub

Read every line, fork it, and change the dashboard or storefront in the same repo you deploy.

openshiporg/openfrontShell
$ git clone https://github.com/openshiporg/openfront
# license: MIT
# features/keystone models, mutations, access
# features/storefront customer pages
# features/platform dashboard pages
  • Node 20+, one Postgres database and one migrate step per release.
  • MIT licensed: fork it, host it and keep every change.