Skip to content

M1k3lee/lavaflow

Repository files navigation

🌋 LavaFlow.xyz

Advanced blockchain analytics and developer platform for Lava Network featuring real-time block explorer, RPC performance monitoring, profitability calculators, and chain-agnostic dApp template generation.

✨ Features

  • 🔍 Block Explorer - Real-time blocks, transactions, and validators with live updates
  • 📊 RPC Performance Dashboard - Provider metrics, latency tracking, uptime monitoring, geographic visualization
  • 💰 Node Profitability Calculator - ROI analysis for node operators with multi-chain comparisons
  • 🚀 Token & MFT Deployer - Deploy tokens and Multi-Fungible Tokens with wallet integration and platform fees
  • 🚨 Provider Health Monitor - Alert system for RPC issues and performance degradation
  • 🌐 Multi-Chain Analytics - Cross-chain insights powered by Lava Network

🛠️ Tech Stack

  • Framework: Next.js 14 (App Router) with TypeScript
  • Styling: Tailwind CSS + Framer Motion for animations
  • Charts: Recharts + D3.js for visualizations
  • State Management: Zustand
  • Data Fetching: SWR for real-time data
  • Maps: React Leaflet for geographic visualizations
  • Blockchain: Ethers.js for wallet integration
  • Icons: Lucide React

🚀 Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

  1. Clone the repository:
git clone https://github.com/M1k3lee/lavaflow.git
cd lavaflow
  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env.local

Edit .env.local and add your configuration:

# Lava Network
NEXT_PUBLIC_LAVA_REST_API=https://rest.lavenderfive.com:443/lava
NEXT_PUBLIC_LAVA_RPC=https://rpc.lavenderfive.com:443/lava
NEXT_PUBLIC_LAVA_WEBSOCKET=wss://rpc.lavenderfive.com:443/lava/websocket

# Lava SDK (Optional)
NEXT_PUBLIC_LAVA_PROJECT_ID=your_project_id
LAVA_BADGE_SERVER=https://badges.lavanet.xyz

# Platform Fee (for token deployment)
PLATFORM_FEE_RECIPIENT=your_wallet_address
  1. Run development server:
npm run dev

Open http://localhost:3000 in your browser.

📦 Deployment

See DEPLOYMENT.md for detailed deployment instructions.

Quick Deploy to Vercel:

  1. Push code to GitHub
  2. Import project in Vercel
  3. Add environment variables
  4. Add custom domain lavaflow.xyz

🏗️ Project Structure

LavaFlow/
├── app/                    # Next.js App Router pages
│   ├── api/               # API routes
│   ├── calculator/        # Profitability calculator
│   ├── dashboard/         # RPC performance dashboard
│   ├── explorer/          # Block explorer
│   └── generator/         # Token/MFT deployer
├── components/            # React components
├── lib/                   # Utilities and API clients
├── hooks/                 # Custom React hooks
└── public/               # Static assets

🔧 Configuration

Lava Network Integration

The platform connects to Lava Network using:

  • REST API: For fetching blockchain data (blocks, transactions, validators)
  • RPC: For direct blockchain queries
  • WebSocket: For real-time block updates
  • Lava SDK: For multi-chain queries (optional)

🧪 Development

Build for Production

npm run build
npm start

Linting

npm run lint

📊 API Routes

  • /api/incentive-pools - Returns incentive pool data
  • /api/pools/[chain_id] - Returns pool details for a specific chain
  • /api/blocks/latest - Returns latest block data
  • /api/deploy/token - Token deployment endpoint
  • /api/deploy/mft - MFT deployment endpoint

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📝 License

This project is open source and available under the MIT License.

🔗 Links

🙏 Acknowledgments

Built with ❤️ for the Lava Network community.

About

A blockchain analytics and developer platform for Lava Network. It provides real-time monitoring, analytics, and tools for developers and node operators.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages