πŸͺ PeerWeb

Decentralized Website Hosting via WebTorrent

πŸ€” What is PeerWeb?

PeerWeb is a revolutionary way to host and share websites using WebTorrent technology. Instead of relying on centralized servers, websites are distributed across a peer-to-peer network, making them censorship-resistant and always available. 🌍✨

πŸ“€ Quick Upload

πŸ“

Drag & Drop Your Website

Drop a folder with your website files

πŸ“š How to Use PeerWeb

🎨 Create your website - Build a static website with HTML, CSS, JavaScript, and assets
πŸ“€ Upload via drag & drop - Simply drag your website folder to the upload area above
πŸ”— Share the link - Your site gets a unique PeerWeb link that works anywhere
🌍 Keep hosting - Leave this tab open or use our desktop client for permanent hosting

πŸ’‘ Load Existing Site

To load a website from a torrent hash, enter it below:

🎯 Just the hash! PeerWeb automatically adds the magnet link prefix and trackers.

πŸ§ͺ Demos




πŸ› Debug Mode

For developers and troubleshooting, add &debug=true to see detailed progress:

https://peerweb.lol?orc=ABC123DEF456...&debug=true

πŸš€ Advanced Options

πŸ’Ύ Smart Caching

PeerWeb caches visited sites for lightning-fast loading! πŸš€

πŸƒβ€β™‚οΈ Instant Loading - Cached sites load immediately
πŸ’½ IndexedDB Storage - Persistent across browser sessions
🧹 Auto Cleanup - Old cache expires after 7 days
πŸ”’ Secure Storage - Only cached after DOMPurify sanitization


πŸ›‘οΈ Security Features

Enhanced security with DOMPurify integration! πŸ”’

🧼 XSS Protection - All HTML sanitized with DOMPurify
🚫 Malicious Code Removal - Dangerous tags and attributes filtered
πŸ“¦ Sandboxed Execution - Sites run in isolated iframe environment
πŸ” Content Validation - All resources validated before display

πŸ“‹ Requirements for PeerWeb Sites

πŸ“„ Must contain an index.html file (in root or subfolder)
πŸ”— All resources should use relative paths
⚑ Only static content (HTML, CSS, JS, images, fonts, etc.)
πŸ”’ Files are served in a sandboxed environment for security
πŸ“± Responsive design recommended for best experience
🧹 Content is automatically sanitized for security

✨ Benefits

🚫 Censorship Resistant - No central point of failure
πŸ’° Cost Effective - No hosting fees ever
🌍 Global Distribution - Automatically distributed worldwide
πŸ“± Always Available - Works as long as peers are online
πŸ”’ Secure - Sandboxed execution with XSS protection
πŸ“ˆ Real-time Progress - See download progress and peer statistics
⚑ Fast Loading - Smart caching for instant repeat visits
🎯 Simple URLs - Just add the torrent hash to any PeerWeb site
πŸ’Ύ Offline Ready - Cached sites work without internet