How akshaybelagali06-cmyk/passvault works
PassVault is an offline password-vault app. The main flow checks whether a PIN exists, routes users through setup or unlock, then lets them browse, search, add, view, and manage encrypted vault entries. The graph includes the PIN security layer, encrypted local persistence, and the principal screen/UI components. Source excerpts show several calls directly; for unsampled screens and integrations, relationships are omitted rather than inferred.
Main entry points: (home)/index.tsx Vault listing · vault.ts Vault database · app/index.tsx Startup screen · setup.tsx PIN setup
Components 25
Access control
- Startup screen
src/app/index.tsx - PIN setup
src/app/setup.tsx - PIN unlock
src/app/lock.tsx
Vault workflows
- Vault listing
src/app/(home)/index.tsx - Add entry
src/app/(home)/add.tsx - Entry detail
src/app/(home)/entry/[id].tsx - Settings
src/app/(home)/settings.tsx - Privacy notice
src/app/(home)/privacy.tsx - Terms
src/app/(home)/terms.tsx
Security and storage
- PIN service
src/services/pin.ts - Secure Store
- Vault database
src/database/vault.ts - SQLite storage
- Payload encryption
src/services/encryption.ts - Clipboard service
src/services/clipboard.ts - Vault data types
src/types/vault.ts
Interface components
- Theme tokens
src/constants/theme.ts - Glass support
src/hooks/use-glass.ts - Aurora background
src/components/ui/aurora-background.tsx - Glass controls
src/components/ui - PIN keypad
src/components/pin-pad.tsx - PIN indicators
src/components/pin-dots.tsx - Vault components
src/components/vault - Entry row
src/components/vault/entry-row.tsx
Other components
- User
Connections 33
- User → Startup screen: opens app
- Startup screen → PIN service: checks PIN
src/app/index.tsx - Startup screen → PIN unlock: routes if set
src/app/index.tsx - Startup screen → PIN setup: routes if absent
src/app/index.tsx - PIN setup → PIN service: creates PIN
src/app/setup.tsx - PIN unlock → PIN service: verifies PIN
src/app/lock.tsx - PIN service → Secure Store: reads and writes
src/services/pin.ts - User → Vault listing: uses vault
- Vault listing → Vault database: loads entries
src/app/(home)/index.tsx - Vault listing → Entry row: renders entries
src/app/(home)/index.tsx - Vault listing → Add entry: opens add form
src/app/(home)/index.tsx - Vault listing → Entry detail: opens selected entry
src/app/(home)/index.tsx - Add entry → Vault database: saves entry
src/app/(home)/add.tsx - Entry detail → Vault database: loads entry
src/app/(home)/entry/[id].tsx - Vault database → SQLite storage: queries and updates
src/database/vault.ts - Vault database → Payload encryption: encrypts and decrypts
src/database/vault.ts - Vault database → Vault data types: uses entry types
src/database/vault.ts - Startup screen → Aurora background: renders
src/app/index.tsx - PIN setup → PIN keypad: renders
src/app/setup.tsx - PIN setup → PIN indicators: renders
src/app/setup.tsx - PIN unlock → PIN keypad: renders
src/app/lock.tsx - PIN unlock → PIN indicators: renders
src/app/lock.tsx - PIN keypad → Glass controls: uses key control
src/components/pin-pad.tsx - Aurora background → Glass support: provides context
src/components/ui/aurora-background.tsx - Aurora background → Theme tokens: uses colors
src/components/ui/aurora-background.tsx - Entry row → Vault components: uses avatar
src/components/vault/entry-row.tsx - Vault listing → Vault components: uses shell
src/app/(home)/index.tsx - Add entry → Vault components: uses shell and avatar
src/app/(home)/add.tsx - Entry detail → Vault components: uses shell and avatar
src/app/(home)/entry/[id].tsx - Settings → Theme tokens: uses styling
src/app/(home)/settings.tsx - Privacy notice → Theme tokens: uses styling
src/app/(home)/privacy.tsx - Terms → Theme tokens: uses styling
src/app/(home)/terms.tsx - Entry detail → Clipboard service: copies credentials