import React, { useState, useEffect } from 'react'; import { Download, Star, GitBranch, ExternalLink, Code, Terminal, Package, Shield, Zap, Globe, ChevronDown } from 'lucide-react'; const HazeSDKsPage = () => { const [selectedMaturity, setSelectedMaturity] = useState('All'); const [selectedLanguage, setSelectedLanguage] = useState('All'); const [matrixRain, setMatrixRain] = useState([]); // Black & White Matrix Rain Effect useEffect(() => { const characters = '01'; const columns = Math.floor(window.innerWidth / 20); const drops = []; for (let i = 0; i < columns; i++) { drops[i] = Math.random() * -100; } const drawMatrix = () => { const newRain = []; for (let i = 0; i < columns; i++) { const char = characters[Math.floor(Math.random() * characters.length)]; newRain.push({ id: i, x: i * 20, y: drops[i] * 20, char, opacity: Math.random() }); if (drops[i] * 20 > window.innerHeight && Math.random() > 0.975) { drops[i] = 0; } drops[i]++; } setMatrixRain(newRain); }; const interval = setInterval(drawMatrix, 100); return () => clearInterval(interval); }, []); const sdks = [ { name: 'haze-js-sdk', maturity: 'Stable', language: 'JavaScript', description: 'Official JavaScript/TypeScript SDK for Haze Protocol with full Web3 integration', install: 'npm install @haze/js-sdk', features: ['Web3 Auth', 'Node Management', 'Real-time Messaging', 'P2P Discovery'], version: '1.2.0' }, { name: 'haze-python', maturity: 'Stable', language: 'Python', description: 'Python implementation for server-side Haze Protocol integration', install: 'pip install haze-protocol', features: ['Async Support', 'FastAPI Integration', 'Node Automation', 'Message Processing'], version: '0.8.1' }, { name: 'haze-rust-sdk', maturity: 'Beta', language: 'Rust', description: 'High-performance Rust SDK for building Haze Protocol applications', install: 'cargo add haze-protocol', features: ['Zero-Copy', 'Embedded Support', 'WASM Compatible', 'Memory Safe'], version: '0.5.2' }, { name: 'haze-go', maturity: 'Beta', language: 'Go', description: 'Golang client library for Haze Protocol integration', install: 'go get go.haze.network/sdk', features: ['Goroutine Support', 'Docker Integration', 'CLI Tools', 'Enterprise'], version: '0.6.0' }, { name: 'haze-swift', maturity: 'Alpha', language: 'Swift', description: 'Native iOS/macOS SDK for Haze Protocol mobile applications', install: "pod 'HazeProtocol'", features: ['SwiftUI Support', 'Background Sync', 'Keychain', 'Push Notifications'], version: '0.3.0' }, { name: 'haze-kotlin', maturity: 'Alpha', language: 'Kotlin', description: 'Android SDK for building Haze Protocol mobile clients', install: "implementation 'network.haze:sdk'", features: ['Jetpack Compose', 'Room Database', 'WorkManager', 'Biometric Auth'], version: '0.2.8' } ]; const filteredSDKs = sdks.filter(sdk => { return (selectedMaturity === 'All' || sdk.maturity === selectedMaturity) && (selectedLanguage === 'All' || sdk.language === selectedLanguage); }); // CRT Scanlines const scanlineStyle = { background: `repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px )`, pointerEvents: 'none' }; return (
[dev] Multi-language SDKs, [api] Developer Tools and [lib] Client Libraries to unlock the potential of decentralized messaging
{sdk.description}
{/* Features */}{sdk.install}
Join the Haze Protocol ecosystem. Create decentralized messaging applications, contribute to open source SDKs, and shape the future of private communication.