Skip to content

AndeLabs/ande-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ANDE Explorer πŸ”

Professional blockchain explorer for ANDE Chain - Fast, Modern, and User-Friendly

Next.js TypeScript Tailwind CSS License

✨ Features

  • πŸš€ Real-time Updates - Live block and transaction feed via WebSocket
  • ⚑ Lightning Fast - Direct RPC connection with intelligent caching
  • 🎨 Modern UI - Clean design with ANDE institutional colors
  • πŸ“± Responsive - Optimized for all devices
  • πŸ” Smart Search - Find blocks, transactions, and addresses instantly
  • πŸ“Š Network Stats - Live metrics and analytics dashboard
  • 🌐 Multi-chain Ready - Built for scalability

🎯 Quick Start

Prerequisites

  • Node.js 18+ and npm 9+
  • ANDE Chain RPC endpoint (default: http://192.168.0.8:8545)

Installation

# Clone the repository
git clone https://github.com/AndeLabs/ande-explorer.git
cd ande-explorer

# Install dependencies
cd frontend
npm install

# Configure environment
cp .env.example .env.local
# Edit .env.local with your RPC endpoint

# Run development server
npm run dev

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

πŸ”§ Configuration

Environment Variables

Create a .env.local file in the frontend directory:

# RPC Configuration
NEXT_PUBLIC_RPC_URL=http://192.168.0.8:8545
NEXT_PUBLIC_WS_URL=ws://192.168.0.8:8546

# Chain Configuration
NEXT_PUBLIC_CHAIN_ID=42170
NEXT_PUBLIC_CHAIN_NAME=Ande Chain

# Features
NEXT_PUBLIC_ENABLE_WEBSOCKETS=true
NEXT_PUBLIC_SHOW_GAS_TRACKER=true

See .env.example for all available options.

πŸ—οΈ Architecture

ANDE Explorer uses a modern, performance-optimized architecture:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Next.js App   β”‚  ← React 18, App Router, RSC
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  React Query    β”‚  ← Data fetching, caching
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  viem Client    β”‚  ← Direct RPC connection
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  ANDE Chain     β”‚  ← http://192.168.0.8:8545
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key Technologies

  • Framework: Next.js 14 with App Router
  • Language: TypeScript (strict mode)
  • Styling: Tailwind CSS with custom ANDE theme
  • Data Fetching: TanStack Query + viem
  • UI Components: Radix UI primitives
  • Icons: Lucide React

See ARCHITECTURE.md for detailed documentation.

🎨 Design System

ANDE Explorer uses the official ANDE institutional color palette:

Primary Colors

  • Azul Profundo #2455B8 - Headers, primary buttons, key links
  • Naranja Vibrante #FF9F1C - Call-to-action, highlights

Secondary Colors

  • Lavanda Suave #BFA4FF - Alternate backgrounds, cards
  • Durazno Claro #FFC77D - Soft backgrounds, secondary elements

Neutral Colors

  • Gris Claro #F4F4F4 - Clean backgrounds
  • Gris Medio #9A9A9A - Secondary text
  • Gris Oscuro #393939 - Primary text

πŸ“¦ Build for Production

# Build the application
npm run build

# Start production server
npm start

Deploy to Vercel

# Install Vercel CLI
npm i -g vercel

# Deploy
vercel --prod

See VERCEL_DEPLOYMENT_GUIDE.md for detailed instructions.

πŸ” Usage Examples

Search for a Block

Navigate to /blocks/12345 or use the search bar:

// Programmatic search
import { useBlock } from '@/lib/hooks/useBlocksRPC';

const { data: block } = useBlock(12345n);

Get Address Balance

import { useAddressBalance } from '@/lib/hooks/useAddressRPC';

const { data: balance } = useAddressBalance('0x...');
console.log(balance.formatted); // "1.234 ETH"

Watch New Blocks

import { useWatchBlocks } from '@/lib/hooks/useBlocksRPC';

useWatchBlocks((block) => {
  console.log('New block:', block.number);
});

πŸ§ͺ Development

Run Tests

npm run test

Type Checking

npm run type-check

Linting

npm run lint

Format Code

npm run format

πŸ“Š Performance

ANDE Explorer is optimized for speed:

  • First Contentful Paint: < 1.0s
  • Largest Contentful Paint: < 2.5s
  • Time to Interactive: < 3.0s
  • API Response Time: < 200ms

Performance is continuously monitored and optimized.

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Workflow

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: npm test
  5. Commit: git commit -m 'Add amazing feature'
  6. Push: git push origin feature/amazing-feature
  7. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see LICENSE file for details.

πŸ”— Links

πŸ‘₯ Team

Built with ❀️ by ANDE Labs

πŸ™ Acknowledgments


Status: Production Ready (MVP)
Version: 2.0.0
Last Updated: 2025-11-16

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •