All projects

Brown Bear Adventure Co.

Commerce & editorialProduction

A live outdoor store with checkout and automated fulfillment.

Production

Production. The public storefront and live checkout launched on October 22, 2026. US shipping, Stripe Tax, order email, and automatic fulfillment for eligible customer-paid orders are enabled.

Visit Brown Bear

Overview.

Brown Bear Adventure Co. is my outdoor apparel and gear brand, built around camping, fishing, family trips, and time outside. The storefront brings the clothing, product details, and brand story together.

The store is now live. Customers can choose product options, manage a guest bag, get calculated US shipping, and pay through Stripe. Behind the storefront, the commerce system handles payment verification, tax, order email, supplier fulfillment, and private order access.

I built the commerce rules first in C# and .NET, then implemented the production runtime with TypeScript on Supabase Edge Functions and Cloudflare. Both share the same emphasis on durable order state and recovering interrupted operations without duplicating a charge or supplier order.

Screens & workflows.

Application screens and development prototypes. Select a capture for a closer look.

Find a product

  1. Browse collections or search the catalog.
  2. Filter by product type, color, and size, then open a product.
  3. Review the product images and size guide.
  4. Choose an available color and size and add the exact variant to the bag.

Place an order

  1. Review the bag and adjust quantities.
  2. Enter a supported US shipping address and request the current shipping quote.
  3. Review the order and purchase policies before continuing to Stripe.
  4. Complete payment in hosted checkout, with applicable tax calculated through Stripe Tax.

Follow an order

  1. Use the private guest order flow to access the order.
  2. Verify the email address for order updates.
  3. Receive the applicable order notifications and return to the order page for status.
  4. Contact support when an order needs attention.

Recover interrupted commerce work

  1. Record the original checkout, payment, or supplier operation before sending it.
  2. Verify signed provider events and reconcile them with provider records.
  3. Resume eligible work through scheduled jobs with durable leases.
  4. Hold mismatched or uncertain operations for review instead of creating a second order.

Inside the build.

Explore the components, their boundaries, and the decisions behind them.

Nuxt generates the storefront for Cloudflare Pages. A same-origin Pages Function signs API requests to a Supabase Edge Function, which owns commerce rules and connects to a private PostgreSQL schema. Stripe, Printful, and transactional email sit behind server-side adapters. A separate Cloudflare Cron Worker runs bounded catalog and recovery jobs.

Storefront and guest experience

Render the catalog, exact product variants, guest bag, checkout handoff, and public content.

  • URL-backed filters, sorting, pagination, and variant choices make product views shareable.
  • The connected store reads current catalog and availability data rather than treating a browser bag as a final quote.
  • Preview builds remain separate from live commerce. Public product images and content are served as static assets.

Design decisions & tradeoffs.

Keep the storefront separate from commerce

Cloudflare serves the generated site and forwards signed API requests to the Edge runtime. The browser controls presentation and selections; the server controls prices, quotes, payment, and fulfillment.

The tradeoffThe bridge and Edge deployment need coordinated contracts, but provider credentials and order authority stay out of the client.

Freeze the facts at checkout

Catalog revisions, complete quotes, purchase lines, and delivery payloads are immutable. Revision checks stop an old selection from silently adopting a different price or product state.

The tradeoffMore state is stored, but retries, refunds, and later catalog changes have an exact record to work from.

Reconcile before retrying

Durable attempt markers preserve the original provider operation. After an interruption, a worker checks the existing checkout, payment, or supplier order before sending again.

The tradeoffUncertain operations may pause for review, which avoids treating a timeout as proof that nothing happened.

Automate ordinary fulfillment with explicit limits

Eligible paid orders can proceed to Printful automatically. The policy rechecks the order and approved supplier cost before confirmation, while exceptions remain reviewable.

The tradeoffThis removes routine manual approval, but provider price changes and ambiguous responses still need reconciliation. The cost ceiling protects collected sales tax; it is not a profit guarantee.

Preserve the original domain work

The C#/.NET implementation remains a reference for the commerce model and its tests. The deployed TypeScript runtime carries those rules into the selected Cloudflare and Supabase environment.

The tradeoffThe implementations need explicit parity checks. They must not both create checkout attempts against the same active carts.

Technical stack.

Storefront

  • Nuxt 4
  • Vue 3
  • TypeScript
  • Cloudflare Pages

Static pages, catalog discovery, exact product variants, guest bag, checkout handoff, and brand content.

Production commerce runtime

  • Deno
  • TypeScript
  • Supabase Edge Functions
  • Cloudflare Pages Functions

A signed same-origin API bridge and server-only commerce handlers for guest sessions, quotes, checkout, orders, and support.

Persistence and recovery

  • PostgreSQL
  • SQL migrations
  • Postgres.js
  • Cloudflare Cron Workers

Restricted database access, immutable commercial records, transactional inbox/outbox, fenced leases, and scheduled reconciliation.

Commerce providers

  • Stripe Checkout
  • Stripe Tax
  • Printful API
  • Resend

Hosted payment, automatic tax, calculated shipping, eligible paid-order fulfillment, and transactional communication.

Content pipeline

  • JSON Schema
  • AJV
  • Generated public snapshots

Validated authored content, public-only projections, dependency checks, withdrawals, and URL redirects.

Original backend and verification

  • C#
  • .NET 10
  • ASP.NET Core
  • Npgsql
  • xUnit
  • Vitest
  • Playwright
  • axe-core

The original .NET backend remains a reference implementation. Component, browser, accessibility, real-Postgres, concurrency, and recovery checks cover the storefront and commerce behavior.