Your Cart
Loading

Kairo Stock: Inventory and Point of Sale App (Next.js 16)

On Sale
$999.99
Added to cart

Kairo Stock runs the shelves and the till of a small shop. It is a complete application built with Next.js 16, React 19, Tailwind CSS 4 and shadcn/ui, with a real backend: authentication with roles, a database, a stock ledger, PDF generation, emails and a daily scheduled job. All of it is wired together and covered by an end-to-end test.

Live demo

https://kairo-stock-demo.vercel.app

Northbay Supply, a hardware store with 120 products and a month of sales, is already loaded. Sign in as the owner (demo@kairo-stock.test / northbay-demo) to see everything, or as the cashier (cashier@kairo-stock.test / northbay-demo) to see the register-only view.

What it does

  • Products with SKU, barcode, category, supplier, cost, price, unit, minimum stock, image and active flag
  • Variants: give a product options like size and colour, and every combination gets its own SKU, barcode, price and stock
  • A stock ledger: every unit that comes in or goes out (purchase, sale, return, count, loss, adjustment) is recorded with the balance after it and the cost at that moment, so stock value and history always add up
  • Purchase orders from draft to ordered to received, in full or in part. Receiving adds the stock and updates the product cost
  • Low-stock page grouped by supplier, with a pre-filled purchase order one click away, and a daily email with the same list
  • The register: scan with any USB barcode scanner (it types the code and presses Enter), tap products or search; per-line and whole-sale discounts; cash, card or other payments, split across methods, with the change shown as you type
  • Held sales for the customer who runs back for one more thing
  • 80 mm PDF receipts to print, and receipt emails with the PDF attached
  • Returns of part or all of a receipt, with refunds that include the right share of discount and tax. Items go back on the shelf or are written off as damaged
  • Cash drawer sessions: opening float, expected cash, counted cash and the difference for every shift
  • Reports by day, week or month: revenue, gross profit (from the real cost of each sale), best sellers, categories, stock turnover and days of cover, payment methods. Each table exports to CSV
  • Customers with their purchase history, and suppliers with lead times
  • Owner and cashier roles. Cashiers sell, take returns and run the drawer. Owners also manage the catalogue, purchasing, reports and settings
  • CSV import and export of the whole catalogue, matched by SKU

Tech stack

Next.js 16 (App Router, server actions), React 19, TypeScript, Tailwind CSS 4, shadcn/ui, Better Auth (email and password, optional Google and GitHub), Drizzle ORM with SQLite locally and Turso in production, @react-pdf/renderer, React Email with Resend, Vercel Cron.

Developer experience

  • Runs right after npm install with no API keys. Emails are printed to the console until you add a Resend key
  • One click loads a realistic store: 120 products in 8 categories, 5 suppliers, 200 sales over 30 days, returns and 3 purchase orders
  • Amounts are stored as integers in cents, and one function computes every sale total (register, server, PDF, email)
  • 100% TypeScript, zero lint errors, an end-to-end smoke test of the main flows
  • A README written for buyers: setup, environment, Resend, Turso, cron, deployment on Vercel or a VPS, customization

What you get

Full source code (.zip) and an illustrated PDF guide (12 pages) covering setup, products and variants, the register, purchase orders and alerts, the cash drawer, reports, staff roles, customization and deployment. Also README, LICENSE.md and CHANGELOG.md. Free updates: download the latest version again from your Payhip library.

What it is not

One shop, one stockroom. No multi-location transfers, no card-terminal integration (record how the customer paid; your terminal takes the card) and no offline mode.

License

Personal: one end product (personal or commercial). Commercial: unlimited end products. You can't resell or redistribute the template itself.

Support

Questions or a bug? Reply to your purchase email with your order number.

What's included

  • Complete Next.js 16 application source code
  • Register (POS) with barcode scanner support
  • Inventory with variants, stock ledger and CSV import/export
  • Purchase orders with partial receiving
  • PDF receipts and email templates
  • Reports with CSV export
  • Owner and cashier roles
  • Sample data loader and demo mode
  • README, LICENSE.md, CHANGELOG.md

FAQ

Does it work with my barcode scanner? Any scanner that behaves like a keyboard works. Almost all USB and Bluetooth scanners do. No driver or plugin needed.

Can I print receipts? Yes. Each sale has a PDF receipt sized for 80 mm thermal printers, and A4 is one line to change.

Does it process card payments? No. It records the payment method and the amount, and works next to the card terminal you already have.

Several stores? One account is one shop. Staff accounts belong to that shop. Multiple locations are not included.

Where can I host it? Vercel with Turso (the cron job is already in vercel.json) or any Node.js server or VPS with a SQLite file on disk.

Do I need to know Next.js? To customize it, yes, basic React and Next.js knowledge helps. To run it, you only need npm install and npm run dev.

Refund & support

Made and supported by Jefferson Valandro (GitHub, portfolio). If the product doesn't work as described and I can't fix the problem for you, reply to your purchase email within 14 days for a full refund.

Customer Reviews

There are no reviews yet.