How vigneshpulipati/insecdex works
InsecDex is a camera-first field identification web app. The user starts from the guide, captures or selects a specimen photo, and the app sends it through its API helper to the Node server, which requests a structured identification from Gemini. The result is shown as a specimen card and can be rendered as a shareable image. The graph covers the documented capture, identification, safety, and sharing capabilities; server behavior is represented by its single source file. Browser and device interactions are external to the repository.
Main entry points: App.jsx App state · CameraCapture.jsx Photo capture · ShareResult.jsx Share controls · LandingPage.jsx Field guide
Components 13
App experience
- App state
src/App.jsx - Field guide
src/components/LandingPage.jsx - Specimen card
src/components/SpecimenCard.jsx
Specimen capture
- Photo capture
src/components/CameraCapture.jsx
Identification
- Identification client
src/lib/gemini.js - Identify API
server.js
Result sharing
- Share controls
src/components/ShareResult.jsx - Share image renderer
src/lib/shareResult.js
Other components
- Observer
- Device camera
- Image file
- Gemini service
- Browser sharing
Connections 13
- Observer → Field guide: opens guide
src/components/LandingPage.jsx - Field guide → App state: starts identification
src/App.jsx - App state → Photo capture: renders capture
src/App.jsx - Observer → Photo capture: provides photo
src/components/CameraCapture.jsx - Photo capture → Device camera: requests camera
src/components/CameraCapture.jsx - Photo capture → App state: submits file
src/App.jsx - App state → Identification client: identifies photo
src/App.jsx - Identification client → Identify API: posts image
src/lib/gemini.js - Identify API → Gemini service: requests analysis
server.js - App state → Specimen card: renders result
src/App.jsx - App state → Share controls: renders sharing
src/App.jsx - Share controls → Share image renderer: creates image
src/components/ShareResult.jsx - Share controls → Browser sharing: shares or downloads
src/components/ShareResult.jsx