How dharanigovardhan2008/safethelock works
SafetheLock is a browser password vault and project-credential organizer. Users sign in with Google, create or verify a PIN, then manage searchable password and project records; the app encrypts selected credential fields and synchronizes records with Firestore. The graph covers the sampled app orchestration, auth gate, forms, cards, and Firebase setup. Password-form and card internals were not sampled, so their detailed behavior is omitted; README-described encryption and Firebase capabilities are retained where supported.
Main entry points: App.tsx Vault orchestration · AuthScreen.tsx Sign-in and PIN · firebase.ts Firebase setup · main.tsx React entry
Components 12
Access control
- Sign-in and PIN
src/components/AuthScreen.tsx
Vault workspace
- React entry
src/main.tsx - Vault orchestration
src/App.tsx - Credential encryption
src/App.tsx
Record interfaces
- Password form
src/components/AddPasswordModal.tsx - Password card
src/components/PasswordCard.tsx - Project form
src/components/AddProjectModal.tsx - Project card
src/components/ProjectCard.tsx
Cloud services
- Firebase setup
src/firebase.ts - Firebase Authentication
- Cloud Firestore
Other components
- Vault user
Connections 16
- Vault user → React entry: opens app
src/main.tsx - React entry → Vault orchestration: renders
src/main.tsx - Vault orchestration → Sign-in and PIN: gates access
src/App.tsx - Sign-in and PIN → Firebase setup: uses services
src/components/AuthScreen.tsx - Firebase setup → Firebase Authentication: configures
src/firebase.ts - Firebase setup → Cloud Firestore: configures
src/firebase.ts - Sign-in and PIN → Firebase Authentication: signs in
src/components/AuthScreen.tsx - Sign-in and PIN → Cloud Firestore: reads/writes PIN
src/components/AuthScreen.tsx - Sign-in and PIN → Vault orchestration: unlocks children
src/components/AuthScreen.tsx - Vault orchestration → Cloud Firestore: syncs records
src/App.tsx - Vault orchestration → Credential encryption: encrypts/decrypts fields
src/App.tsx - Vault orchestration → Password form: opens and saves
src/App.tsx - Vault orchestration → Password card: renders records
src/App.tsx - Vault orchestration → Project form: opens and saves
src/App.tsx - Vault orchestration → Project card: renders records
src/App.tsx - Project card → Vault user: copies or opens links
src/components/ProjectCard.tsx