DocsOperationsExplorer

Explorer

The Protokit Explorer is a web-based interface for browsing and inspecting your app-chain in real time. It allows you to view blocks, batches, transactions, and settlement data through a simple UI.

Features

The Explorer provides comprehensive views of your app-chain data:

  • Dashboard: Overview with real-time statistics and recent activity
  • Blocks: Browse and search blocks with detailed information
  • Batches: View batches informations and contained blocks
  • Transactions: Explore transactions details, status, and execution results
  • Settlements: Track settlements transactions and their status

Starting the Explorer

The easiest way to run the Explorer is using the Protokit CLI, which handles Docker image pulling and container management automatically.

pnpm protokit explorer start

This will:

  1. Pull the latest Explorer Docker image (ghcr.io/proto-kit/explorer:latest)
  2. Start the Explorer on port 5003
  3. Connect to the indexer at http://localhost:8081/graphql (default)

The Explorer will be available at http://localhost:5003.

Configuration Options

You can customize the Explorer using CLI flags:

pnpm protokit explorer start \
  --port 3000 \
  --indexer-url http://localhost:8081/graphql \
  --dashboard-title "My App-Chain Explorer" \
  --dashboard-slogan "Explore the blockchain" \
  --explorer-image ghcr.io/proto-kit/explorer:latest
OptionDefaultDescription
--port5003Port to run the Explorer on
--indexer-urlhttp://localhost:8081/graphqlGraphQL endpoint URL for the indexer
--dashboard-titleProtokit ExplorerTitle displayed in the Explorer dashboard
--dashboard-sloganExplore your Protokit AppChainSlogan displayed in the Explorer
--explorer-imageghcr.io/proto-kit/explorer:latestDocker image used for the Explorer UI

Prerequisites

  • Docker: The CLI runs the Explorer in a Docker container.
  • Indexer: A running indexer service reachable at the URL provided via --indexer-url (or the default http://localhost:8081/graphql).

Customization

The Explorer is built with Next.js and can be customized:

  • Branding: Modify the title and slogan via environment variables
  • Styling: The Explorer uses Tailwind CSS and can be themed
  • Components: Built with Radix UI primitives and shadcn/ui components

For advanced customization, clone the Explorer repository and modify the source code.