Online booking for barbershops and salons
Na Régua
Personal projectPublic demo
Online booking for barbershops and salons. Clients book on their own from the phone, pay a small Pix deposit and get the reminder on WhatsApp; the owner sees the day's schedule by professional, the till with each one's share, the no-shows and who stopped coming.
- What I built
- Booking for barbershops and salons, with a customer flow, reminders and an owner dashboard.
- Outcome and current status
- Public demo with a fictional barbershop. Pix and WhatsApp are simulated; there is no paying barbershop yet.
See the project


Context
Na Régua (Brazilian slang for a sharp line-up, and for anything done just right) was made for the owner of a barbershop or salon, the most common kind of business in inland São Paulo, where almost every booking is still taken by hand on WhatsApp. When a client books and does not show up, the chair sits empty and the money for that hour never comes back. It is a product of my own, ready for its first barbershop. The public demo uses Barbearia Navalha de Ouro, in Itobi, a fictional barbershop, and everything in it is made up.
Challenge
Barbershops and salons book on WhatsApp, by hand, and lose money on clients who book and never show up. The booking systems already out there charge R$ 40 to R$ 190 a month, and their users’ complaints are hardly ever about the calendar: they are about billing, like a fine for cancelling the annual plan, fees charged after cancelling, support only by bot, and WhatsApp charged per message. The demo also had to show all of this without spending anything: no real Pix, no real WhatsApp, and no visitor seeing what another one wrote.
Solution
- Only the slots that are really free. The client picks the service, the professional (or “anyone”) and the time. The calendar respects business hours, the lunch break, each professional’s day off and the length of the service, and never books the same slot twice.
- A small Pix deposit, with the rule in plain sight. The deposit is only asked of new clients or for services above R$ 60: 30% of the service, at least R$ 15, taken off the price on the day. The Pix code comes with the exact amount, in a BR Code whose CRC16 is checked against the Central Bank’s example, and the slot is held for 15 minutes while the payment comes in. The cancellation policy shows up before confirming, with an “I have read and accept” box: with 24 hours’ notice or more, the client loses nothing; with less, the deposit stays with the barbershop.
- Reminders on WhatsApp. A confirmation, a day-before reminder at 18:00 with Confirm and Reschedule buttons, a heads-up 2 hours before, and a come-back message for whoever has been away 20 days or more. In the demo, the messages show up in a tab, and the “Advance the clock” button moves time forward for that session only, to watch the reminders arrive.
- The owner’s panel. The day’s schedule in columns by professional, with Served, No-show and Cancel, and walk-ins at the counter. The day’s till by payment method, with the salon’s and the professional’s share in the partner-salon format set by Brazilian law (Lei 13.352/2016). No-shows and deposits, the subscription club with late payments, and the client list with who stopped coming.
- Every visitor gets a barbershop of their own. Each demo session is a Cloudflare Durable Object with its own SQLite database, loaded with sample data, which wipes itself after 1 hour. Opening sessions and taking actions are rate-limited per IP, the phone number always travels in the request body, never in the URL, and the page’s security policy (CSP) refuses inline styles.
- A demo that costs nothing. No paid API, no real WhatsApp and no real Pix: the Pix key is fake, marked “do not pay”, and the payment is simulated by a button. It all runs on Cloudflare’s free plan, with no secrets.
Result
The demo is live at agenda.ignotti.com, and anyone can book a slot at Navalha de Ouro, pay the deposit with a pretend Pix, watch the WhatsApp messages arrive, and open the owner’s panel. A publish only goes out after 139 automated tests pass: 117 in the Workers runtime and 22 end-to-end in Playwright, on desktop and mobile, with accessibility checked by axe in the light and dark themes. There is no paying barbershop yet. For a barbershop that signs up, setting it up connects real Pix with automatic confirmation, Meta’s official WhatsApp on the barbershop’s own number, its own domain and brand, and brings over the calendar it uses today.
Numbers
- Automated tests
- 139
- Source: 117 tests across 11 files in the Workers runtime and 22 Playwright E2E tests (11 on desktop and 11 on mobile), run before every publish · measured on Nov 1, 2026
Gallery

