Counterly — POS & Inventory | Vibe96

Business & Operations

Counterly — POS & Inventory

Source code included

Web POS and inventory for small shops: checkout, stock, refunds, receipts and reports on Cloudflare Workers and D1.

Built by Redowan Ahmed Farhan Updated 1 Dec 2026 24,059 lines of code

Open live demo Built withOpenAI Codex

About this software

About Counterly — POS & Inventory

Counterly is a browser-based point of sale and inventory app for small shops. Sell products and services, adjust stock with movement logs, manage customers, issue printable receipts, process full refunds with stock returns, and export reports as CSV. Settings cover shop branding, currency, locale and tax.

Built with React, TypeScript and Vite, backed by Cloudflare Workers and D1. Private owner login protects saved shop data; anonymous visitors can explore a read-only sample workspace. Payments are recorded manually; no payment gateway, native mobile app or staff invitation system is included.

Includes full source, database schema and ordered migrations, five screenshots, setup and deployment guides, tests, third-party licence notices and dependency audit reports. Production dependencies have no reported vulnerabilities in the included audit; build/lint tooling advisories are disclosed separately.

Category: Business & OperationsStack: React 19.3 + Vite 8 with Cloudflare Workers, Wrangler 4 · Cloudflare D1Built with: OpenAI Codex Licence: Single-site, full source

Why Counterly — POS & Inventory

What makes it better
than the alternatives

  1. 01

    Cloudflare-native stack

    One root npm project and lockfile cover the React frontend and the Worker API, with D1 migrations and a wrangler deploy flow with production preflight checks.

  2. 02

    Owner-only protected setup

    First-owner creation and password recovery require a private SETUP_KEY, and the setup step is a transactional singleton.

  3. 03

    Hardened authentication

    Passwords are hashed with a server-side pepper, sessions are stored hashed, recovery revokes all prior sessions, and auth attempts are rate limited.

  4. 04

    Integer-money and stock rules

    Prices are stored in integer minor units, checkout references are idempotent, receipt lines are immutable, and saves use versioned compare-and-swap.

  5. 05

    Tested and documented

    Unit, storage and API acceptance tests are included, along with a verification doc, a production dependency audit and a source manifest with SHA-256 hashes.

Checkout

  • Point-of-sale screen for products and services
  • Idempotent checkout references with pending-checkout recovery
  • Manual payment records
  • no gateway
  • Printable receipts built from receipt snapshots

Inventory

  • Physical products and services in a catalog view
  • Whole-unit stock bounds
  • Stock adjustments with stock logs
  • Services do not decrement physical stock

Sales and Refunds

  • Sales table and sales view
  • Full refunds that return stock
  • Immutable receipt lines

Customers

  • Customer records and a customers view

Reports

  • Analytics view and reports
  • CSV export via a download helper

Settings

  • Branding
  • currency
  • locale and tax settings
  • Currency locks once records exist
  • JPY zero-decimal handling

Authentication

  • Owner email/password login
  • Protected first-owner setup
  • Recovery with private key
  • Hashed sessions and rate limiting

Demo and Deployment

  • Anonymous read-only sample workspace
  • Local D1 emulation via npm run db:local
  • Cloudflare deployment scripts and production check
  • Fresh schema.sql plus ordered Drizzle migrations

Quality report

Manually reviewed

81/ 100

Automated audit score

✓ Passed the audit

Passed the audit and a manual review.
Audit run: 18 Nov 2026
Reviewed by Vibe96 staff, Dubai.

Security78
Code structure86
Docs & completeness88
Dependency health88
Build & deploy80
Reviewer notes (3 minor)

Structure is mostly sensible, but app/page.tsx (112 kb) is a monolithic view and server auth code is densely packed; auth sql is parameterized and scoped; schema and workspace sql could not be fully verified; build mostly reproducible; setup doc unseen and some config/script references unverifiable; auth design is strong, but routes in worker/workspace are not visible, so guards cannot be fully verified. None of these stop the software from working; the developer has been told and improvements come in a future update.

Versions & updates

1.0.0
First release1 Dec 2026✓ Reviewed & audited

No updates yet. New versions appear here with a changelog.
Buyers receive updates free for 1 year.

Quality report

What you get

  • </>Full source codeThe complete audited source, delivered as a download from your account. No obfuscation.
  • ▤DocumentationSetup guide, architecture notes, CLAUDE.md and AGENTS.md.
  • ↻One year of updatesEvery new version the builder publishes, free for 12 months.
  • ♧30 days of supportInstallation and defect support through Vibe96 tickets.
$69Single-site licence Details
Vibe Studio Vibe Coding Platform

Build websites, mobile apps & business software.

  • .NET + SQL Server
  • Laravel + MySQL
  • Next.js + PostgreSQL
  • React Native
Build your software using AI
Nova, the Vibe Studio AI developer, with the Studio editor
Get it live

Your software. Your own domain.

$5/month

8-core CPU24 GB RAM
Shared high-performance servers
yourcompany.comLive
Make it live