Skip to content

PromptVault v2.2.1 - Military-Grade Memory Hygiene, 6-Digit PIN Security & Architecture Docs Portal

Latest

Choose a tag to compare

@SagarBiswas-MultiHAT SagarBiswas-MultiHAT released this 21 Oct 21:32
· 5 commits to main since this release

🛡️ PromptVault v2.2.1: Hardened Security, Active Memory Hygiene & Comprehensive Architecture Portal

PromptVault v2.2.1 delivers crucial security hardening for local prompt storage, memory isolation upon lock, zero-vulnerability dependencies, and a complete Docs-as-Code engineering knowledge base with 300% DPI architecture models.


⚡ What is PromptVault?

When you work with AI models (ChatGPT, Claude, Midjourney), your prompts often contain confidential project ideas, proprietary logic, API snippets, and personal drafts. Cloud prompt managers store your notes unencrypted on remote corporate servers.

PromptVault does the exact opposite:

  • Zero-Knowledge Encryption: All prompt data is encrypted directly in your browser using AES-256-GCM with PBKDF2-SHA-256 (600,000 iterations) before anything touches disk.
  • True Offline First: Works 100% offline with zero external telemetry.
  • Smart AI Librarian: Dual-provider backend proxy (Google Gemini 2.5/2.0 + Groq Cloud fallback) evaluates and refines prompts without exposing API credentials to the browser.
  • Private Cross-Device Sync: Optional Supabase sync guarded by PostgreSQL Row-Level Security, storing only ciphertext.

🔒 Security Hardening in v2.2.1

1. 6-Digit PIN Entropy Protection

  • Increased Brute-Force Resistance: Numeric PIN creation now requires a minimum of 6 digits (up from 4), expanding the potential keyspace from 10,000 to 1,000,000 combinations.
  • Backward Compatibility: Existing 4-digit vaults continue to unlock seamlessly without requiring data migration.
  • Progressive Cooldown Delays: Implemented exponential backoff delays on repeated failed unlock attempts to mitigate automated PIN guessing.

2. Active Session Memory Hygiene

  • Instant Memory Zeroing: When the vault is manually locked, decrypted prompt data in React state and internal memory refs is immediately cleared and zeroed out.
  • Modal & Overlay Reset: All open edit dialogs, prompt viewers, and settings overlays are automatically closed upon lock to prevent UI data leakage.
  • Defensive Storage Guard: Added a defensive storage guard preventing accidental unencrypted writes while the vault is locked.

3. Zero-Vulnerability Toolchain

  • Vite 6.4.5 Upgrade: Upgraded the Vite build engine to 6.4.5, resolving all open development security advisories (npm audit reports 0 vulnerabilities).
  • Expanded Test Coverage: Added dedicated unit test suites for PIN length verification, progressive cooldown timers, and active session memory hygiene (81 passing unit tests across 11 test suites).

📚 Complete Docs-as-Code Knowledge Base & Visual Diagrams

PromptVault now features a complete technical documentation suite in docs/:

  • C4 Architecture Models: Complete component and container blueprints.
  • Threat Model & Security Spec: STRIDE analysis, trust boundaries, and 5 inviolable security invariants.
  • Architectural Decision Records (ADRs 0001 - 0004): Formal rationale for Envelope Encryption, Dual AI Fallback, Last-Write-Wins Merge, and Backend Isolation.
  • OpenAPI 3.1.0 Specification: Machine-readable schema and human-readable API integration guide.
  • Super-Ultra-High-Quality Diagrams: 300% DPI (3x scale) dark-mode architecture and workflow PNG diagrams in diagrams/.

🚀 Quick Start

# Clone the repository
git clone https://github.com/SagarBiswas-MultiHAT/promptVault.git
cd promptVault

# Install dependencies
npm install

# Test your AI provider keys (zero token consumption)
npm run test:keys

# Launch development server
npm run dev