How amruth-98/credsure works
CredSure is a client-side academic credential verification demonstration. A user submits a certificate in the verification page; OCR extracts candidate details, the verification engine compares them with fictional demonstration records, and the app displays a result that can also be printed. The app also presents an explanatory pipeline, sample certificates, and sample records. The graph reflects the shown imports and documented behavior; the callback from verification back to app state is dashed because its invocation is outside the excerpt.
Main entry points: App.tsx App state and routing · VerifyPage.tsx Certificate submission · HomePage.tsx Home page · HowItWorksPage.tsx How it works
Components 16
App and pages
- App state and routing
src/App.tsx - Home page
src/components/HomePage.tsx - How it works
src/components/HowItWorksPage.tsx - Navigation bar
src/components/Navbar.tsx - Footer navigation
src/components/Footer.tsx - Page illustrations
src/components/Illustrations.tsx - Verification results
src/components/ResultsPage.tsx - Printable report
src/components/PrintReport.tsx
Credential verification
- Certificate submission
src/components/VerifyPage.tsx - OCR and field parsing
src/utils/ocrService.ts - Credential comparison
src/utils/verificationEngine.ts - Verification data types
src/types.ts
Demonstration data
- Sample certificates
src/utils/sampleCertificates.ts - Demonstration records
src/data/demonstrationRecords.ts
Other components
- User
- Tesseract OCR
Connections 16
- User → App state and routing: uses
- App state and routing → Navigation bar: renders
src/App.tsx - App state and routing → Footer navigation: renders
src/App.tsx - App state and routing → Home page: routes to
src/App.tsx - App state and routing → Certificate submission: routes to
src/App.tsx - App state and routing → How it works: routes to
src/App.tsx - App state and routing → Verification results: renders
src/App.tsx - App state and routing → Printable report: renders
src/App.tsx - Home page → Page illustrations: renders
src/components/HomePage.tsx - How it works → Demonstration records: displays
src/components/HowItWorksPage.tsx - Certificate submission → OCR and field parsing: extracts and parses
src/components/VerifyPage.tsx - OCR and field parsing → Tesseract OCR: recognizes text with
src/utils/ocrService.ts - Certificate submission → Sample certificates: generates sample images
src/components/VerifyPage.tsx - Certificate submission → Credential comparison: submits details to
src/components/VerifyPage.tsx - Credential comparison → Demonstration records: looks up credentials
src/utils/verificationEngine.ts - Certificate submission → App state and routing: reports result
src/App.tsx