Distributed & Offline-First

POS System

The only POS that works fully offline, syncs to HQ automatically, and gives central command a live reporting engine — all from one distributed platform.

4
Order Channels
Branches
0ms
Offline Lag
100%
Uptime
Offline Mode Active
Branch 3 · 847 txns queued
xena-pos · branch-7 · live
CONNECTED
$ xena-pos start --branch 7 --mode distributed
⟩ Loading local GunDB store...
✓ Local store ready (12,840 products)
⟩ Connecting to HQ relay...
✓ HQ sync channel open
⟩ Socket.IO handshake...
✓ Real-time events active
→ Order #B7-4421 | Dine-In T14 | $62.50
→ Order #B7-4422 | Takeaway | $28.00
⚠ Network dropped — switching to offline
⟩ GunDB peer-to-peer mode activated
→ Order #B7-4423 | Kiosk | $15.75 [QUEUED]
→ Order #B7-4424 | Kiosk | $33.20 [QUEUED]
✓ Network restored · syncing 2 queued txns
⟩ HQ report updated · dashboard refreshed
$
Scroll
Dine In Take Away Call Center Kiosk Offline-First GunDB P2P HQ Reporting Cloud + On-Premise
Dine In Take Away Call Center Kiosk Offline-First GunDB P2P HQ Reporting Cloud + On-Premise

Everything a modern
restaurant needs

From the moment a customer orders to the moment HQ sees the report — Xena POS is the complete loop.

Real-Time Sync

Socket.IO + GunDB keep every terminal in sync within milliseconds. Orders, inventory, and statuses propagate across all devices instantly.

Offline-First Design

Branches never stop operating when connectivity drops. GunDB stores all data locally and auto-syncs with conflict resolution when reconnected.

HQ Command Center

Central headquarters gets a full reporting engine — live dashboards, cross-branch analytics, and consolidated financials all in one view.

Cross-Platform

React (web), React Native (mobile), Electron (desktop). One shared logic layer, every form factor — POS terminal, manager tablet, kiosk screen.

ACID + P2P Database

PostgreSQL provides ACID-compliant transactional storage at HQ, while GunDB gives branches decentralized peer-to-peer resilience at the edge.

Python Analytics

Python backend processes real-time analytics — revenue trends, peak hours, item velocity, staff performance — powering HQ dashboards live.

Every branch autonomous,
HQ always in control

Xena POS runs a fully distributed data model. Each branch holds its own GunDB store that works entirely offline. When connectivity returns, all data flows automatically to HQ.

🏢 HQ Headquarters PostgreSQL + Python API 🏪 ONLINE Branch 1 Cairo — Downtown 🏪 ONLINE Branch 2 Cairo — Maadi 🏪 SYNCING Branch 3 Alex — Sporting 🏪 ONLINE Branch 4 Alex — Miami 🏪 OFFLINE Branch 5 Giza — 6th Oct
Online · syncing live
Reconnecting · uploading queue
Offline · local GunDB running
Data packets flowing
Branch Layer

Each branch runs a local GunDB node that stores all orders, products, and transactions. Fully operational with zero internet — your staff never sees downtime.

Sync Layer

When connectivity is available, Socket.IO and GunDB relay push all queued transactions upstream to HQ — with automatic conflict resolution and deduplication.

HQ Layer

PostgreSQL at HQ aggregates all branch data into a single source of truth. The Python API processes it into live reports, alerts, and analytics for management.

Four channels,
one platform

Every order type feeds the same distributed store and flows to HQ reporting.

T1
4 pax · 22m
T2
empty
T3
ordering…
→ T1 · Burger ×2
✓ T5 · Bill closed
T4
empty
T5
billing
T6
2 pax · 8m
HQ synced
Dine In
Live

Table Service

Full table management with floor plan, seat-level ordering, split billing, and course timing — all syncing to HQ in real-time.

Floor Plans Split Bill Course Control Offline Ready
Queue
#TK-881
Burger ×2, Fries ×1
04:12
remaining
#TK-882
Wrap ×1, Shake ×2
08:55
remaining
#TK-880
✓ Ready for pickup
READY
Station
Grill
78% cap
Fryer
45% cap
Auto-report
Take Away

Pickup Orders

Queue management, prep timers, and customer notifications. Every completed order is auto-reported to HQ revenue dashboards.

Prep Timer Queue Mgmt Auto-Report
Incoming Call
● 00:32
Ahmed M. — 01012345678
Last order: 3 days ago · 14 orders total
Building order
Beef Burger Deluxe×2 · EGP 120
Truffle Fries×1 · EGP 45
Total EGP 165
Dispatch
Nearest branch
B2 — Maadi
2.1 km
Agent
Sara K.
Available
ETA
32 min
Call Center

Phone Ordering

Centralized call center with customer CRM, delivery zone validation, agent stats, and order dispatch routing to nearest branch.

CRM Delivery Zones Agent Stats
Select Items
🍔
Beef Burger
EGP 60
2
🍟
Truffle Fries
EGP 45
🥤
Mango Shake
EGP 30
🎯
🔥 Customers also add
Crispy Chicken Wrap — EGP 55
+Add
Cart
Burger ×2120
TotalEGP 120
Pay with
Tap to Pay
Card
Offline OK
Kiosk

Self-Service

Touch-optimized kiosk with upsell engine, integrated payments, and offline queue. Transactions sync to HQ once connectivity resumes.

Touch UI Upsell Engine Queue Offline

Central command.
Total visibility.

HQ gets a full-featured reporting engine fed by every branch — live revenue, cross-branch analytics, staff performance, and custom exports.

Today Revenue +12.4%
EGP 0
All 5 branches
Orders Today +8.1%
0
Across all channels
Avg Ticket -1.2%
EGP 0
vs last week
Offline Queued syncing
0
Branch 5 pending
live

Revenue Overview — All Branches

Hourly breakdown · updated every 30s

Branch Performance

Orders by Channel

Percentage share of today's total orders

Top Selling Items — All Branches

Live Events

Built with a
battle-tested stack

Every technology choice is intentional — optimized for offline resilience, real-time sync, and scalable HQ reporting.

React

Web UI + HQ Dashboard

React Native

Mobile App

Electron

Desktop Terminal

Python

Backend API + Analytics

PostgreSQL

HQ Database

GunDB

P2P Distributed Sync

Socket.IO

Real-Time Events

+ More

DevOps · CI/CD

Ready to go
distributed?

Whether you have 1 branch or 100, Xena POS scales with you — offline, synced, and fully reported to HQ.

Message Sent
We'll reach out within 24 hours.