Multi-tenant SaaS · AI
Razor: the barbershop operating system
The evolution of BarberBot: from a WhatsApp bot into a SaaS where
each barbershop has an AI that answers, books and charges over
WhatsApp, plus a web panel with schedule, cash register,
commissions, inventory and a subscription club.
-
Legacy refactoring: a ~1,000-line central class
became cohesive services, the empty
catch blocks
are gone, and conversation state moved from 12 in-memory maps
to a StateStore port backed by Redis.
-
Fail-closed tenant isolation: a security audit
closed three critical flaws before the pilot, among them a
forgeable webhook and the pairing QR code exposed without
login.
-
486 tests, with integration against real
PostgreSQL and Redis through Testcontainers in CI, and 34
Flyway migrations.
Java
Spring Boot 3
React 18 + Vite
PostgreSQL + Flyway
Redis
OpenAI (GPT-4o / Whisper)
Testcontainers
Private repository (proprietary product)
Video coming soon