How vasipallie/onestore works
1. Repository shape
- This repo is centered on a Python CLI password manager with a small Node-based web layer alongside it.
- The core product boundary is: terminal client + local encryption + Supabase-backed cloud persistence.
2. Primary runtime: CLI application
- cli/cli.py is the main application entrypoint for OneStore.
- cli/release/cli.exe is a packaged Windows release artifact, which suggests the CLI is distributed as a standalone executable rather than only as source.
3. User interaction model
- The CLI exposes the main user flows described in the README: auth, password-gen, passstore, passretrieve, clear-passstore, support, and exit.
- This makes the terminal the main control plane for authentication and password operations.
4. Security boundary: encryption happens locally
- The key architectural guarantee is that passwords are encrypted on the user’s device before any cloud sync.
- The README says Fernet is used for encryption, with the encryption key derived from the user’s 5-word keyphrase.
- That means the cloud never receives plaintext passwords; it only stores encrypted payloads and whatever is needed for account verification.
5. Identity and recovery model
- The 5-word keyphrase is the main recovery mechanism and is intentionally unrecoverable by the service.
- This creates a strict zero-knowledge boundary: losing the keyphrases means losing access to stored secrets.
6. Cloud dependency
- The README identifies Supabase as the cloud backend for authentication and database storage.
- Architecturally, Supabase is the external persistence/auth layer for user accounts and encrypted password records, while the client remains responsible for decrypting and encrypting data.
7. Password storage flow
- The expected data flow is: user enters or generates a password → CLI encrypts it locally → encrypted value is synced to Supabase.
- Retrieval reverses that flow: CLI fetches encrypted data from Supabase → derives the local key from the keyphrases → decrypts locally for display/use.
8. Password generation flow
- The CLI includes a password generator, and the README notes WonderWords as part of the tech stack.
- That suggests generated passwords and/or keyphrases are produced client-side, keeping secret generation out of the backend.
9. Web subsystem
- OneStore Web/index.js, OneStore Web/views/index.ejs, and OneStore Web/views/files indicate a separate server-rendered Node web app.
- The presence of EJS templates suggests a simple presentation layer rather than a SPA or heavy frontend stack.
- Based on the tree alone, this web app appears separate from the core CLI and is likely for landing/help/support or a lightweight web interface.
10. Assets and documentation
- assets/onestore.png is branding used in the README and likely in the web UI.
- readme.md is the main source of product behavior, command surface, and security model.
11. Release and packaging
- The checked-in executable under cli/release/ shows the project is intended to ship as a prebuilt desktop/terminal binary.
- That matters for architecture because end users do not need to run a server locally to use the CLI core.
12. Important repo note for a diagram
- The README references files and folders such as server/, requirements.txt, and backup.py, but the current tree shows OneStore Web/ instead.
- So the safest architecture diagram is to center on the current split: Python CLI core + external Supabase + separate Node/EJS web app.
Main entry points: index.js Web app · cli.py CLI app · readme.md README · package.json Package manifest
Components 18
Python CLI
Terminal password manager, local encryption boundary, and packaged release
- CLI app · Main terminal control plane for OneStore
cli/cli.py - Windows build · Prebuilt executable distribution artifact
cli/release/cli.exe - Auth flow · Login and account verification actions
- Password gen · Client-side password creation
- Store secrets · Encrypts passwords locally before sync
- Retrieve secrets · Fetches encrypted data and decrypts locally
- Keyphrase · Five-word recovery secret used to derive the encryption key
- Fernet crypto · Local encryption and decryption boundary
Node Web
Small server-rendered web layer
- Web app · Server-rendered Node application
OneStore Web/index.js - Home view · Primary rendered page
OneStore Web/views/index.ejs - View files · Auxiliary view-side files
OneStore Web/views/files - Package manifest · Node web app package definition
OneStore Web/package.json - Lockfile · Pinned dependency resolution for web app
OneStore Web/package-lock.json
External services
Cloud backend and client-side generation dependency
- Supabase · Authentication and encrypted record persistence
- WonderWords · Client-side word generation support
Docs & assets
Repository documentation and branding
- README · Describes commands, flows, and security model
readme.md - Brand asset · Project logo used by docs and web UI
- Ignore rules · Repository ignore configuration
.gitignore
Connections 23
- CLI app → Auth flow: offers · CLI exposes authentication as a core command
- CLI app → Password gen: offers · CLI includes password generation flow
- CLI app → Store secrets: drives · CLI handles password storage workflow
- CLI app → Retrieve secrets: drives · CLI handles password retrieval workflow
- Store secrets → Fernet crypto: encrypts with · Passwords are encrypted locally before cloud sync
- Retrieve secrets → Fernet crypto: decrypts with · Encrypted records are decrypted on the device
- Fernet crypto → Keyphrase: derives key from · Five-word phrase is the recovery secret
- Store secrets → Supabase: syncs to · Encrypted password records are stored in the cloud
- Retrieve secrets → Supabase: fetches from · Client reads encrypted records from Supabase
- Auth flow → Supabase: authenticates via · Account verification and sign-in use Supabase
- Password gen → WonderWords: uses · Word generation support for client-side creation
- Web app → Home view: renders · Node app serves the EJS view
- Web app → View files: serves · Web app includes view-side files
- Web app → Supabase: integrates with · Web layer likely relies on the same cloud backend
- README → CLI app: documents · README defines the CLI command surface and behavior
- README → Fernet crypto: documents · README explains local encryption and zero-knowledge boundary
- README → Supabase: documents · README names Supabase as backend storage and auth
- README → Web app: mentions · README references the separate Node web subsystem
- Brand asset → README: used by · Branding appears in repository documentation
- Brand asset → Web app: used by · Logo likely reused by the web interface
- Package manifest → Web app: boots · Node package defines the web entrypoint
- Lockfile → Package manifest: pins · Lockfile constrains web dependencies
- Ignore rules → Windows build: excludes · Repo ignore rules likely keep build artifacts out of source control