{"id":26477466,"url":"https://github.com/mshradtya/peer-share","last_synced_at":"2026-04-14T17:31:30.543Z","repository":{"id":282880285,"uuid":"948323222","full_name":"mshradtya/peer-share","owner":"mshradtya","description":"share files directly, no middleman. ","archived":false,"fork":false,"pushed_at":"2025-03-25T05:14:45.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T06:23:14.780Z","etag":null,"topics":["browser-to-browser","data-transfer","direct-transfer","file-sharing","file-transfer","p2p","peer-to-peer","react","shadcn-ui","typescript","typescript-project","web-application","webrtc"],"latest_commit_sha":null,"homepage":"https://peer-share-mshradtya.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mshradtya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-14T06:00:05.000Z","updated_at":"2025-03-24T11:36:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"41e59c4f-72db-497e-a9ad-38241e345c47","html_url":"https://github.com/mshradtya/peer-share","commit_stats":null,"previous_names":["mshradtya/peer-share"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mshradtya/peer-share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshradtya%2Fpeer-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshradtya%2Fpeer-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshradtya%2Fpeer-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshradtya%2Fpeer-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mshradtya","download_url":"https://codeload.github.com/mshradtya/peer-share/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshradtya%2Fpeer-share/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31808505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-to-browser","data-transfer","direct-transfer","file-sharing","file-transfer","p2p","peer-to-peer","react","shadcn-ui","typescript","typescript-project","web-application","webrtc"],"created_at":"2025-03-20T00:47:01.273Z","updated_at":"2026-04-14T17:31:30.538Z","avatar_url":"https://github.com/mshradtya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PeerShare - A WebRTC based file sharing platform\n\nA React application that enables direct peer-to-peer file transfers using WebRTC technology, with no server required for the actual file transfer.\n\n## 🚀 Features Implemented\n\n### Core Functionality\n\n- ✅ Direct browser-to-browser file transfers using WebRTC data channels\n- ✅ No server required for file transfers (only initial SDP exchange needed)\n- ✅ Copy/paste connection method for establishing peer connections\n- ✅ Large file support with chunked file transfer\n- ✅ Real-time progress tracking for both sender and receiver\n- ✅ Clean, modern UI using shadcn/ui components\n\n### Architecture\n\n- ✅ Context-based state management with React Context API\n- ✅ Componentized structure with separation of concerns\n- ✅ TypeScript implementation for type safety\n- ✅ Optimized file chunking with flow control\n\n## 🔧 Technical Details\n\n- **WebRTC**: Used for establishing direct peer-to-peer connections\n- **Data Channels**: Transfers binary data directly between browsers\n- **File Chunking**: Files are broken into 32KB chunks for efficient transfer\n- **Flow Control**: Implements send queue with configurable delay between chunks\n- **STUN/TURN**: Basic STUN server support for NAT traversal\n\n## 🛣️ Future Roadmap\n\n### Short Term (Easier)\n\n- [x] Drag and drop file interface\n- [ ] File preview functionality for common formats\n- [ ] Multiple file selection\n- [x] UI improvements (responsive design, animations)\n- [ ] Enhanced connection status indicators\n- [ ] Basic text/clipboard sharing alongside files\n\n### Medium Term (Moderate Complexity)\n\n- [ ] Transfer queue for multiple files\n- [ ] Transfer cancellation support\n- [ ] File compression for compatible types\n- [ ] Simple signaling server for easier connections (optional)\n- [ ] QR code generation for connection strings\n- [x] Dark/light theme support\n\n### Long Term (Advanced)\n\n- [ ] Connection resilience with transfer resumption\n- [ ] File integrity verification (checksums)\n- [ ] End-to-end encryption for transfers\n- [ ] Multi-peer connections (3+ users)\n- [ ] Folder transfer support with directory structure preservation\n- [ ] Adaptive chunk sizing based on network conditions\n\n## 🛠️ Getting Started\n\n### Prerequisites\n\n- Node.js 14+\n- npm or yarn\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/webrtc-file-transfer.git\ncd webrtc-file-transfer\n\n# Install dependencies\nnpm install\n# or\nyarn install\n\n# Start the development server\nnpm run dev\n# or\nyarn dev\n```\n\n## 📖 How It Works\n\n1. **Connection Establishment**\n\n   - One peer creates a connection, generating an SDP offer\n   - The SDP offer is shared with the second peer (via copy/paste)\n   - Second peer adds the SDP offer and generates an SDP answer\n   - First peer adds the SDP answer to complete the connection\n\n2. **File Transfer**\n\n   - Sender selects a file to share\n   - File is broken into chunks and queued for transfer\n   - WebRTC data channel transfers chunks directly to the receiver\n   - Receiver assembles chunks into the complete file\n   - Progress is tracked and displayed in real-time\n\n## 🤝 Contributing\n\nContributions are welcome! Check the roadmap for planned features, or submit your own ideas.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmshradtya%2Fpeer-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmshradtya%2Fpeer-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmshradtya%2Fpeer-share/lists"}