Zero Crust Logo

Zero Crust POS Simulator

A virtualized dual-head point-of-sale system built with Electron, demonstrating enterprise-grade architecture patterns for high-volume retail environments.

Electron 36 React 19 TypeScript Tailwind CSS 4 Vite 6

Key Features

Enterprise-grade patterns for quick-service restaurant operations

Dual-Head Display

Separate cashier and customer windows with real-time synchronization, simulating production POS hardware.

Offline-First Architecture

Local data persistence ensures continuous operation during network outages, with sync when connectivity returns.

Integer-Only Currency

All monetary values stored in cents to prevent floating-point errors in financial calculations.

Command Pattern IPC

Type-safe, auditable command system for all state mutations with Zod schema validation.

Payment Simulation

Models async payment flows with retry logic, error handling, and transaction recovery.

Architecture Debugger

Real-time visualization of IPC message flow, state synchronization, and system architecture.

Screenshots

See the dual-head POS system in action

Cashier View

Cashier View

Full-featured order entry with product categories and quick keys

Architecture Debugger

Architecture Debugger

Live visualization of IPC messages and state flow

Transaction History

Transaction History

Complete audit trail of all completed transactions

Customer Display

Customer Display

Real-time order display synchronized with cashier actions

Architecture

Built on proven patterns for secure, maintainable POS systems

Process Model

Main Process
MainStore (State)
PaymentService
BroadcastService
PersistenceService
Cashier Window
React + Tailwind
Customer Window
React + Tailwind

Design Principles

Security Boundary

All business logic executes in the Main process. Renderers are sandboxed with contextIsolation and nodeIntegration disabled.

Single Source of Truth

MainStore holds all application state. Changes broadcast the entire state to all renderers.

ID-Based Messaging

Renderers send only product SKUs. Main process looks up prices from the catalog, preventing price tampering.

Runtime Validation

All IPC commands validated with Zod schemas before processing.

Tech Stack

Electron 36 Framework
TypeScript Language
React 19 UI
Tailwind CSS 4 Styling
Immer State
Zod Validation
Vitest Testing
Electron Forge Build