Skip to content
Templates

Commerce & productsPoint of sale

Docket

Register, orders, stock and close-out

Docket

Video preview

Recorded from the actual template. The 4 animated views are included in the source.

Category
Point of sale
Dashboard
Views
4
animated
Interface
Dark
theme
Stack
Next.js
16 · React 19
License
Unlimited
projects
Delivery
ZIP
by email

About

Run a local counter sale, refund a line item, reorder a pastry at its stock threshold and reconcile the day’s cash in a café-bakery register.

  • Best forDevelopers and agencies building point-of-sale, stock and close-out interfaces for cafés and bakeries.

Included views

4 views
  • Register

    Build an order with modifiers, discounts or a tip. Simulate a card or cash sale to feed a receipt through the rendered printer.

  • Orders

    Filter past checks, inspect the selected receipt and refund a sample line item to update the sales and refund totals.

  • Inventory

    Review pastry stock and reorder thresholds. When almond croissants drop below par, the demo creates a local purchase order for 24.

  • Close-out

    Count the rendered notes and coins by denomination and compare the result with expected cash before reviewing the Z report.

Animations and interactions

  • Four 3D stages

    A thermal receipt printer and card terminal, a receipt spike, a glass pastry case and an open cash drawer whose coins are poured with Rapier physics, built in code with three.js at their real sizes, with no downloaded models or textures.

  • One event per view

    Each view plays one scripted event through the same actions as its keys: a card sale on the simulated terminal, a line refund, an automatic reorder and the end-of-day cash count.

  • Register actions

    Simulate a card or cash sale with change computed, void a line, hold and recall an order, add modifiers, pick a tip and apply the 20 % staff discount.

  • Computed totals

    Subtotals, 8.25 % sales tax, tips, refunds, stock on hand, expected cash and the Z report are computed in integer cents from the order rows.

  • Counter paperwork

    The customer receipt, an A4 invoice, the purchase order and the Z report each open with Print and Download.

  • Phones and reduced motion

    At 390 px the rail becomes a row of four keys, each stage sits above its tool and tables turn into two-line lists, and reduced motion shows each event's end state at once.

Responsive layouts, keyboard-accessible navigation and reduced-motion support.

Demo data and what to connect

The café, staff, orders, card details, suppliers and currency designs are fictional. Sales, refunds, printing, purchase orders and closing totals stay in the browser. No payment processor, terminal, receipt printer, cash drawer, inventory system or supplier ordering is connected.

  • IncludedFictional demonstration data and local interactions, ready to edit. The included README identifies the data files and model.
  • Not includedBackend, database, authentication, payments or AI services. Features that look connected are simulated; connect your own services when you adapt the code.

What’s in the ZIP

  • Complete Next.js project
  • 4 animated views
  • Source files and project assets
  • README with setup and customization
  • LICENSE.md

Stack and requirements

  • StackNext.js 16, React 19, TypeScript, Tailwind CSS 4, three.js, React Three Fiber, drei, postprocessing, Rapier physics, GSAP 3
  • FontsDM Sans, IBM Plex Mono
  • RequiresNode.js 24 and npm 11 recommended. Familiarity with React and Next.js.

Run it locally

Extract the ZIP, open a terminal in the project folder, then run:

npm ci
npm run dev

Open localhost:3000. The README covers the data, colors, fonts and animations.

Explore the source files
docket/
    • globals.css
    • layout.tsx
    • page.tsx
        • Printer3D.tsx
        • RegisterStage.tsx
        • Terminal3D.tsx
      • index.ts
      • StageFrame.tsx
    • App.tsx
    • gsap.ts
    • motion.tsx
    • state.tsx
    • autoplay.ts
    • data.ts
    • derive.ts
    • documents.ts
    • format.ts
    • reduced-motion.ts
    • store.ts
  • .gitignore
  • LICENSE.md
  • next.config.ts
  • package-lock.json
  • package.json
  • postcss.config.mjs
  • README.md
  • tsconfig.json

Price, license and delivery

  • Price$9 USD, one-time payment. No subscription or renewal.
  • TaxesApplicable VAT and sales tax are included in the price. The total is shown before you pay.
  • LicenseUnlimited personal and client projects. No resale or redistribution of the source. Read the license
  • DeliveryAfter payment, Polar emails your receipt and a download link for the ZIP.
  • RefundsIf the files don’t install or run as described and can’t be fixed within 7 days, you get a full refund. Refund policy
  • Supporthello@buildindex.dev for the template as delivered.

Secure checkout by Polar. More answers in the questions.

$9one-time

USD · Tax included

Buy · $9