šŸ›”ļø WebMiner Consent System Demo

Testing ethical, consent-first browser-based Monero mining

šŸ“‹ Demo Purpose: This page demonstrates WebMiner's consent-first approach to browser mining. All mining operations require explicit user permission with full transparency about resource usage.

šŸš€ Quick Start Integration

WebMiner can be integrated with a simple script tag:

<!-- Development version (webminer.js) --> <script src="webminer.js" data-pool="wss://pool.example.com" data-wallet="YOUR_MONERO_ADDRESS" data-throttle="0.25"> </script> <!-- Production version (webminer.min.js) - 40% smaller --> <script src="webminer.min.js" data-pool="wss://pool.example.com" data-wallet="YOUR_MONERO_ADDRESS" data-throttle="0.25"> </script>

šŸ“‹ Recommendation: Use webminer.js for development and webminer.min.js for production. See production.html and advanced.html for detailed examples.

šŸ”§ Interactive Controls

Test the consent system and mining controls:

Status: Ready for testing

āœ… Ethical Mining Features

Explicit Consent

Users must actively agree to mining. No hidden or automatic mining.

Transparent Usage

Clear information about CPU usage, battery impact, and expected earnings.

One-Click Stop

Mining can be stopped instantly via persistent indicator or controls.

Resource Limits

Configurable CPU throttling (10-50%) protects user devices.

Mobile Protection

Battery level detection and thermal protection for mobile devices.

Preference Memory

User choices are remembered across visits via localStorage.

āš ļø Important Notes

Development Phase: This is Phase 2 (Core Mining Architecture) - now with REAL mining functionality! The WebAssembly RandomX implementation and pool connection system are fully functional. You can test real mining operations (though you'll need a real pool URL and wallet address for actual mining).
Browser Requirements: Modern browsers with Web Workers, WebSocket, and localStorage support. Target: Chrome 70+, Firefox 65+, Safari 14+, Edge 79+.

šŸ“Š Current Implementation Status

āœ… Phase 1: Consent & Ethics Framework āœ… User consent system with transparent dialogs āœ… Persistent mining indicator with controls āœ… Preference storage and memory āœ… Mobile-responsive design āœ… Accessibility features (ARIA labels, keyboard navigation) āœ… Phase 2: Core Mining Architecture (NEW!) āœ… WebAssembly RandomX implementation with JavaScript fallback āœ… Real-time hash rate calculation and monitoring āœ… WebSocket pool connection with Stratum protocol āœ… Share submission system with auto-reconnect āœ… Mining settings dialog with throttle control āœ… Tab visibility handling (pause when hidden) āœ… Enhanced error handling and recovery āœ… Phase 3: Optimization (NEW!) āœ… Comprehensive performance monitoring and device capability detection āœ… Adaptive throttling based on device performance and thermal conditions āœ… Battery protection with Navigator Battery API integration āœ… Mobile optimizations with touch-friendly UI and reduced power consumption āœ… Automatic thermal protection and frame rate monitoring āœ… Connection type detection and data usage optimization ā³ Phase 4: Single-File Build (Next) šŸ”² Phase 5: Documentation & Security Audit