Enterprise-Grade Tattoo Studio Management Platform
Built with Next.js 15, Prisma, Clerk, and cutting-edge UX design.
KAIRรS OS (formerly KAIRรS OS) is a professional-first SaaS platform designed exclusively for tattoo studios, artists, and administrators. Unlike traditional booking systems, we've architected a sovereign ecosystem where:
- Professionals (Artists & Admins) have full access to the management dashboard
- Clients interact through frictionless, guest-first experiences (Kiosk, Marketplace, Forms)
- Data sovereignty ensures each studio owns its client base without polluting the global user registry
KAIRรS implements a strict invite-only authentication system for professional access:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AUTHENTICATION FLOW โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ ๐ค New User Attempts Login โ
โ โ โ
โ โโโบ Has Invite Code? โโโบ YES โโโบ Create as ARTIST โ
โ โ โ
โ โโโบ No Invite Code? โโโบ REJECT โโโบ Error Message โ
โ โ
โ ๐จ Existing Artist/Admin โโโบ Direct Access โโโบ Dashboard โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Key Benefits:
- โ Zero spam or unauthorized access
- โ Clean, focused user base (only team members)
- โ Traceable onboarding (who invited whom)
- โ Automatic role assignment based on invite type
Clients never need to create an account to interact with the studio:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CLIENT JOURNEY โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ ๐ฑ Kiosk Check-In โ
โ โโโบ Fill form (Name, Phone, Instagram) โ
โ โโโบ Select barrier (Price, Pain, Style) โ
โ โโโบ Enter Artist PIN โ
โ โโโบ Receive 10% OFF Coupon โ
โ โโโบ Saved as KioskEntry (Studio's DB) โ
โ โ
โ ๐๏ธ Marketplace Shopping โ
โ โโโบ Browse products โ
โ โโโบ Add to cart โ
โ โโโบ Checkout (Guest or Logged) โ
โ โโโบ Order saved to Studio's DB โ
โ โ
โ ๐ Anamnesis Form โ
โ โโโบ Fill medical/tattoo questionnaire โ
โ โโโบ Linked to booking via QR code โ
โ โโโบ Stored in Booking context โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Data Storage Strategy:
KioskEntryโ Lead generation, first-time visitorsBooking.clientโ Confirmed appointmentsOrder.clientโ Marketplace purchasesAnamnesisโ Medical/consent forms
All client data is scoped to the workspace, ensuring studios maintain full ownership and LGPD compliance.
- ๐ Real-time studio metrics (revenue, bookings, settlements)
- ๐จ Artist portfolio management
- ๐ Integrated Google Calendar sync
- ๐ฐ Financial settlement tracking with AI validation
- ๐ฅ Team management with invite system
- ๐ Personal Earnings & Projections ("Meus Ganhos"): Complete monthly performance view comparing realized earnings against a future projection timeline (
OPEN/CONFIRMEDbookings).
- ๐ฏ Lead capture with gamified "INK PASS" system
- ๐ฑ Public Scheduling Portal (
/kiosk): Mobile-first multi-step workflow for client check-ins (contact info, slot/date selection, booking creation without logging in). - ๐ Automatic coupon generation (10% off first tattoo)
- ๐ Artist PIN validation for fraud prevention
- ๐ Real-time sync progress visualization
- ๐ Product catalog (flash tattoos, merchandise)
- ๐ณ Integrated payment processing
- ๐ฆ Order management with artist commission tracking
- ๐จ Artist-specific product listings
- ๐ธ Unified Settlement Flow (tattoos + marketplace)
- ๐ Dynamic Commission Rate:
- Resident Artists: 30% baseline commission for the studio, dynamically dropping to 20% once the artist accumulates R$ 10.000,00 in monthly earnings.
- Guest/Associated Artists: Locked at 30% fixed commission rate, matching the initial resident rate.
- ๐ค AI-Powered Receipt Validation (Vision Agent simulation)
- ๐ฆ PIX Integration for instant payment tracking and settlement approvals
- ๐
Multi-Artist Studio Timeline: Slot-based calendar layout checking workspace bounds (max capacity
$\le 3$ active stretchers). - ๐๏ธ Physical Stretcher Selection (
macaId1-20): Artists can manually choose a physical stretcher when creating appointments viacreateBookingwith synchronous conflict detection. - ๐ Intelligent Auto-Allocation Fallback: Seamless automatic slot selection for clients, finding the first available physical stretcher sequence.
- ๐ Integrated Anamnesis Forms linked to booking context via dynamic QR codes.
- โฑ๏ธ Cron-Based Guest Deactivation: Vercel Cron-driven cleanup checking daily for expired contracts (
plan = GUESTandvalidUntil < today), deactivating artist profiles, revoking membership, and sending expiration alerts. - ๐ Google Calendar ACL Automation: Service Account integration dynamically sharing workspace calendars with new guest artists (permisson
writer) and automatically revoking sharing upon guest expiration or artist removal.
- ๐
Liquid Chrome / Metallic Achievements: 3D high-fidelity metallic badges representing real milestones (
FIRST_INK,HIGH_ROLLER,PERFECT_WEEK,LEGENDARY_ARTIST). - ๐ RPG Progression Engine: Core square-root level progression model:
$$Level = \lfloor\sqrt{XP/100}\rfloor + 1$$ - ๐ Dynamic Custom Ranks (e.g., Iniciado da Tinta, Tecelรฃo do Tempo, Titรฃ do Kronos) with dedicated badge designs in
/public/assets/gamification/badges.
- Next.js 15 (App Router, Server Components)
- TypeScript (Strict mode)
- Tailwind CSS (Custom design system)
- Framer Motion (Animations)
- Lucide Icons (UI icons)
- Prisma ORM (PostgreSQL)
- Clerk Authentication (SSO-first entry gate)
- Anti-friction onboarding gate collecting and normalizing artist details without Brazilian carrier SMS barriers.
- Synchronous custom auth sync to prevent phantom administrative entries.
- Server Actions (Type-safe API)
- Resend (Email delivery)
- Vitest (Unit testing engine)
- 55 automated unit tests protecting:
- Financial splits, product markups, and coupon deduction mathematics.
- Gamification XP scaling, level boundaries, and achievements.
- Dynamic
macaIdinput integrity and validations onbookingSchema(Zod).
The core business logic is heavily audited and guarded by Vitest. To run the full test suite in isolation:
# Run unit tests
npx vitest run --root .All 55 core operations will be checked, including edge-case limits, decimal divisions, and validation schemas.
- Node.js 18+
- PostgreSQL database
- Clerk Account (for auth)
- Resend API key (for emails)
-
Clone the repository
git clone https://github.com/SH1W4/KAIRรS OS.git cd KAIRรS OS/kronos -
Install dependencies
npm install
-
Configure environment variables
cp .env.example .env
Required variables:
DATABASE_URL="postgresql://..." NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_..." CLERK_SECRET_KEY="sk_..." # Email (Resend) RESEND_API_KEY="re_..." RESEND_FROM_EMAIL="KAIRรS OS <acesso@yourdomain.com>"
-
Initialize database
npx prisma generate npx prisma db push
-
Run development server
npm run dev
-
Access the application
- App:
http://localhost:3000 - Kiosk:
http://localhost:3000/kiosk
- App:
- Professional Gate: Invitation-only Clerk SSO onboarding bypass.
- Kiosk Lead Capture System: Gamified "INK PASS" lead entry & coupon generator.
- Gamification Core (Soul Sync): Square-root progression engine.
- Liquid Chrome Achievement Assets: Metallic 3D achievements integrated.
- Studio Capacity Management: Physical stretcher allocation (
macaId1-20) and calendar booking conflict checks. - Dynamic Commission Split: Automated resident commission scaling (30%
$\rightarrow$ 20% over R$ 10k) and guest fixed 30% rate. - Vitest Quality Gate: 55 automated unit tests protecting formulas.
- AI Vision Simulation: Dynamic settlement validation OCR logic.
- Public Scheduling Portal: Frictionless
/kioskpage with capacity and stretcher allocation validations. - Guest Lifecycle Automation: Automated expiration checking, profile deactivation, and workspace removal.
- Google Calendar Auto-Sync: Automated Service Account ACL share/revoke operations.
- Personal Future Projections: Detailed "Meus Ganhos" page with dynamic temporal selectors, earnings calculation, and timeline.
- Omnichannel WhatsApp CRM: Trigger automated notifications, coupons, and check-in confirmation dynamically.
- Sovereign Wallet & Real PIX Split: Instant PIX payout integrations.
- Extended BI Dashboard: Operational analytics, heatmaps of studio capacity, and artist rankings.
This project is proprietary software. All rights reserved.
Built by Symbeon Labs
For inquiries: Contact
- Design inspiration: Arrival (2016), Cyberpunk 2077
- UI/UX: Vercel, Linear, Stripe
- Community: Next.js, Prisma, Tailwind CSS
KAIRรS OS - Where Art Meets Technology
[](https://vercel.com/new/clone?repository-url=https://github.com/SH1W4/KAIRรS OS)




