E-commerce by design

Easy to buy from.Easy to run.

A shop has two sides: your team runs it in WooCommerce, and your customers buy from a storefront we build on our new system. Both start from rules held in code: a choice before the bag, a bag that is not lost, prices checked again at checkout, taxes to the cent. Below, a demonstration shop called Nocturne is open. Add, choose, change your mind: nothing is sold and nothing is charged.

Nocturne is a demonstration: its goods are drawn for this page, its prices are invented, and no payment details are asked. The rules run live in your browser, and your demo bag stays there.

01 · The shelf

One tap, and the bag answers.

Nothing to choose: one tap from the card. Options: the card asks first. Watch the bag answer, then take over: the goods are invented, the bag is real shop code kept in your browser.

Demonstration · nothing is sold

Nocturneprovisions for clear nights

01 · The shelf

  • Comet seeds

    CAD 9.00

    Nothing to choose

  • Constellation puzzle

    CAD 29.00

    At most 3 in the bag

  • Tide glass

    CAD 24.00

    One size · 500 ml

  • Moon lantern

    CAD 38.00 – 64.00

    4 phases · 1 sold out

    Moon lantern

    Choose a phaseCAD 38.00 – 64.00

  • Star tea

    CAD 14.00 – 28.00

    50 g or 120 g

    Star tea

    Choose a sizeCAD 14.00 – 28.00

  • Aurora scarf

    CAD 72.00

    4 colours · 1 sold out

    Aurora scarf

    Choose a colourCAD 72.00

02 · Your bag

Shown by the tour

 

Subtotal

Drawn goods, invented prices. The bag is real shop code, kept in your browser and sent nowhere.

How this is read

One tap, or a choice first

The shared purchase rules of our new system decide what each card may do. On Nocturne, a product with nothing to choose, or with a single option, goes in from its card in one tap. A product with options asks first, and its card shows the range until a choice is made. A sold-out option stays in sight, disabled. Each product also keeps its own limit per line.

What a line stores

The product, the chosen option, the quantity, and a price kept for display only: at checkout the shop prices the bag again from its own records.

Where it is kept

In this browser’s storage, under a name of its own, so it follows you to a second tab and through a reload. Nothing in it is sent anywhere. Our WooCommerce shops keep their bag the same way: adding, changing and removing make no request to the shop, which first sees the bag at checkout.

The tour

The story that plays first runs on a bag of its own, tagged “Shown by the tour”. It never writes into yours: only your own taps do.

02 · Choices

No choice, no bag.

Until a phase is chosen, the lantern shows its price range and its button says what is missing. A sold-out phase stays in sight, disabled. Switch the rule off and see what an ordinary shop does.

Live rules · Drawn product

The moon lantern’s page

01 · The piece

02 · The choice

Moon lantern

CAD 38.00 – 64.00

price range · nothing chosen

Phase
Quantity1 – 2 per phase
1
Tide glassOne size · 500 ml
CAD 24.00

03 · The rules

0 of 5 lit by you
  1. Nothing goes in without a choice, not yet met
  2. Unchosen, the price is a range, not yet met
  3. Sold out stays in sight, disabled, not yet met
  4. A single option is not a question, not yet met
  5. Quantity keeps the product’s limits, not yet met

Quarantine · kept out of your bag

Empty. Only “Without it” puts a line here.

The rules run live from the shop code of our new system. The lantern, its prices and its stock are invented.

How this is read
Nothing goes in without a choice
Add asks the shared purchase rules first. While no phase is chosen they answer that a choice is missing, and no line is built. Putting the first option in the bag without asking makes an order that is wrong and internally consistent, so it is found by a customer, not by a test.
Unchosen, the price is a range
Until a phase is chosen, no single price is true, so the page shows the lowest and the highest of the lantern’s phases. One price appears only once the rules have a phase to price.
Sold out stays in sight, disabled
A sold-out phase stays on the page, named and disabled. A keyboard still reaches it and hears why it cannot be chosen; a phase that vanished would leave the shopper wondering whether it ever existed.
A single option is not a question
When a product has one option, the rules choose it before anyone arrives, even on a page that asks for every other choice. The tide glass goes in with one tap.
Quantity keeps the product’s limits
The stepper takes its least, its most and its step from the product, and the rules check them again when the line is built. Your bag holds each line to the same most: the lantern stops at two per phase.
Live, and “Without it”
Each ring lights from the shared rules’ own answer, computed in your browser, not from a timeline. “Without it” runs the same lantern through a shortcut, the first phase when nothing is chosen; its line is held in quarantine and never reaches your bag. The tour presses the same buttons you do and never writes to your bag.

03 · The bag

A bag that keeps up.

Change a quantity and every figure follows; remove a line and it can come back. Cross the threshold and a gift joins. Then reload, or open a second tab: the bag is kept in your browser.

Live · the demo bag

The bag, on the bench

Open a second tab

01 · The bag

Reading your bag…

CAD 28.00 away from a star-chart postcard, free

  • Comet seeds

    CAD 9.00 each

    1
    CAD 9.00
  • Tide glass

    500 ml

    CAD 24.00 each

    1
    CAD 24.00
  • Star tea

    50 g

    CAD 14.00 each

    1
    CAD 14.00
Estimated subtotal · invented pricesCAD 47.00

02 · Kept in your browser

Read live

PersistentlocalStorage · mystya.demo-bag.v1
Revision—
Lines · product, option, quantity

—

Stored0bytes
Requests—change the bag to count

03 · Another tab

Open a second tab and change the bag there: this one follows.

 

Open a second tab to see it

Read live from this browser’s storage. Nothing about this bag leaves your device.

How this is read

Where the bag lives

This bag runs the same code as our WooCommerce shops’ bag, and is kept in this browser’s localStorage under its own key. Every change writes the whole bag again with a new revision, a random id the shop uses to tell one version from the next. The bytes are the length of what is stored, counted as UTF-8.

Through a reload, in a second tab

On load the bag is read back from storage, and again on pageshow, so the back and forward buttons bring it back too. Another tab of the same site receives a storage event each time this one writes, and reads the bag again: both stay in step. A storage event only fires for a change made in another tab, so the live label here is proof that one exists.

When storage is refused

Some private windows and strict settings refuse storage. The bag then lives in memory for this visit and says so here, instead of failing.

Intentions, not an order

The bag holds products, options and quantities, with prices as shown. It is not an order: prices are confirmed at checkout, from the shop’s own records (section 04).

The gift and the requests

A shop can set a gift from a threshold; Nocturne’s, the postcard and its prices are invented. Here the gift stands in the bag’s head, worked out from the subtotal: it is not a line, so it is not counted, priced or removed. On our WooCommerce shops, the shop’s own server applies the rule again to the order it receives. The request count reads the browser’s Resource Timing for requests started in the second after each of your changes here, not counting the framework’s own page prefetches.

The tour

The tour plays on a copy: of your bag when it has lines, of an example bag when it is empty. Its reload and its second tab are shown, not done; the two buttons above do them for real.

04 · Checkout

Prices are set at the door.

What leaves your browser names products, options and quantities, and no price. The shop prices them from its own records and taxes them for where the order goes. Change a price here: it is ignored.

Live projection · Illustrative shop

01 · Your browser

The bag, as data

basketId
6e6f637475726e65a7c3e19052d48f6b
revision
3f1c9a7e5b2d4086c1e8f3a59b7d2e60
  • Comet seedshow many ×1price shown CAD 9.009001 · 0
  • Tide glass · 500 mlhow many ×1price shown CAD 24.009003 · 90031
  • Star tea · 50 ghow many ×1price shown CAD 14.009005 · 90051
  • Moon lantern · Crescenthow many ×1price shown CAD 38.009004 · 90041

02 · Our server

What actually leaves

version
1locale en
basketId
6e6f637475726e65a7c3e19052d48f6b
revision
3f1c9a7e5b2d4086c1e8f3a59b7d2e60
  • productId 9001variationId 0quantity 1
  • productId 9003variationId 90031quantity 1
  • productId 9005variationId 90051quantity 1
  • productId 9004variationId 90041quantity 1
droppedDropped before sealing: price, name, option, image, currency, minorUnit, soldIndividually, slug.

Seal · HMAC-SHA-256good for 5:00

—

—

after the # in the address, out of server logs

03 · The shop’s records

Priced again, taxed for the address

  • Comet seeds×1shown CAD 9.00CAD 9.00
  • Tide glass · 500 ml×1shown CAD 24.00CAD 24.00
  • Star tea · 50 g×1shown CAD 14.00CAD 14.00basic grocery · no GST or QST
  • Moon lantern · Crescent×1shown CAD 38.00CAD 38.00

SubtotalCAD 85.00

taxed on CAD 71.00

  • GST 5%3.553.55
  • QST 9.975%7.082257.08

TotalCAD 95.63

04 · The payment

Sealed, and not ours

A sealed panel: no field, no form

Card details go into the payment provider’s own secure fields or window, never into the storefront. On our WooCommerce shops, the shop’s checkout takes over here.

This demonstration stops at the door.

Payment code on the storefront

None

it loads on the shop’s checkout

01 · The bag

As it is now

revision
3f1c9a7e5b2d4086c1e8f3a59b7d2e60
checkout opened at
b84e2a6c90d13f57e2a8c4b6d1f09e35
  • Comet seeds×1
  • Tide glass · 500 ml×1
  • Constellation puzzle×1added since
  • + 2 more lines

02 · The receipt

Back from checkout

state
completed
for revision
b84e2a6c90d13f57e2a8c4b6d1f09e35
items
—

isLostCheckout(receipt)false

03 · The bag after

What the rules decide

reconcileBasket(bag, receipt)

Kept5 lines

  • Comet seeds×1
  • Tide glass · 500 ml×1
  • Constellation puzzle×1
  • + 2 more lines

04 · Four returns

Run each one

Only a completed order for this exact bag empties it.

Change a price, continue, alter the packet: every check runs in your browser, on a copy of the bag.

The packet is built from the example bag; taxes use the rates checked on 2026-10-02. The shop’s side is simulated. Signed here with a throwaway key made in your browser for this page. A real shop signs on its server, with a secret the browser never sees.

How this is read
The projection
The function our WooCommerce shops run before checkout, applied live to a copy of the bag. It keeps the version, the bag, its revision, the language and, for each line, the product, the option and the quantity. Every other key is dropped, and the list of dropped keys is computed, not written.
The seal
HMAC-SHA-256 from your browser’s own cryptography, over the packet written as base64url, under a key made once when this page opened, never stored, gone when you leave. On our WooCommerce shops the storefront’s server signs with a secret it shares only with the shop; the packet is good for five minutes and rides after the # in the address. WordPress checks the seal, refuses a packet that is altered or expired, and fills WooCommerce’s cart from its own records before the checkout opens.
The prices
Nocturne’s catalogue stands in for the shop’s records: the server’s side is simulated in your browser, and the prices are invented.
The taxes
The sales-tax module of our GST & QST calculator, for a shop in Québec registered for the GST/HST and the QST: each tax is worked out on the taxable lines and rounded to the cent on its own, as on an invoice. Star tea, a basic grocery, is zero-rated. A provincial sales tax applies only where the shop is registered for it, so none is shown. On our WooCommerce shops, WooCommerce works out the taxes at checkout, from the shop’s own tax settings.
The return
The two rules the shops of our new system run when a visitor comes back from checkout, on a copy of the bag with made-up receipts. A receipt for an older revision never erases newer choices, and an open checkout holding nothing is treated as lost, not as a choice.
Where payment happens
On our WooCommerce shops, payment happens on the shop’s own checkout, once the bag has been handed over and checked. The payment provider’s code loads there, and card details go into its own secure fields or window: the storefront carries no payment code and no payment field. This demonstration stops before that door.

05 · Your side

One tap for them. Four things for you.

The customer sees the confirmation of their order. On your side, at the same moment: the order arrives in WooCommerce, stock counts down where it is tracked, emails leave, the payment is recorded. Watch both.

Illustrative · your bag, real arithmetic

01 · Their screen

02 · Your side

An example order, shown by the tour

Thank you

Order DEMO-7F3A

  • Comet seeds×1
  • Tide glass×1
  • Star tea×1
  • +1 more
  • Star-chart postcardFree

TotalCAD 95.63

A confirmation is on its way

  1. Ordersin WooCommerce
    Waiting for the next orderDEMO-7F3A4 itemsCAD 95.63PaidNew
    DEMO-9B052 itemsCAD 66.69PaidExample
    DEMO-2C811 itemCAD 28.00PaidExample
    DEMO-7F3A · 4 items · CAD 95.63Paid
  2. Stockwhere the shop tracks it+1 more line
    Moon lantern · Crescent2 → 1Low stock · your team is told
    Tide glass · 500 ml7 → 6 
    Star tea · 50 g12 → 11 
    Moon lantern · Crescent · 2 → 1Low stock · your team is told
  3. Emailssent by your shop

    To the customer · in EnglishDrawn: not sent

    Your Nocturne order DEMO-7F3A is confirmed

    Thank you. 4 items, CAD 95.63, GST & QST included.

  4. Paymentrecorded on the order
    1. Paid
    2. Recorded on the order
    3. Paid out on your provider’s terms

    Total CAD 95.63: subtotal 85.00, plus GST 3.55, QST 7.08. Star tea: basic grocery · no GST or QST.

    Paid · recorded · paid out on your provider’s termsStar tea: basic grocery · no GST or QSTCAD 95.63

1 order · 4 items · stock updated · 2 emails · CAD 95.63 recorded

In your shop’s admin, where your team already edits the site. Saving a product refreshes the storefront in the background (see Performance by design).

No order is created and nothing is charged. Steps as shops on our new system record a sale; times drawn; taxes computed from your bag.

How this is read
Where your team works
In your shop’s admin, where your team already edits the site. Saving a product refreshes the storefront in the background (see Performance by design).
Illustrative
The flow and its timing are drawn. No order is created, no email is sent and nothing is charged. Nocturne’s stock and the two example orders in the list are invented, like its goods and prices.
The four steps
They are how a sale is recorded on the WooCommerce shops of our new system: the order created in WooCommerce, stock reduced where the shop tracks it, the customer’s confirmation and the team’s new-order notice sent by the shop, and the payment recorded on the order through the payment provider. A bag that asks for more than the shelf holds is refused at checkout.
Real
The figures are computed from the bag in integer cents. The taxes come from the sales-tax module of our GST & QST calculator, worked out on the taxable lines (Star tea, a basic grocery, carries no GST or QST), each tax rounded to the cent on its own, at the rates checked on 2026-10-02. Your bag is emptied by the real rule: opening checkout marks the bag’s revision, and only a completed order for that same revision empties it; a bag changed since is kept. “Restore the bag” puts your lines back.
On our WooCommerce shops
WooCommerce keeps the order, and the storefront never touches a payment. The bag reaches the shop only when the customer continues to checkout, and every line is checked again before the checkout opens: published, purchasable, in stock, every option set. Back on the storefront, the bag asks the shop how that checkout ended, and the same rule decides whether it is emptied. The customer’s confirmation is written in the language the shop opens its checkout in.

06 · The setup

One shop, three places.

Your storefront, built on our new system; WooCommerce’s checkout, on the shop’s server; and WooCommerce itself, where your team works. Follow a saved product, a purchase and a campaign through all three.

Illustrative · The journeys our WooCommerce shops run

01Your storefront

What we build on our new system

  • Product pages, marked up for search engines (touched earlier)
  • Filters, such as brands and needs (touched earlier)
  • Search by name (touched earlier)
  • Curated shelves and menu picks
  • The bag drawer, kept in the browser (touched earlier)
  • The sealed hand-off to checkout (touched earlier)
  • After checkout, the bag kept or emptied (touched now)

02The checkout

What the checkout handles

  • The cart, rebuilt from its own records (touched earlier)
  • Taxes, shipping and coupons (touched earlier)
  • Payment, through the provider (touched earlier)
  • The gifts a campaign gives
  • Orders (touched earlier)
  • The emails a sale sends, from WordPress (touched earlier)
  • Stock, where the shop tracks it (touched earlier)

03WooCommerce

What your team does in WooCommerce

  • Products, options and prices
  • Photos
  • Brands, and the terms filters use
  • Coupons
  • Orders, as they come in (touched earlier)
  • Publishing and unpublishing
  • Campaigns, switched on or off

What we build on our new system

  • Product pages, marked up for search engines (touched earlier)
  • Filters, such as brands and needs (touched earlier)
  • Search by name (touched earlier)
  • Curated shelves and menu picks
  • The bag drawer, kept in the browser (touched earlier)
  • The sealed hand-off to checkout (touched earlier)
  • After checkout, the bag kept or emptied (touched now)

Drawn for this page: no shop is called, no order placed, no email sent. The steps are those our WooCommerce shops take.

How it works
The storefront
Built on our new system. Its pages are kept ready and prepared again in the background when the shop’s server sends its signed note, so a save reaches visitors with no developer involved. Product pages carry structured data for search engines; search runs on product names and the terms around them, such as brands and needs, accents or not.
The bag and the hand-off
The bag is kept in the customer’s browser: adding, changing and removing make no request to the shop, and its prices are estimates. At checkout it is sealed with a secret the storefront shares only with the shop: products, options and quantities, no price, good for five minutes. A line goes through once every option is chosen, and the shop checks each one again before its checkout opens; a single line it can no longer sell keeps the checkout closed, and the bag is kept.
The checkout
WooCommerce’s checkout runs on the shop’s server. It rebuilds the cart from its own records, works out taxes, shipping and coupons, and hands payment to the provider’s own window or fields. Customers check out as guests: nothing to sign up for, no password to remember.
Back from checkout
When the customer comes back, the storefront asks the shop about that bag, once. Only a completed order for that exact bag empties it; an unfinished checkout, a lost connection or newer choices keep it.
Campaigns
We prepare a campaign with you; your team switches it on and off in WooCommerce, first for administrators only, to try it out. Its gifts are never in the sealed bag: WooCommerce adds what the cart earns and removes what it no longer earns. A gift past a spending threshold joins the bag on the storefront, and WooCommerce checks it again on every cart: below the threshold, it leaves.
Stock
WooCommerce counts stock where the shop tracks it. The storefront shows whether a product is in stock, but a bag reserves nothing: WooCommerce has the last word at checkout.

The practice

A shop keeps its word. At every click.

A good shop comes from rules held in common rather than decided again for each project: a choice before the bag, a bag that is not lost, a price checked at the door, taxes computed to the cent, and payment details left to the payment provider. We build shops on WooCommerce for teams who run their own catalogue: they keep it in WordPress, and their customers buy from a storefront built on our new system. For a smaller catalogue that our system holds itself, with no WordPress, payments can go through Stripe. Every shop starts from these rules; the look, the products and the voice are yours.

What this page shows is our new system, the way we build today. Sites we delivered before it may not include it.

Planning a shop?

Tell us what you sell. We will show you the first rules we would hold your shop to.

Nocturne · demonstration

Your demo bag

0 items

Your demo bag is empty.

Add something from Nocturne’s shelf: nothing is sold and nothing is charged.

Go to the shelf