Back to Projects
CroxShare
CompletedNext.jsTypeScriptWebRTC+3 more

CroxShare

P2P file sharing with WebRTC direct transfers, browser-native compression (85% savings on JSON), clipboard paste support, and real-time transfer analytics

Timeline

2024

Role

Full Stack Developer

Status
Completed

Technology Stack

Next.js
TypeScript
WebRTC
WebSocket
Tailwind CSS
Framer Motion

Overview

Premium peer-to-peer file sharing platform with compression, clipboard support, and real-time analytics. Built with 26+ production features across 5 development phases.

Core Transfer Features

WebRTC P2P

  • Direct peer-to-peer transfer without server intermediary
  • 6-digit room codes for easy connection
  • Real-time status with live connection monitoring
  • Multiple files batch transfer support
  • 50+ file icons for beautiful file type recognition

Compression System

  • Automatic compression achieving 20-85% smaller files
  • Smart detection that skips already compressed formats
  • Real-time savings display showing compression ratio
  • Fast processing using native browser API (< 100ms)

| File Type | Savings | Example | |-----------|---------|---------| | JSON | 85% | 500KB → 75KB | | Text | 80% | 1MB → 150KB | | HTML | 75% | 2MB → 500KB | | PDF | 30% | 5MB → 3.5MB |

Clipboard Integration

  • Paste files with Ctrl+V to add files instantly
  • Screenshot support - paste screenshots directly
  • Auto-filename generation for images
  • Multi-file paste support

Advanced Features

Analytics Dashboard

  • Statistics dashboard with comprehensive transfer analytics
  • Success rate tracking completion percentage
  • Data volume tracking total sent/received
  • Speed estimates with average transfer speeds

Notifications System

  • System alerts with OS-level notifications
  • Sound effects with 4 audio feedback types
  • Auto-close smart notification management
  • 7 event types for complete coverage

Transfer Controls

  • Pause/Resume to control transfer flow
  • Cancel transfers to stop unwanted transfers
  • Auto-reconnect with 5 retry attempts and backoff
  • Transfer history with persistent tracking

Performance

Transfer Speeds

  • Local WiFi: Up to 50 MB/s
  • Direct Connection: Up to 100 MB/s
  • With Compression: 3-8x faster for text files

Response Times

  • Generate code: < 50ms
  • Connect: < 500ms
  • Clipboard paste: < 100ms
  • Compress 1MB: ~40ms

Keyboard Shortcuts

Esc           Close any modal
Ctrl+H        Open transfer history
Ctrl+S        Send selected files
Ctrl+V        Paste files from clipboard
Space         Pause/Resume active transfer
Shift+?       Show shortcuts help

Use Cases

Developer Code Sharing

Share 10MB project → Compress to 1.5MB → Transfer in 1.2s Savings: 85% smaller, 6.8s faster

Designer Screenshot Sharing

Screenshot → Ctrl+V → Send 3 steps saved, 10x faster workflow

Support Team File Collection

QR code → User scans → File transfers → Analytics tracking Zero friction, complete visibility

Tech Stack

Core

  • Next.js 14 - React framework
  • React 18 - UI library
  • TypeScript - Type safety

P2P Technology

  • WebRTC - Peer-to-peer connections
  • WebSocket - Signaling server
  • Simple-peer - WebRTC wrapper

Browser APIs

  • CompressionStream - File compression (gzip)
  • Clipboard API - Paste detection
  • Notification API - System notifications
  • Web Audio API - Sound effects

UI/UX

  • Tailwind CSS - Utility-first styling
  • Framer Motion - Smooth animations
  • Radix UI - Accessible primitives
  • Lucide React - Beautiful icons

vs. Commercial Solutions

| Feature | CroxShare | AirDrop | WeTransfer | |---------|-----------|---------|------------| | P2P Transfer | ✅ | ✅ | ❌ | | Compression | ✅ | ❌ | ✅ | | Clipboard Paste | ✅ | ❌ | ❌ | | Statistics | ✅ | ❌ | Limited | | Cross-platform | ✅ | Apple only | ✅ | | Open Source | ✅ | ❌ | ❌ |

Result: More features + Open source + Customizable!

Statistics

  • 26+ Features across 5 development phases
  • ~4150 Lines of production TypeScript/React code
  • 15+ Components reusable and accessible
  • 10+ Hooks custom React hooks
  • 8+ APIs modern browser APIs integrated

Design & Developed by Satyam
© 2026. All rights reserved.