# Explorer [![Go Reference](https://pkg.go.dev/badge/github.com/synapsecns/sanguine/services/explorer.svg)](https://pkg.go.dev/github.com/synapsecns/sanguine/services/explorer) [![Go Report Card](https://goreportcard.com/badge/github.com/synapsecns/sanguine/services/explorer)](https://goreportcard.com/report/github.com/synapsecns/sanguine/services/explorer) See [#167](https://github.com/synapsecns/sanguine/issues/167) to learn more. To access the clickhouse database, you can use the following command from the docker image: ```bash $ clickhouse-client --database=clickhouse_test --user=clickhouse_test --password=clickhouse_test ``` ## Directory Structure.
explorer
├── api: API server
├── backfill: Chain level backfilling service to populate the database
├── cmd: CLI commands
├── config: Configuration files
├── consumer: Consumes data from Scribe and populates the Explorer database
│   ├── client: Client for the Scribe consumer
│   ├── fetcher: Fetches data from Scribe, BridgeConfig contract, and Swap contract
│   └── parser: Parses and stores events
├── contracts: Smart contracts and their generated interfaces/utils
│   ├── bridge: Bridge smart contract applications
│   ├── bridgeconfig: BridgeConfig smart contract applications
│   ├── contracts: Raw flattened smart contracts and test contracts
│   └── swap: Swap smart contract applications
├── db: Database interface
│   └── sql: Database writer, reader, and migrations
├── graphql: GraphQL implementation for the Explorer's recorded data
│   ├── client: The client interface for the GraphQL server
│   ├── contrib: Generator for the GraphQL schema
│   └── server: The server implementation for GraphQL
│       └── graph: The server's models, resolvers, and schemas
├── node: Live Explorer node
├── testutil: Test utilities
└── types: Explorer specific types