the problem
Some products may only be sold to licensed physicians. Verifying that by hand — collecting license numbers, checking them, approving accounts — is slow for the customer and risky for the seller. And a storefront that oversells inventory of a regulated product has a bigger problem than an apology email.
what we built
A headless storefront where the account gate is automated NPI verification: a prospective buyer’s National Provider Identifier is checked at signup and the store opens only to verified physicians. Stock is tracked in a Durable Objects inventory ledger — a strongly consistent, single-writer record per SKU — so two checkouts cannot both claim the last unit.
what it changed
Verification happens in seconds instead of days, without a person reading license uploads. Inventory is exact rather than eventually consistent, which for a regulated product is the difference between a sale and an incident.