$ account pawurb
Mevlog-rs is a Rust-based, open-source alternative to commercial blockchain explorers like Dune Analytics, providing a comprehensive toolchain for indexing, storing, and querying EVM-compatible blockchain data. The core system downloads raw chain data from RPC endpoints, stores it in per-chain SQLite databases, and allows read-only SQL queries enriched with custom U256 arithmetic, formatting, and ENS resolution. It includes a CLI with 20+ subcommands, a web backend (Axum + React) for hosted exploration, a TUI (ratatui) for interactive browsing, and an MCP server for AI agent integration. The system is heavily oriented toward MEV (maximal extractable value) analysis, with coinbase transfer detection, state diffs, and call tracing via local revm replay or RPC. Key architectural patterns include a shared dependency initializer, a secure read-only SQL sandbox with progress limits, a config-driven custom table engine, and a reorg-aware indexing pipeline that handles chain reorganizations. While the codebase demonstrates strong craftsmanship and modularity, its large dependency surface, reliance on external services (ChainList, Pinata, cryo), and some commented-out tests indicate ongoing evolution and moderate maintenance risk.