Disposable Cosmos-based Blockchain Explorer
A lightweight, real-time blockchain explorer for Cosmos SDK chains
View Demo
Β·
Report Bug
Β·
Request Feature
- About
- Demo
- Features
- Tech Stack
- Prerequisites
- Installation
- Usage
- Project Structure
- Contributing
- FAQ
- License
- Contributors
Dexplorer is a disposable, lightweight blockchain explorer specifically designed for Cosmos-based blockchains. Unlike traditional explorers that require backend infrastructure and databases, Dexplorer operates entirely as a frontend application, connecting directly to any Cosmos SDK chain using only WebSocket RPC connections.
This makes it perfect for:
- π§ Development: Quick exploration during chain development
- π§ͺ Testing: Instant setup for testnets and local chains
- π Monitoring: Real-time blockchain data visualization
- π Deployment: Zero backend infrastructure required
Real-time blockchain explorer dashboard showing chain statistics, latest blocks, and transactions
Simple connection interface to connect to any Cosmos SDK RPC endpoint
π Try Dexplorer Live
Connect to any Cosmos RPC endpoint and start exploring!
- π Universal Connectivity: Connect to any Cosmos-based RPC endpoint
- π Real-time Dashboard: Monitor chain activity with live updates
- π Live Subscriptions: Subscribe to latest blocks and transactions
- π Powerful Search: Find blocks, transactions, and accounts instantly
- π₯ Validator Insights: Browse active validators and their details
- π³οΈ Governance: Explore proposals and voting results
- βοΈ Chain Parameters: View blockchain configuration and parameters
- π± Responsive Design: Works seamlessly on desktop and mobile
- π¨ Modern UI: Clean, intuitive interface with dark/light themes
- β‘ Zero Backend: No database or server infrastructure needed
- React 18 - Modern React with hooks and concurrent features
- TypeScript - Type-safe development
- Vite - Lightning-fast build tool and dev server
- Tailwind CSS - Utility-first CSS framework
- Zustand - Lightweight state management
- React Router - Client-side routing
- CosmJS - Cosmos SDK JavaScript library
- WebSocket RPC - Real-time blockchain data
- Protobuf - Message encoding/decoding
- ESLint - Code linting
- Prettier - Code formatting
- Vercel - Deployment platform
Before running Dexplorer, ensure you have:
- Node.js (v18.0.0 or higher)
- pnpm (v8.0.0 or higher) - Recommended package manager
- Git - For cloning the repository
# Clone the repository
git clone https://github.com/arifintahu/dexplorer.git
# Navigate to project directory
cd dexplorer
# Install dependencies
pnpm install
# Start development server
pnpm dev
npm install
npm run dev
yarn install
yarn dev
# Build for production
pnpm build
# Preview production build
pnpm preview
-
Start the Application
pnpm dev
Open http://localhost:5173 in your browser
-
Connect to a Blockchain
- Enter a Cosmos RPC endpoint (e.g.,
https://rpc.cosmos.network:443
) - Click "Connect" to establish connection
- Enter a Cosmos RPC endpoint (e.g.,
-
Explore the Blockchain
- View the dashboard for chain overview
- Search for specific blocks, transactions, or accounts
- Browse validators and governance proposals
dexplorer/
βββ public/ # Static assets
βββ src/
β βββ components/ # Reusable UI components
β β βββ CodeBlock/ # Code syntax highlighting
β β βββ Layout/ # App layout components
β β βββ ui/ # Basic UI components
β βββ encoding/ # Message encoding utilities
β β βββ msg.ts # Message type definitions
β β βββ proposal.ts # Proposal encoding
β βββ hooks/ # Custom React hooks
β βββ pages/ # Page components
β β βββ AccountDetail.tsx
β β βββ BlockDetail.tsx
β β βββ Dashboard.tsx
β β βββ ProposalDetail.tsx
β β βββ TransactionDetail.tsx
β βββ store/ # State management
β βββ types/ # TypeScript type definitions
β βββ utils/ # Utility functions
β βββ main.tsx # Application entry point
βββ package.json # Dependencies and scripts
βββ tailwind.config.js # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
βββ vite.config.ts # Vite configuration
We welcome contributions from the community! Here's how you can help:
-
Fork the Repository
# Fork on GitHub, then clone your fork git clone https://github.com/YOUR_USERNAME/dexplorer.git
-
Create a Feature Branch
git checkout -b feature/amazing-feature
-
Make Your Changes
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
-
Test Your Changes
pnpm test pnpm build
-
Commit and Push
git commit -m 'Add amazing feature' git push origin feature/amazing-feature
-
Create a Pull Request
- Describe your changes clearly
- Link any related issues
- Wait for review and feedback
- Use TypeScript for all new code
- Follow ESLint and Prettier configurations
- Write descriptive commit messages
- Add JSDoc comments for complex functions
- Ensure responsive design for UI changes
Found a bug? Have a feature request?
- Check existing issues
- Create a new issue with detailed description
- Include steps to reproduce (for bugs)
- Add relevant labels
- π‘ Your Ideas: Suggest features
Q: What makes Dexplorer different from other blockchain explorers? A: Dexplorer is frontend-only, requiring no backend infrastructure. It connects directly to RPC endpoints, making it perfect for development and testing environments.
Q: Can I use Dexplorer with my local blockchain?
A: Yes! Simply point it to your local RPC endpoint (usually http://localhost:26657
).
Q: Is Dexplorer compatible with all Cosmos SDK chains? A: Dexplorer works with any Cosmos SDK chain that exposes standard RPC endpoints.
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2024 Arifin Tahu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Thanks to all the amazing people who have contributed to this project:
- @arifintahu - Creator & Maintainer
- Fork the repository
- Make meaningful contributions
- Submit pull requests
- Help with issues and discussions
- Spread the word about Dexplorer!
Made with β€οΈ for the Cosmos ecosystem