Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” xVault - Secure Snippet Manager Browser Extension

A powerful, secure, and privacy-focused browser extension for managing your code snippets, notes, and text content with military-grade encryption and seamless organization.

xVault Extension

πŸ“‹ Table of Contents

What is xVault?

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.

Why xVault?

  • πŸ”’ 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

πŸš€ Key Features

πŸ”’ Security Features

Multi-Layer Password Protection

  • 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

Advanced Encryption

  • 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

Security Boot System

  • 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

πŸ“± Core Functionality

Snippet Management

  • 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

Folder Organization

  • 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

Search & Discovery

  • 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

Import & Export

  • 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

🎨 User Interface

Modern Design

  • 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

Theme System

  • 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

Interactive Elements

  • 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

βš™οΈ Technical Features

Storage System

  • 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

Security Architecture

  • 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

Performance Optimization

  • 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

πŸ› οΈ Development Setup

Prerequisites

  • Node.js: Version 18.0 or higher
  • npm: Version 8.0 or higher (or yarn equivalent)
  • Browser: Chrome, Firefox, or Edge for testing

1. Clone the Repository

git clone https://github.com/takippu/xvault.git
cd xvault

2. Install Dependencies

npm install

3. Development Scripts

# Start development server with hot reload
npm run dev

# Start development for Firefox
npm run dev:firefox

# Type checking
npm run compile

4. Development Environment

The extension will automatically reload when you make changes. Open your browser's extension management page and load the extension from the .output directory.


πŸ“¦ Building & Installation

Building for Production

# Build for Chrome/Edge
npm run build

# Build for Firefox
npm run build:firefox

# Create distribution packages
npm run zip
npm run zip:firefox

Manual Installation

Chrome/Edge:

  1. Run npm run build
  2. Open Chrome/Edge and navigate to chrome://extensions/
  3. Enable "Developer mode"
  4. Click "Load unpacked" and select the .output/chrome-mv3 directory

Firefox:

  1. Run npm run build:firefox
  2. Open Firefox and navigate to about:debugging
  3. Click "This Firefox"
  4. Click "Load Temporary Add-on"
  5. Select the manifest file from .output/firefox-mv2

Store Installation

Coming soon to Chrome Web Store and Firefox Add-ons


πŸ”§ Configuration

Build Configuration

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
  },
});

Storage Configuration

Configure storage preferences in StorageContext.tsx:

// Use IndexedDB for large storage capacity
<StorageProvider useIndexedDB={true}>
  <App />
</StorageProvider>

Security Configuration

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

πŸ“ Project Structure

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

Key Files Explained

  • App.tsx: Main application logic and state management
  • StorageContext.tsx: Unified storage interface for IndexedDB/localStorage
  • enhancedSecurity.ts: Advanced security features and authentication
  • crypto.ts: Cryptographic utilities for encryption/decryption
  • importExport.ts: Data backup and restoration functionality
  • ThemeContext.tsx: Theme management and persistence

🀝 Contributing

We welcome contributions! Please see our contributing guidelines:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push to branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Maintain test coverage for security features
  • Update documentation for new features
  • Follow the existing code style and conventions

πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.


πŸ”’ Security & Privacy

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.


πŸ“ž Support


Built with ❀️ for developers who value security and productivity

⭐ Star this repo | πŸ› Report Bug | πŸ’‘ Request Feature

p.s yes this is all ai-generated dont believe em

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages