Skip to content
MatíasMatías Domínguez
Back to my work

in production2024–presentMy own product · iOS, Android and web

ServiceIn

Tip splitting for restaurants: tips go in as the night runs, the day closes in three steps, and every waiter sees their own balance.

The screens come from the new versions of the web panel and the app, built with Claude Code and now in testing, running on their demo data: an invented restaurant and team. Their text was translated from Spanish as each screenshot was taken, and nothing on screen was redrawn. ServiceIn runs in Spanish.

What the video shows (it has no sound)
  1. “From the tip jar to each waiter.” On mint, with the route: tips, close the day, split, each waiter, payout.
  2. “Every tip, as it comes in.” The web panel’s Today’s tips page for Monday, October 19: today’s tip pool of $ 18,450, with 2300 typed in the amount field next to Add and Edit total.
  3. “Who worked, and how many points.” Today’s split by points in the web panel: Camila González, Diego Pereira, Florencia López, Lucía Fernández and Martín Rodríguez are checked and Joaquín Sosa is not. With 1, 1.5, 0.5, 1 and 1 points they get $ 4,150, $ 6,225, $ 2,075, $ 4,150 and $ 4,150 of the $ 20,750 pool, at $ 4,150.00 a point.
  4. “Or a percentage, after fixed amounts.” On an iPhone, the restaurant’s app splits by percentage, step 2 of 3: Florencia López has a fixed $ 1,500, which comes off the $ 20,750 pool first and leaves $ 19,250 to split; Camila González’s 25% comes to $ 4,812 and Diego Pereira’s 30% to $ 5,775, and the bar reads 100%, adds up.
  5. “Exact to the peso.” The review, step 3 of 3, on the same iPhone: Camila González $ 4,812 (25%), Diego Pereira $ 5,775 (30%), Florencia López $ 1,500 (fixed amount), Lucía Fernández $ 4,813 (25%) and Martín Rodríguez $ 3,850 (20%), for a total of $ 20,750.
  6. “Each waiter sees their own.” The waiter’s app on the iPhone, on its Balance tab: $ 28,783 available, and a $ 9,300 withdrawal being paid, requested Saturday, October 10, that the restaurant has already put in a payout.
  7. “Payouts in batches, with a bank PDF.” Back in the web panel, on Transfers, the payout of Oct 11, 2026, 11:30 AM is open: $ 102,800 for 3 waiters, awaiting payment, with Lucía Fernández ($ 29,200) and Diego Pereira ($ 48,300) pending and Martín Rodríguez ($ 25,300) paid, next to the Mark all paid and PDF buttons.
  8. It closes on “ServiceIn,” in production since 2024, on iOS, Android and web.

The web screens are captures of the real web panel’s new version, and the phone screens are captures of the real app, set in an iPhone mockup; both run on demo data, and their text was translated from Spanish as each one was taken.

From the tip jar to each waiter.

A restaurant collects tips all night and splits them among whoever worked, by percentage or by points. ServiceIn turns that end-of-night math into three steps, on the web panel or a phone.

  1. Tips go in as they come

    Each tip is added to the day’s pool from the web panel or the app, cash and card alike. The pool is a running total, so a mistake is one Edit total away.

    ServiceIn web panel · demo data · translated
    ServiceIn’s web panel, Today’s tips: the tip pool of $ 18,450 with 2300 typed in the amount field next to Add and Edit total, the day’s split table below, and October’s numbers on the right.
    screenshot of the real web panel, with demo data, translated from Spanish
  2. Who worked, and how many points

    Closing starts with the people: the restaurant marks who was on shift, and only they share the pool. By points, one point is worth the pool divided by the points of those present, and each waiter’s points come from their file.

    ServiceIn web panel · demo data · translated
    The web panel’s split for today, by points: five waiters marked, Camila González 1 point $ 4,150, Diego Pereira 1.5 points $ 6,225, Florencia López 0.5 points $ 2,075, Lucía Fernández and Martín Rodríguez 1 point $ 4,150 each; the bar reads 5 waiters, to split $ 20,750, 5 pts, point = $ 4,150.00, with Close the day.
    screenshot of the real web panel, with demo data, translated from Spanish
  3. Or a percentage, after fixed amounts

    The same closing runs in the app. Fixed amounts are paid first, and the rest goes by percentage, which has to add up to 100%.

    The app on an iPhone, Close the day, step 2, split by percentage: to split $ 19,250, the pool of $ 20,750 minus $ 1,500 in fixed amounts. Camila González 25% gets $ 4,812, Diego Pereira 30% gets $ 5,775, and Florencia López has a fixed $ 1,500. The bar reads 100%, adds up.
    screenshot of the real app on an iPhone, with demo data, translated from Spanish
  4. Review, then close

    The last step shows what each one gets and warns that it can’t be undone. Closing credits every waiter at once and sends each of them a push notification with their amount.

    The app on an iPhone, Close the day, step 3, review: Camila González $ 4,812 (25%), Diego Pereira $ 5,775 (30%), Florencia López $ 1,500 (fixed), Lucía Fernández $ 4,813 (25%), Martín Rodríguez $ 3,850 (20%), total $ 20,750, and a warning that this can’t be undone.
    screenshot of the real app on an iPhone, with demo data, translated from Spanish
  5. Each waiter sees their own

    Waiters sign in to the same app and get their own view: their balance, the withdrawal in progress and everything they’ve been paid. They never see anyone else’s amounts.

    The waiter’s app on an iPhone, for Lucía Fernández: $ 28,783 available, a $ 9,300 withdrawal being paid that the restaurant has already put in a payout, a Request another withdrawal button, and $ 342,100 paid out over 11 withdrawals.
    The waiter’s app on an iPhone, her withdrawal history by month: October 2026 with $ 9,300 being paid and $ 65,700 paid out, then September with paid and cancelled withdrawals.
    screenshot of the real app on an iPhone, with demo data, translated from Spanish

Exact to the peso.

Money that gets split has to add up. The rules live in the API, and the app and the web panel show every share before anything is closed.

Three rules the split never breaks

  • Fixed amounts first

    A waiter can get a fixed amount before the split. Only what’s left is shared out, and the screen says how much that is.

  • The shares add up to the pool

    Amounts are rounded with the largest-remainder method, so the shares always add up to the pool exactly. That is why one waiter gets $ 4,812 and another $ 4,813 at the same 25%.

  • A day can’t be split twice

    Closing runs in one database transaction that locks the rows it reads, so a double tap or two phones at once can’t split the same pool twice.

The app on an iPhone, Close the day, split by percentage with the percentages at 90%: the bar reads 10% short, the note says they must add up to 100% (now 90%), and Next is disabled.
At 90%, the split can’t go ahead · screenshot of the real app on an iPhone, with demo data, translated from Spanish

The bar under the split checks the math as you type. At 100% it turns green and says it adds up; anything else says how much is missing, and Next stays off until it’s fixed.

What it doesn’t do, on purpose

Small on purpose: it tracks and splits, and the restaurant keeps its own money.

  • Hold or move money: the restaurant pays from its own bank account
  • Show a waiter anyone else’s balance
  • Undo a closed day
  • Let a split that doesn’t add up go through

Paying out, without touching the money.

A waiter asks to withdraw from their balance, and that amount is set aside at once. When the restaurant closes the period, the pending requests become one payout with a bank-ready PDF.

The restaurant pays from its own account and ticks each person as paid, or all of them at once. A payout can be cancelled only while nobody has been paid, and then every balance goes back.

ServiceIn web panel · demo data · translated
One payout opened in the web panel, Oct 11, 2026, $ 102,800, awaiting payment: Lucía Fernández $ 29,200 pending, Diego Pereira $ 48,300 pending, Martín Rodríguez $ 25,300 paid, with Mark all paid and PDF.
screenshot of the real web panel, with demo data, translated from Spanish

How it’s built.

One API behind every screen: the restaurant’s web panel, and the same app on iOS and Android for restaurants and waiters.

From the screen to the database
  1. Web panel and appReact · Expo · React Native · TypeScript
  2. APIExpress · JWT · one check per role
  3. MySQLmanaged database

Closing the day

  1. Preview of every share
  2. The restaurant confirms
  3. One transaction, then a push to each waiter
Technical details

Three roles, checked on the server

Admin (ServiceIn staff), restaurant and waiter. The role travels in the token and every route checks it in its own middleware: 5 routes for admin, 22 for restaurants, 5 for waiters, and public ones for sign-in, password reset and the app status.

Sign-in

JWT with a 30-day expiry and the secret in the environment (the server won’t start without it), rate limits on sign-in and password reset, and a reset by a 6-digit code sent by email.

The split

Fixed amounts first, then percentage or points, rounded by largest remainder. The API does it inside one transaction with SELECT … FOR UPDATE; the app and the web panel show the shares before closing.

Payouts and PDFs

Withdrawal requests reserve the balance; closing a period groups them into a payout. The server draws the bank document and the reports with pdfkit; the web panel downloads them and the app saves and shares them.

Releases

EAS build profiles for development, preview and production, with channels of the same names, versions that increment on their own and over-the-air updates. An app-status endpoint works as a kill switch and a minimum-version check, and older app versions keep working against the new API.

A demo mode for screenshots

The new versions of the app and the web panel can answer the API’s routes from memory, with an invented restaurant and 120 days of history, so screenshots and previews never touch real data. The screens on this page come from it.

Running it since 2024.

Live since December 2024, and on the App Store and Google Play today.

  • 38

    API endpoints, counted in the repository: 5 for admin, 22 for restaurants, 5 for waiters and 6 public.

  • 3

    Roles, each one enforced on the server: admin, restaurant and waiter.

Let’s talk.

What it’s about

I only use your email to reply.

Open to full-time roles and B2B contracts, remote or in Zagreb. I read and answer every message myself.

Or email me directly
hola@matidom.dev
LinkedIn