How demianeid/idarty works
Idarty is a bilingual, multi-tenant appointment-booking product. A customer visits a tenant’s public website, selects a booking flow, and can later manage the appointment; tenant staff configure services, schedules, team, branding, and bookings in a workspace dashboard. Account creation and tenant onboarding support workspace setup, while platform administrators have a separate console. The tree and excerpts also show reminder delivery and email-based auth. Several booking and management implementations are unsampled, so their internal links are omitted rather than inferred.
Main entry points: index.ts Application database · authz.ts Access control · page.tsx Public website · auth.ts Authentication
Components 30
Identity and setup
- Sign-in and signup
components/auth-form.tsx - Authentication
lib/auth.ts - Auth API route
app/api/auth/[...all]/route.ts - Workspace onboarding
app/[locale]/onboarding/actions.ts - Onboarding form
components/onboarding-form.tsx
Booking lifecycle
- Public website
app/[locale]/tenants/[slug]/page.tsx - Website renderer
components/tenant-website.tsx - Booking page
app/[locale]/tenants/[slug]/book/page.tsx - Booking actions
app/[locale]/tenants/[slug]/book/actions.ts - Booking confirmation
app/[locale]/tenants/[slug]/book/confirmed/page.tsx - Manage booking
app/[locale]/manage-booking/page.tsx - Manage actions
app/[locale]/manage-booking/actions.ts - Manage tokens
lib/booking-manage.ts
Tenant workspace
- Tenant dashboard
app/[locale]/tenants/[slug]/dashboard/page.tsx - Workspace actions
app/[locale]/tenants/[slug]/dashboard/actions.ts - Staff actions
app/[locale]/tenants/[slug]/dashboard/staff-actions.ts - Service editor
components/service-form.tsx - Staff assignments
components/staff-services-form.tsx
Platform operations
- Platform admin
app/[locale]/admin/page.tsx - Admin actions
app/[locale]/admin/actions.ts - Reminder dispatcher
app/api/cron/reminders/route.ts - Reminder claiming
lib/notifications.ts
Shared services
- Transactional email
lib/email/send.tsx - Access control
lib/authz.ts - Application database
lib/db/index.ts - Data model
lib/db/schema.ts - Audit logging
lib/audit.ts - Locale support
lib/i18n.ts - Website configuration
lib/website-config.ts
Other components
- Customer
Connections 38
- Customer → Public website: visits
app/[locale]/tenants/[slug]/page.tsx - Public website → Application database: loads tenant data
app/[locale]/tenants/[slug]/page.tsx - Public website → Website configuration: parses published config
app/[locale]/tenants/[slug]/page.tsx - Public website → Website renderer: renders
app/[locale]/tenants/[slug]/page.tsx - Public website → Locale support: uses locale
app/[locale]/tenants/[slug]/page.tsx - Customer → Booking page: starts booking
- Booking page → Booking actions: submits booking
- Booking actions → Booking confirmation: leads to confirmation
- Customer → Manage booking: manages appointment
app/[locale]/manage-booking/page.tsx - Manage booking → Application database: reads bookings
app/[locale]/manage-booking/page.tsx - Manage booking → Manage tokens: uses token logic
app/[locale]/manage-booking/page.tsx - Customer → Sign-in and signup: signs in or up
- Sign-in and signup → Authentication: uses auth client
components/auth-form.tsx - Auth API route → Authentication: dispatches auth
app/api/auth/[...all]/route.ts - Authentication → Application database: configures adapter
lib/auth.ts - Authentication → Transactional email: sends auth email
lib/auth.ts - Authentication → Audit logging: records auth events
lib/auth.ts - Onboarding form → Workspace onboarding: submits setup
- Workspace onboarding → Application database: persists workspace
- Tenant dashboard → Access control: checks tenant access
app/[locale]/tenants/[slug]/dashboard/page.tsx - Tenant dashboard → Application database: loads workspace data
app/[locale]/tenants/[slug]/dashboard/page.tsx - Tenant dashboard → Service editor: renders editor
app/[locale]/tenants/[slug]/dashboard/page.tsx - Service editor → Workspace actions: calls create action
components/service-form.tsx - Staff assignments → Staff actions: calls assignment action
components/staff-services-form.tsx - Workspace actions → Application database: uses database
app/[locale]/tenants/[slug]/dashboard/actions.ts - Workspace actions → Access control: checks access
app/[locale]/tenants/[slug]/dashboard/actions.ts - Staff actions → Application database: uses database
app/[locale]/tenants/[slug]/dashboard/staff-actions.ts - Staff actions → Access control: checks access
app/[locale]/tenants/[slug]/dashboard/staff-actions.ts - Platform admin → Application database: loads admin data
app/[locale]/admin/page.tsx - Platform admin → Access control: checks admin access
app/[locale]/admin/page.tsx - Platform admin → Admin actions: offers tenant actions
app/[locale]/admin/page.tsx - Reminder dispatcher → Reminder claiming: claims due reminders
app/api/cron/reminders/route.ts - Reminder dispatcher → Application database: reads and updates
app/api/cron/reminders/route.ts - Reminder dispatcher → Manage tokens: creates manage token
app/api/cron/reminders/route.ts - Reminder dispatcher → Transactional email: sends reminder
app/api/cron/reminders/route.ts - Application database → Data model: uses schema
lib/db/index.ts - Access control → Application database: checks membership
lib/authz.ts - Access control → Audit logging: records denials
lib/authz.ts