How barisavcimail-afk/ciltgpt works
CiltGPT is a salon-focused skin-analysis SaaS: staff manage customers, start an analysis, and use its scores and recommendations in a saved report. The browser application also exposes product, team, billing, salon-settings, and admin workflows; README documentation identifies which are database-connected and which still use mock data. The server handles API requests and analysis/report creation, with repository modules forming the persistence layer. Wiring for unsampled routes is represented only where documented; the supplied excerpts do not expose every handler or integration.
Main entry points: server.js HTTP API and workflows · prisma.ts Prisma client · app.js Browser application · pages.browser.js Salon dashboard UI
Components 25
User experience
- Browser application
src/app.js - Salon dashboard UI
src/components/pages.browser.js - Admin UI
src/components/adminPages.browser.js - Customer screens
src/components/customersPage.js - Report screens
src/components/reportPage.js - Mock screen data
src/data/mockData.browser.js
Skin analysis
- Analysis wizard
src/components/analysisWizard.browser.js - HTTP API and workflows
server.js - Analysis service
src/lib/analysis/analysisService.server.js - OpenAI Vision adapter
src/lib/openai/openaiAnalysis.server.js - PDF report output
server.js
Data access
- Customer repository
src/lib/repositories/customerRepository.server.js - Analysis repository
src/lib/repositories/analysisRepository.server.js - Report repository
src/lib/repositories/reportRepository.server.js - Product repository
src/lib/repositories/productRepository.server.js - Salon repository
src/lib/repositories/salonRepository.server.js - Subscription repository
src/lib/repositories/subscriptionRepository.server.js - Team repository
src/lib/repositories/teamRepository.server.js - Admin repository
src/lib/repositories/adminRepository.server.js - System settings
src/lib/repositories/systemSettingsRepository.server.js - Prisma client
src/lib/prisma.ts
Other components
- Salon staff
- Admin user
- OpenAI API
- PostgreSQL
Connections 35
- Salon staff → Browser application: uses
- Admin user → Browser application: uses
- Browser application → Salon dashboard UI: renders
- Browser application → Admin UI: renders
- Browser application → Analysis wizard: renders
- Browser application → Customer screens: renders
- Browser application → Report screens: renders
- Salon dashboard UI → Mock screen data: reads
- Admin UI → Mock screen data: reads
- Analysis wizard → HTTP API and workflows: submits analysis
- Customer screens → HTTP API and workflows: requests customers
- Report screens → HTTP API and workflows: requests reports
- HTTP API and workflows → Analysis service: runs analysis
- Analysis service → OpenAI Vision adapter: dispatches
- OpenAI Vision adapter → OpenAI API: requests vision analysis
- HTTP API and workflows → Customer repository: reads and writes
- HTTP API and workflows → Analysis repository: records analysis
- HTTP API and workflows → Report repository: stores reports
- HTTP API and workflows → Product repository: loads product catalog
- HTTP API and workflows → Salon repository: reads and updates salons
- HTTP API and workflows → Subscription repository: updates usage
- HTTP API and workflows → Team repository: manages team
- HTTP API and workflows → Admin repository: loads admin data
- HTTP API and workflows → System settings: loads AI settings
- HTTP API and workflows → PDF report output: generates PDF
- Customer repository → Prisma client: queries
- Analysis repository → Prisma client: queries
- Report repository → Prisma client: queries
- Product repository → Prisma client: queries
- Salon repository → Prisma client: queries
- Subscription repository → Prisma client: queries
- Team repository → Prisma client: queries
- Admin repository → Prisma client: queries
- System settings → Prisma client: reads and writes
- Prisma client → PostgreSQL: queries