How Zealcy is built
One app for the shop.
One engine behind it.
For partners, investors and technical buyers: how Zealcy is put together and run, and why it's built from a few proven parts instead of many new ones.
Two planes,
never mixed.
The app your shop uses and the console the Zealcy team uses are separate apps with separate sign-ins.
The shop app
- Owners, managers, cashiers, accountants and staff sign in here.
- Every request reads the database as a role that row-level security applies to.
- Each role sees only what it should, enforced on the server.
The Zealcy team's console
- A separate app with its own login and its own signing secret.
- Two-factor sign-in, with a read-only role for support.
- The shop app has no admin routes, hidden or otherwise.
Walled off
One database,
every business in its own room.
All shops share one PostgreSQL database, and row-level security decides which rows a request can see. Run a query that forgets to filter by shop, and the database still returns only that business's rows.
One shared table, many businesses
SELECT * FROM sales; -- no shop filter!
- INV-00428Sharma General Store₹903
- INV-21007Galaxy Mobiles₹14,850
- INV-00429Sharma General Store₹240
- INV-55310Spice Route Café₹1,260
- INV-00430Sharma General Store₹1,180
- INV-21008Galaxy Mobiles₹499
Row-level security sits in PostgreSQL itself, under every query the app runs. Sample data.
Decisions we made
and why.
Each choice favours fewer moving parts. A shop at rush hour needs a system that doesn't have many ways to fail.
- 01
One process, many modules
A modular monolith: one API made of feature modules (sales, stock, dining, payroll and the rest), each owning its own logic. A sale, its stock movement and its ledger entries commit in one transaction.
- 02
Isolation in the database
PostgreSQL row-level security on every tenant table. The app connects as a role that can't bypass it, so a filter missing in code still can't show one business another's data.
- 03
Live screens on what's already there
Kitchen, bar and waiter screens update over server-sent events, announced through PostgreSQL LISTEN/NOTIFY inside the writing transaction. A change that rolls back never reaches a screen.
- 04
Background jobs without a queue server
Queued messages and campaigns are shared out with SKIP LOCKED, and daily jobs hold an advisory lock so only one copy runs. Work left half-done by a crashed worker is picked up again. No Redis, no Kafka.
- 05
Printers through a small agent
Browsers can't talk to receipt printers, so an agent on the shop PC prints ESC/POS receipts and sends each kitchen ticket to its station's printer. It only accepts local connections from paired, allowed web addresses.
- 06
Money in whole paise
GST is worked out per line in paise, and every checkout carries a unique key, so a retried request can never charge or deduct stock twice.
Offline, with
a state for every sale.
When the connection drops, cash sales are saved on the till. Each one moves through explicit states, never a simple synced or not-synced flag.
- 1Saved on the till
- 2Waiting to sync
- 3Syncing
- 4Synced
From “Syncing”, a sale can also end up in one of three places:
Conflict
Stock ran out, a price changed or a product was switched off. It waits on a review screen for a manager to decide.
Retry later
The network or server was busy. It retries on its own, waiting a little longer each time.
Needs a person
Something the till can't fix. It's never retried automatically.
On sync, an offline sale runs through the same checkout as an online one, and the server decides stock. Offline billing is for cash sales.
Who we work with,
and how.
- RazorpayUPI at the tillA UPI QR sale completes only when Razorpay's signed webhook confirms the amount. Refunds go back through the gateway. Retail Growth and up.
- Razorpay, the restaurant's own accountGuests paying on their phonesOn Restaurant Pro and up, guests pay into the restaurant's own Razorpay account. Zealcy never holds the money and takes no commission.
- WhatsApp Business Cloud API (Meta)Bills and messagesBills, reminders and opt-in campaigns go out from the shop's own WhatsApp Business number, with its keys encrypted at rest.
- TwilioSMSText messages such as khata reminders, through the shop's own Twilio account.
- AnthropicThe AI assistantAnswers are written by a large language model that can only call read-only report tools for the asking shop.
Running the platform
How the Zealcy team
looks after every account.
The console our team uses to set up and support shops, built with the same care as the shop app.
- 01
New accounts in one guided flow
A six-step wizard covers the business and its GST details, shops, owner, plan and setup. The owner gets a setup link valid for 72 hours, never a password typed into a chat.
- 02
One page per customer
Profile, shops, users, subscription, activity and internal notes in one workspace. Customers never see the notes.
- 03
Exceptions with a reason
Granting a feature or raising a limit for one account needs a written reason, and can carry an end date.
- 04
Read-only before locked
An account can have full access, read-only access or be locked. Read-only comes first, so owners can still sign in, see reports and export.
- 05
The business at a glance
A revenue dashboard and saved views, like trials ending this week or payments past due.
- 06
Least privilege for our own team
Admin roles, two-factor sign-in, a fresh two-factor check before risky actions such as closing an account, and an audit log of every admin change.
Want the technical detail? Ask the people who built it.
Partners, investors and IT teams: we'll walk you through the architecture and answer plainly, including what Zealcy doesn't do.