Skip to content

ShowcasedPath twoBusiness ops & commerce

Tessom

Lets small upholstery workshops sell products cut from leftover fabric, with owner consent and no double-selling.

by Mide

Automated tests by the end of the build, up from 13
302
Two near-simultaneous orders for one cut: one accepted, one rejected
200 / 409

What it does

A buyer orders a cushion cut from a real offcut, drawn on it.

The shop lists only products that fit the usable area of each remnant, with the cut placement and price drawn on the fabric. An order locks that exact area, and the workshop moves it from consent through cut, sewn and shipped.

Anyone can offer leftover fabric with a photo. A vision model in Studio suggests the fabric name, maker, repeat and direction from the selvage for the workshop to accept.

The problem

Valuable offcuts sit unused because listing them is hard.

A remnant has an odd shape, flaws, a pattern repeat and a fixed direction, so working out what it can make takes effort. Large pieces often still belong to the client whose furniture was upholstered, so the workshop cannot sell them without permission. Once a piece is partly sold, any listing based on the old area is wrong.

What they built

Remnants own their allocations, so sold area lives in one place.

  • remnant

    One offcut: dimensions, repeat, direction, flaws, ownership, photo, existing allocations and workflow state.

  • sanity.workflow.instance

    One order's live workflow stage, from awaiting consent through shipped.

The stack

Sanity Workflows, a live listener and Groq Vision.

  • Content Lake
  • Sanity Studio
  • Sanity Workflows
  • GROQ
  • Groq Vision
  • Tailwind CSS
  • Vercel
  • Codex
  • Claude Code

The hard part

Offers are computed on every read, and orders write against the remnant's revision.

Offers are never stored. They are fitted from the current remnant each time, so a cut cannot stay listed after its area is sold. Fitting is deterministic, with no model involved.

An order writes its allocation using the remnant's Sanity revision, so only one of two simultaneous buyers can win. In testing, one got HTTP 200 and the other HTTP 409, and the other browser updated through a Sanity listener.

Live project ↗

More from path two

See the full showcase