A powerful, secure, and privacy-focused browser extension for managing your code snippets, notes, and text content with military-grade encryption and seamless organization.
- What is xVault?
- π Key Features
- π Security Features
- π¨ User Interface
- π± Core Functionality
- βοΈ Technical Features
- π οΈ Development Setup
- π¦ Building & Installation
- π§ Configuration
- π Project Structure
- π€ Contributing
- π License
xVault is a sophisticated browser extension that transforms how you manage and access your text snippets, code blocks, and notes. Built with security as a core principle, xVault provides a secure, encrypted vault for storing your frequently used text content with instant access and powerful organization tools.
- π Privacy-First: All data stored locally with optional military-grade encryption
- β‘ Lightning Fast: Instant access to your snippets with one-click copying
- ποΈ Organized: Hierarchical folder system for perfect organization
- π Smart Search: Find any snippet instantly with powerful search
- π Beautiful UI: Modern, responsive design with dark/light themes
- π€ Portable: Easy import/export for backup and synchronization
- PBKDF2 Hashing: 100,000 iterations with SHA-256 for password security
- Salt-Based Security: Unique salt generation for each password
- Session Management: Optional "Remember Me" with secure session tokens
- Rate Limiting: Protection against brute force attacks
- Enhanced Integrity Verification: Multiple checkpoints to detect tampering
- AES-GCM Encryption: Industry-standard encryption for sensitive data
- Optional Folder Encryption: Additional layer of protection for folder contents
- Secure Key Derivation: Password-based key generation for data encryption
- Data Integrity Checks: Cryptographic verification of stored data
- System Integrity Verification: Checks for security system tampering on startup
- Multi-Location Data Verification: Stores security data in multiple locations
- Device Fingerprinting: Unique device identification for enhanced security
- Fallback Security Mechanisms: Multiple layers of security validation
- Create & Edit: Rich text snippet creation with optional titles
- Copy with One Click: Instant clipboard copying with visual feedback
- Multiple Modes: Copy, Edit, and Delete modes for different workflows
- Smart Paste Detection: Automatic clipboard content detection and paste assistance
- Unlimited Folders: Create and organize snippets in custom folders
- Hierarchical Structure: Nested organization for complex categorization
- Folder Operations: Rename, delete, and manage folders with confirmation dialogs
- Quick Navigation: Collapsible sidebar with folder count indicators
- Real-Time Search: Instant search across snippet titles and content
- Smart Filtering: Search results update as you type
- Content Preview: Hover to preview full snippet content for titled items
- Search Highlighting: Visual indication of search matches
- Flexible Backup: Export all data as encrypted or plain JSON
- Password Protection: Optional encryption for exported data
- Easy Migration: Import data from exported files or clipboard
- Data Validation: Automatic validation of imported data structure
- Responsive Layout: Optimized for different screen sizes
- Clean Interface: Minimalist design focused on functionality
- Visual Feedback: Toast notifications and hover effects
- Smooth Animations: Framer Motion powered transitions
- Dark/Light Themes: Automatic detection of system preference
- Custom Color Schemes: Carefully crafted color palettes for each theme
- Theme Persistence: Remembers your theme preference
- System Integration: Follows OS dark mode settings
- Modal Dialogs: Confirmation dialogs for destructive actions
- Collapsible Sidebar: Hide/show folder navigation
- Mode Indicators: Visual indicators for current operation mode
- Status Feedback: Real-time feedback for all user actions
- IndexedDB Primary: Large storage capacity (hundreds of MB)
- localStorage Fallback: Automatic fallback for compatibility
- Storage Migration: Seamless migration between storage systems
- Data Compression: Efficient storage utilization
- Local-Only Storage: No data transmitted to external servers
- Browser Isolation: Secure browser storage APIs
- Memory Protection: Secure handling of sensitive data in memory
- Extension Permissions: Minimal required permissions for maximum security
- Lazy Loading: Components loaded on demand
- Efficient Rendering: Optimized React rendering with hooks
- Memory Management: Proper cleanup and memory management
- Fast Search: Optimized search algorithms for instant results
- Node.js: Version 18.0 or higher
- npm: Version 8.0 or higher (or yarn equivalent)
- Browser: Chrome, Firefox, or Edge for testing
git clone https://github.com/takippu/xvault.git
cd xvaultnpm install# Start development server with hot reload
npm run dev
# Start development for Firefox
npm run dev:firefox
# Type checking
npm run compileThe extension will automatically reload when you make changes. Open your browser's extension management page and load the extension from the .output directory.
# Build for Chrome/Edge
npm run build
# Build for Firefox
npm run build:firefox
# Create distribution packages
npm run zip
npm run zip:firefox- Run
npm run build - Open Chrome/Edge and navigate to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
.output/chrome-mv3directory
- Run
npm run build:firefox - Open Firefox and navigate to
about:debugging - Click "This Firefox"
- Click "Load Temporary Add-on"
- Select the manifest file from
.output/firefox-mv2
Coming soon to Chrome Web Store and Firefox Add-ons
The extension uses WXT for build configuration. Key settings in wxt.config.ts:
export default defineConfig({
modules: ['@wxt-dev/module-react'],
manifest: {
permissions: ['storage', 'clipboardWrite', 'clipboardRead'],
// Additional manifest settings
},
});Configure storage preferences in StorageContext.tsx:
// Use IndexedDB for large storage capacity
<StorageProvider useIndexedDB={true}>
<App />
</StorageProvider>Security settings are managed in enhancedSecurity.ts:
- Password iterations: 100,000 PBKDF2 iterations
- Encryption algorithm: AES-GCM 256-bit
- Session timeout: Configurable session persistence
- Rate limiting: Failed attempt protection
xvault/
βββ entrypoints/
β βββ background.ts # Background service worker
β βββ content.ts # Content script (minimal)
β βββ popup/ # Main popup interface
β βββ App.tsx # Main application component
β βββ components/ # Reusable UI components
β βββ contexts/ # React contexts (Storage, Theme)
β βββ utils/ # Utility functions
β β βββ crypto.ts # Cryptographic functions
β β βββ dbStorage.ts # IndexedDB implementation
β β βββ enhancedSecurity.ts # Security features
β β βββ importExport.ts # Data import/export
β βββ [components].tsx # Individual page components
βββ public/
β βββ icon/ # Extension icons
βββ src/
β βββ components/ # Shared components
βββ assets/ # Static assets
βββ package.json # Dependencies and scripts
βββ wxt.config.ts # Build configuration
βββ tailwind.config.js # Styling configuration
βββ tsconfig.json # TypeScript configuration
App.tsx: Main application logic and state managementStorageContext.tsx: Unified storage interface for IndexedDB/localStorageenhancedSecurity.ts: Advanced security features and authenticationcrypto.ts: Cryptographic utilities for encryption/decryptionimportExport.ts: Data backup and restoration functionalityThemeContext.tsx: Theme management and persistence
We welcome contributions! Please see our contributing guidelines:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
- Follow TypeScript best practices
- Maintain test coverage for security features
- Update documentation for new features
- Follow the existing code style and conventions
This project is licensed under the MIT License. See the LICENSE file for details.
xVault is designed with privacy as a fundamental principle:
- No Data Collection: We don't collect any user data
- Local Storage Only: All data remains on your device
- No Network Requests: Extension works entirely offline
- Open Source: Full transparency with open source code
- Regular Security Audits: Continuous security improvements
For security concerns or vulnerability reports, please contact our security team.
- Documentation: Check our Wiki
- Issues: Report bugs on GitHub Issues
- Discussions: Join our GitHub Discussions
Built with β€οΈ for developers who value security and productivity
p.s yes this is all ai-generated dont believe em