How upadhyaymehul9-prog/nabh-compliance works
AccredReady is a healthcare accreditation-compliance platform. The visible user journey begins at the marketing homepage, proceeds through Supabase-backed sign-in, and into the main application; its oversized App module is the likely runtime hub, but its contents were not sampled, so links from it are marked unverified. Sampled code shows checklist data and document generation/download services, while the tree identifies AI assistance, policy drafting, and Razorpay subscription functions. Their broader wiring cannot be established from the excerpts.
Main entry points: AuthForm.js Authentication form · supabaseClient.js Supabase service · index.ts Policy document generation · App.js AccredReady app
Components 21
Web experience
- Marketing homepage
src/components/HomepageScreen.js - AccredReady app
src/App.js - Authentication form
src/components/AuthForm.js
Compliance tools
- Quick checklist
src/components/QuickChecklist.jsx - AI assistant
src/components/AIAssistantWidget.jsx - Gennie mascot
src/components/GennieMascot.jsx
Document services
- Master policy drafting
supabase/functions/draft-master-policy/index.ts - Policy document generation
supabase/functions/generate-policy-document/index.ts - Hospital policy generation
supabase/functions/generate-hospital-policy/index.ts - Policy DOCX template
supabase/functions/_shared/policy-doc-template.ts - SHCO policy download
supabase/functions/download-v2-policy/index.ts - HCO document download
supabase/functions/download-v2-hco-document/index.ts - DOCX personalization
supabase/functions/_shared/personalize-docx.ts
Platform services
- Subscription creation
supabase/functions/create-razorpay-subscription/index.ts - Payment webhook
supabase/functions/razorpay-webhook/index.ts - Embedding backfill
supabase/functions/backfill-embeddings/index.ts - Supabase service
src/supabaseClient.js
Other components
- Hospital user
- Anthropic API
- Razorpay
- Web3Forms
Connections 19
- Hospital user → Marketing homepage: visits
- Marketing homepage → Authentication form: renders
src/components/HomepageScreen.js - Authentication form → AccredReady app: login callback
- AccredReady app → Quick checklist: hosts
- AccredReady app → AI assistant: hosts
- AI assistant → Gennie mascot: uses
src/components/AIAssistantWidget.jsx - Authentication form → Supabase service: authenticates
src/components/AuthForm.js - Authentication form → Supabase service: updates profile
src/components/AuthForm.js - Authentication form → Web3Forms: submits signup
src/components/AuthForm.js - Quick checklist → Supabase service: reads and writes
src/components/QuickChecklist.jsx - Policy document generation → Supabase service: reads OE data
supabase/functions/generate-policy-document/index.ts - Policy document generation → Anthropic API: generates prose
supabase/functions/generate-policy-document/index.ts - Policy document generation → Policy DOCX template: builds document
supabase/functions/generate-policy-document/index.ts - Hospital policy generation → Policy DOCX template: uses template
supabase/functions/generate-hospital-policy/index.ts - SHCO policy download → DOCX personalization: personalizes DOCX
supabase/functions/download-v2-policy/index.ts - HCO document download → DOCX personalization: personalizes DOCX
supabase/functions/download-v2-hco-document/index.ts - Subscription creation → Razorpay: creates subscription
- Payment webhook → Razorpay: receives events
- Embedding backfill → Supabase service: updates embeddings