How shivam-4039/kalakriti works
Kalakriti is an artisan-focused mobile cataloging and market-linkage product. The main user journey is onboarding and authentication, then capturing a product by voice or image, reviewing extracted details, and publishing it; catalog, pricing, QR, B2B, and ONDC are distinct backend capabilities. The graph combines shown frontend calls and backend wiring with documented module references. Several feature routers and services were not excerpted, so their internal processing links are omitted rather than inferred.
Main entry points: main.py API application · auth.py Authentication endpoints · api.ts API client · listingStore.ts Listing state
Components 28
Artisan mobile app
- Language selection
Frontend/app/index.tsx - Phone sign-in
Frontend/app/(auth)/login.tsx - API client
Frontend/services/api.ts
Identity and persistence
- Session state
Frontend/stores/authStore.ts - Authentication endpoints
Backend/app/routers/auth.py - Supabase auth and storage
Backend/app/services/supabase_service.py - Artisan profile
Backend/app/models/artisan.py
Catalog creation
- Listing capture
Frontend/app/listing/photo.tsx - Voice listing
Frontend/app/listing/voice.tsx - Listing state
Frontend/stores/listingStore.ts - Listing review
Frontend/app/listing/preview.tsx - Product endpoints
Backend/app/routers/products.py - Image processing endpoint
Backend/app/routers/image.py - Image processing
Backend/app/services/image_service.py - Voice endpoints
Backend/app/routers/voice.py - Speech recognition
Backend/app/services/stt_service.py - Language processing
Backend/app/services/llm_service.py
Market linkage
- Pricing endpoint
Backend/app/routers/pricing.py - Pricing model service
Backend/app/services/pricing_service.py - B2B inquiries
Backend/app/routers/b2b.py - ONDC integration
Backend/app/routers/ondc.py - QR endpoint
Backend/app/routers/qr.py
Backend platform
- Database sessions
Backend/app/database.py - API application
Backend/app/main.py
Other components
- Artisan
- PostgreSQL
- Supabase service
- Mobile app user
Connections 32
- Artisan → Language selection: chooses language
Frontend/app/index.tsx - Artisan → Phone sign-in: starts sign-in
- Phone sign-in → Session state: requests OTP
Frontend/app/(auth)/login.tsx - Session state → API client: calls auth API
Frontend/stores/authStore.ts - API client → API application: sends API requests
- API application → Authentication endpoints: registers router
Backend/app/main.py - API application → Voice endpoints: registers router
Backend/app/main.py - API application → Image processing endpoint: registers router
Backend/app/main.py - API application → Product endpoints: registers router
Backend/app/main.py - API application → Pricing endpoint: registers router
Backend/app/main.py - API application → ONDC integration: registers router
Backend/app/main.py - API application → B2B inquiries: registers router
Backend/app/main.py - API application → QR endpoint: registers router
Backend/app/main.py - API application → Pricing model service: initializes model
Backend/app/main.py - Authentication endpoints → Supabase auth and storage: verifies OTP
Backend/app/routers/auth.py - Authentication endpoints → Artisan profile: queries profile
Backend/app/routers/auth.py - Authentication endpoints → Database sessions: uses session
Backend/app/routers/auth.py - Database sessions → PostgreSQL: connects to
Backend/app/database.py - Supabase auth and storage → Supabase service: authenticates and uploads
Backend/app/services/supabase_service.py - Image processing endpoint → Image processing: uses service
Backend/app/routers/image.py - Image processing endpoint → Supabase auth and storage: uploads media
Backend/app/routers/image.py - Pricing endpoint → Pricing model service: uses service
- Mobile app user → Listing capture: begins listing
- Listing capture → Listing state: stores captured data
- Voice listing → Listing state: stores voice input
- Listing review → Listing state: reads and updates fields
Frontend/app/listing/preview.tsx - Listing state → API client: submits listing
Frontend/stores/listingStore.ts - API client → Product endpoints: requests product actions
- Voice endpoints → Speech recognition: uses speech service
- Voice endpoints → Language processing: uses language service
- Product endpoints → Database sessions: uses persistence
- B2B inquiries → Database sessions: uses persistence
Backend/app/routers/b2b.py