All blocks

App template

Storefront

A shop and its admin: browse, filter and buy with a bag that answers at once, a checkout that ships anywhere, and the orders, products and discounts behind it.

Full preview
Free standard shipping on US orders over $100Store admin
Fernwood Supply

The winter edit

Made to be used every day.

Knits, bags and things for the table in natural materials. Free returns for 60 days.

Best sellers

Shop all

New arrivals

See all
Slide 1 of 8

Free shipping over $100

Standard delivery in the US is on us past that, and tracked door to door.

60 days to decide

Send anything back unworn or unused for a full refund. The label is free.

Made to last

Natural fibers and honest construction, repaired at cost if a seam gives.

Use this template

Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.

npx shadcn@latest add checkfu/uicontext/storefront
  1. Run itLoad from your page’s script. It builds the app with createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, render StorefrontTemplate, which brings its own in-memory router.
  2. Connect your backendEvery read and write goes through Store in . Implement it over your API and point StoreLive at your Layer.
  3. Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .

Screens

  • Home

    /

    The hero, the collections and the best sellers, each with quick view.

  • Collection

    /collections/:id

    A grid narrowed by price, size, color and stock, sorted, with Load more; every filter is in the URL.

  • Product

    /products/:handle

    A gallery that swipes and zooms, color and size with what’s sold out, delivery dates, reviews and related products.

  • Bag

    /cart

    Edit quantities, remove with Undo, apply a code and estimate shipping. The bag also slides over every page.

  • Checkout

    /checkout

    Contact, an address that follows the country, delivery, and a slot for your payment provider; then review and place.

  • Account

    /account

    Orders with tracking, addresses and returns.

  • Admin home

    /admin

    Sales, orders and conversion over 30 days, what to fulfill and what’s running low.

  • Order

    /admin/orders/:id

    Items, fulfill with tracking, refund by item, cancel, notes and the timeline.

  • Product editor

    /admin/products/:id

    Pictures, sizes and colors with a variant grid for price and stock, and search listing.

  • Discounts

    /admin/discounts

    Codes by percent, amount or free shipping, with limits and end dates.

Where your backend plugs in

Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Store service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:

export const StoreLive = Store.sample
// becomes your Layer, such as
export const StoreLive = Layer.effect(Store, makeHttpStore)

The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.

What to delete

  • services/seed.ts, and Store.sample in services/Store.ts
  • components/ProductArt.ts once your products have photos: ProductImage shows them

To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .