The Restaurant POS I Couldn’t Buy
I tried about a dozen point-of-sale systems for a restaurant. None of them were good enough to trust. So we built one.
This post isn’t selling anything. I’m writing it because a lot of people put a lot of work into it, and I want to show that work properly.
First, why it exists.

A dozen later
I needed a POS for a restaurant. The till, the kitchen screen, the bill printer, the reports at the end of the day. Wasn’t asking too much.
We found that our previous POS provider was sneakily retaining some of the sensitive business data of ours that we didn’t agree to.
So I made some calls and demoed a few new ones.
The cheap ones are crappy as hell. There’s no nicer way to put it. You pay less, and it shows everywhere. I’ve even found one that doesn’t even have a pay button.
The support is worse than the software. Most don’t have any real support behind them. And when you find a bug and get someone to listen, you get one of two answers. It’s “unfixable.” Or it’s “small enough to deal with.” Or “We’ll look into it” (I moved on before they reached back out, so it’s possible they might have fixed that if I’m being earnest).
Small enough to deal with. In the thing that handles the money. F*ck that.
The security part
I’ll own this, I don’t have faith in most Sri Lankan companies when it comes to security. I just wasn’t willing to put a business on top of their software, or tell people I know to put theirs there.
A POS sees everything. Every sale, the cash count at the end of the night, guests’ phone numbers. If you can’t trust the people who built it to take security seriously, you can’t trust the system.
“Fully customisable”
It’s an illusion. Anything past some basic customisation is “custom software,” which means you pay them more. And you have to pay another bigger fee for them to manage the code.
On top of that, they’re ugly as shit. Outdated, cramped, built like nobody has looked at a screen made in the last ten years. Seriously, we are living in a world that’s getting more and more creative with projects, like Moonlitt and Igloo, then you come to this POS.
So we built one
Not taking sole credit, because it isn’t mine alone.
More than 20 people were involved, with help, guidance, testing and a lot of honest opinions. More than 8 of them actually wrote the code. A lot of what’s good about R1 came from someone other than me.
R1
(Restaurant [Version] 1)
R1 is a system that can run almost any kind of restaurant.
A quick-service counter where you order, pay and wait for your number. A self-ordering kiosk. Tablets on the tables. Waiters taking orders on their phones. A fine-dining room where the waiter writes the order on paper, takes a photo of it, and the system reads the handwriting. Or any mix of those.
Every restaurant gets the same system, set up differently. You switch on the parts you need and switch off the parts you don’t. A cafe without tables doesn’t see anything about tables. A burger counter with no kitchen screen sends orders straight to “ready.”
R1 is multi-tenant. A restaurant starts from a service-model preset (quick service, kiosk, table service, fine dining, hybrid) and then individual building blocks are switched on or off.
There are two layers of control. The developer decides which building blocks a restaurant gets and which settings are locked. The restaurant’s own IT person or manager runs everything else: menu, prices, staff, printers, screens. Floor staff never see settings.
Settings are schema-driven with three tiers: building blocks (developer only), lockable (developer decides), and open (restaurant IT). Locked settings show up read-only, so IT can see what’s set and why they can’t change it.
The rules we set ourselves
Before most of the features, we agreed on a few rules. Almost every argument during the build got settled by going back to these.
It keeps working when the internet doesn’t. The till, and the kitchen screen keep taking orders as long as they are on the same LAN, and cash with no connection, and everything gets filed once the connection is back. Exactly once. No duplicate orders, no lost bills.
Each screen is a progressive web app with a service worker holding the whole app. Order ids are minted on the device (UUIDv7), and every sync step is idempotent, so replaying the same order twice can’t create two orders.
Every screen opens instantly, even on cheap hardware. A cashier shouldn’t wait for a spinner when there’s a queue.
Each screen has a hard size budget for its JavaScript, from under 60 KB for the Status board up to under 128 KB for the admin portal (gzipped). A build script fails if any screen goes over.
Security is on from day one, at no extra cost. No shared logins. No PINs stored in a way that can be read back. Refunds, voids and discounts need a manager’s PIN. Backups are encrypted and proven to work.
The restaurant owns its data. It can keep its own encrypted backups in storage it controls, with its own key if it wants. If it ever wants to leave, the data goes with it.
The screens, one by one
R1 is a set of separate apps, one for each job. All of them run in a browser, on whatever hardware the restaurant already has: an old Windows PC, a cheap Android tablet, a TV with a stick in the back.
Cashier
The till. Orders, payments, cash drawer, tables, delivery. It also has a Live tab that shows every kiosk and table tablet in real time, tap by tap. If a guest is stuck at the kiosk, the cashier can take over that order from the till.
Cash, card (on the bank’s own terminal), QR, bank transfer, split bills. It works from the keyboard too, with shortcuts the restaurant can change.


Staff sign in with a username and PIN on a device that was paired to the restaurant once.

Kiosk
Self-ordering for guests. Eat here or take away, browse with pictures, pick options, see “goes well with” suggestions, pay by QR or at the counter. If the network drops, the kiosk can still take the order and print a slip to pay at the counter.

Table
The same kiosk app on a tablet at the table, in table mode. Guests order in rounds, call the waiter, ask for the bill.

Waiter
A phone app. Tables by area, take the order, send it to the kitchen, print the bill, take payment if they’re allowed to. When food is ready, the waiter who took the order gets a buzz, even if the phone is locked.
For fine dining there’s the paper option: the waiter writes the order by hand, takes a photo, and R1 reads it and matches it to the menu. The waiter checks the lines and sends it.
Under the hood: handwriting goes through a vision model (Claude by default) or an optional offline OCR engine, then a fuzzy matcher maps what was written to menu items using names, short codes and aliases. Web push uses VAPID keys, so alerts reach a locked phone.

Kitchen
Tickets per station, coloured by age, bump when done, recall if you bumped by mistake. Cooks can mark a dish as sold out from here and it disappears from every kiosk straight away.

Status
A TV above the pick-up counter. Preparing on one side, ready on the other.

Guest Display and ICD
The Guest Display faces the guest at the till and shows their order as the cashier rings it up. Between orders it can show the menu for guests to tap through.
The ICD is the touch version. The guest types their mobile number, sees their loyalty points and any deal they’re getting, and watches the bill come together line by line.
Admin
The back office. Menu, prices, deals, charges and taxes, floor plan, printers, staff, guests, loyalty, money, reports, forecast, backups, settings. It works on a phone too, which matters when the manager isn’t in the building.


Developer console
Where restaurants get created, building blocks get switched on, and settings get locked. Also where backups and audit logs for each restaurant live.
Under the hood, in one go
A small server. Hono for HTTP, ws for WebSockets on the same server, postgres.js for the database, Zod for validation. No ORM: the SQL is written by hand and every query is parameterised. Migrations are plain .sql files (40 of them so far).
One database. PostgreSQL 18. Row locks make it safe when a kiosk and the till touch the same order at the same moment. The analytics run on the same database.
Fast screens. Svelte 5 and Vite, one build that produces a separate small app for each screen. Each one loads everything it needs in a single request, paints from its cache immediately, and refreshes in the background.
HTTPS even on the local network. Caddy sits in front and handles certificates, on the public internet or on a box in the back office.
Three containers. Database, API, web. It runs on a small box in the restaurant or in the cloud.
Security, properly
Logins can be killed instantly. A session is a random token, and the server stores only a hash of it. If a tablet gets stolen, you unpair it and it’s dead. If someone leaves, you disable them and every session they had stops working.
Passwords and PINs are stored safely. Passwords use scrypt. Sri Lankans are great at creating extraordinarily strong passwords and remembering them splendidly, so plain hashing wouldn’t protect it. PINs are keyed in HMAC with a pepper, and guessing is rate-limited.
Backups that are actually tested. Encrypted, and verified by doing a real test restore. They’re copied to storage the restaurant controls, kept on a retention schedule, and handled with the privacy law in mind. There are two independent sets: the restaurant’s own, and the operator’s backup of the whole installation, so neither side has to trust the other with the only copy.
Making it yours, for real
Screen studio. In the admin portal you see a live preview of each guest-facing screen (kiosk, table tablet, Guest Display, ICD, menu board, status board). You click the part you want to change and change it. Colours, fonts, layout, which blocks show, the words.


Three languages. Every word a guest reads can be set in English, Sinhala and Tamil. Receipts can print in Sinhala or Tamil too.
Receipt designer. Receipts, bills, order tokens and kitchen tickets each have a designer with a live preview, layers you can move, and 58 mm or 80 mm paper.

Keyboard shortcuts that each restaurant can rebind. White label, so whoever installs R1 can put their own name and support details on it.
More Suggestions are Very Much Appreciated
Where it actually stands
Some things we left out on purpose. There’s no integrated card terminal: we built the integration and took it out, only because we don’t need it ourselves, and it’s more resources to manage something that isn’t getting used. Some things still need work. Table tablets and the TV screens still need the server. The offline handwriting engine hasn’t been tested properly, again, not in our use case.
R1 is currently running successfully across 8 different restaurants, and as of now, 2 more are on pilot.
Thank you
To the people who gave their time, opinions, complaints and patience, and to the ones who wrote the code of over 80,000 lines.
Screenshots
All taken from a demo restaurant with made-up data.
Cashier




Kiosk



Table

Waiter


Kitchen and Status


Guest Display, ICD and the menu board


Admin








Developer console
