# skip-mev/skip-go architecture

> Architecture diagram of the GitHub repository skip-mev/skip-go, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/skip-mev/skip-go
- Repository: https://github.com/skip-mev/skip-go

## Overview

Skip Go is a cross-chain transaction-routing product: the client exposes routing, execution, signing, and transaction-status APIs; the React widget provides the swap experience; and the explorer lets users inspect transaction and transfer progress. The primary user flow is asset/route selection, route acquisition, wallet-backed execution, then status tracking. The graph preserves the explorer’s distinct transaction-detail stages and the client’s chain-specific signing/execution layer. Generated protocol bindings are grouped as an internal client layer. Some widget capabilities are represented by directory-level nodes because their implementation was not sampled; those links are dashed and unverified.

Main entry points: [`apps/explorer/src/app/page.tsx`](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/app/page.tsx) (Transaction Lookup), [`packages/client/src/api`](https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/api) (Service API), [`packages/client/src/private-functions`](https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/private-functions) (Chain Executors), [`packages/client/src/public-functions/subscribeToRouteStatus.ts`](https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/public-functions/subscribeToRouteStatus.ts) (Route Tracking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_explorer["Transaction Explorer"]
  node_explorer_page["Transaction Lookup<br/>[page.tsx]"]
  node_explorer_nav["Search Navigation<br/>[Navbar.tsx]"]
  node_history_decode["History Decode"]
  node_route_timeline["Route Timeline<br/>[routeTimeline.ts]"]
  node_bridge_view["Bridge Details<br/>[Bridge.tsx]"]
  node_transaction_details["Transaction Details"]
  node_transfer_card["Transfer Events"]
  node_status_labels["Status Labels"]
end

subgraph group_widget["Swap Widget"]
  node_widget_init["Widget Initialization<br/>[useInitWidget.ts]"]
  node_swap_state["Swap Route State<br/>[route.ts]"]
  node_swap_execution["Swap Execution View"]
  node_wallets["Wallet Integration"]
  node_widget_presentation["Swap Selection UI"]
end

subgraph group_client["Routing Client"]
  node_client_api["Service API"]
  node_client_route["Route Planning"]
  node_route_tracking["Route Tracking"]
  node_transaction_execution["Transaction Execution"]
  node_chain_execution["Chain Executors"]
  node_chain_services["Chains and Networks<br/>[chains.ts]"]
end

subgraph group_protocol["Protocol Internals"]
  node_generated_bindings["Chain Protocol Bindings"]
  node_binding_helpers["Encoding Helpers<br/>[helpers.ts]"]
end

node_user(("User"))
node_backend[("Skip Services")]
node_wallet_provider{{"Wallet Provider"}}
node_blockchain[("Blockchains")]

node_user -->|"searches"| node_explorer_nav
node_explorer_nav -.->|"opens lookup"| node_explorer_page
node_explorer_page -->|"checks status"| node_client_api
node_explorer_page -->|"tracks transaction"| node_client_api
node_explorer_page -->|"decodes history"| node_history_decode
node_explorer_page -->|"builds timeline"| node_route_timeline
node_explorer_page -->|"renders details"| node_transaction_details
node_explorer_page -->|"renders transfers"| node_transfer_card
node_explorer_page -->|"renders bridge"| node_bridge_view
node_transfer_card -.->|"formats status"| node_status_labels
node_user -.->|"selects swap"| node_widget_presentation
node_widget_init -->|"initializes UI"| node_widget_presentation
node_widget_init -->|"configures client"| node_client_api
node_widget_presentation -.->|"updates route state"| node_swap_state
node_swap_state -->|"requests route"| node_client_route
node_client_route -.->|"fetches route"| node_client_api
node_wallets -->|"uses client"| node_client_api
node_swap_execution -.->|"executes route"| node_transaction_execution
node_swap_execution -.->|"uses wallet"| node_wallets
node_transaction_execution -.->|"dispatches transactions"| node_chain_execution
node_chain_execution -.->|"resolves endpoints"| node_chain_services
node_chain_execution -.->|"encodes messages"| node_generated_bindings
node_chain_execution -.->|"signs transactions"| node_wallet_provider
node_chain_execution -.->|"submits transactions"| node_blockchain
node_route_tracking -->|"polls status"| node_client_api
node_route_tracking -->|"reads route details"| node_client_route
node_route_tracking -->|"tracks and checks"| node_backend
node_generated_bindings -->|"uses encoding helpers"| node_binding_helpers
node_generated_bindings -->|"uses encoding helpers"| node_binding_helpers

click node_explorer_page "https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/app/page.tsx"
click node_explorer_nav "https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/components/Navbar.tsx"
click node_history_decode "https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/hooks/useTransactionHistoryItemFromUrlParams.ts"
click node_route_timeline "https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/utils/routeTimeline.ts"
click node_bridge_view "https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/components/Bridge.tsx"
click node_transaction_details "https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/components/TransactionDetails.tsx"
click node_transfer_card "https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/components/TransferEventCard.tsx"
click node_status_labels "https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/hooks/useOverallStatusLabelAndColor.ts"
click node_widget_init "https://github.com/skip-mev/skip-go/blob/staging/packages/widget/src/widget/useInitWidget.ts"
click node_swap_state "https://github.com/skip-mev/skip-go/blob/staging/packages/widget/src/state/route.ts"
click node_swap_execution "https://github.com/skip-mev/skip-go/blob/staging/packages/widget/src/pages/SwapExecutionPage/SwapExecutionPageRouteSimple.tsx"
click node_wallets "https://github.com/skip-mev/skip-go/blob/staging/packages/widget/src/hooks/useCreateCosmosWallets.tsx"
click node_widget_presentation "https://github.com/skip-mev/skip-go/tree/staging/packages/widget/src"
click node_client_api "https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/api"
click node_client_route "https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/public-functions"
click node_route_tracking "https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/public-functions/subscribeToRouteStatus.ts"
click node_transaction_execution "https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/private-functions/executeTransactions.ts"
click node_chain_execution "https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/private-functions"
click node_generated_bindings "https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/codegen"
click node_binding_helpers "https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/codegen/helpers.ts"
click node_chain_services "https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/chains.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_explorer_page,node_explorer_nav,node_history_decode,node_route_timeline,node_bridge_view,node_transaction_details,node_transfer_card,node_status_labels,node_user toneBlue
class node_widget_init,node_swap_state,node_swap_execution,node_wallets,node_widget_presentation,node_backend,node_blockchain toneAmber
class node_client_api,node_client_route,node_route_tracking,node_transaction_execution,node_chain_execution,node_chain_services toneMint
class node_generated_bindings,node_binding_helpers toneRose
class node_wallet_provider toneIndigo
```

## Components

### Transaction Explorer

- [Transaction Lookup](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/app/page.tsx): `apps/explorer/src/app/page.tsx`
- [Search Navigation](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/components/Navbar.tsx): `apps/explorer/src/components/Navbar.tsx`
- [History Decode](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/hooks/useTransactionHistoryItemFromUrlParams.ts): `apps/explorer/src/hooks/useTransactionHistoryItemFromUrlParams.ts`
- [Route Timeline](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/utils/routeTimeline.ts): `apps/explorer/src/utils/routeTimeline.ts`
- [Bridge Details](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/components/Bridge.tsx): `apps/explorer/src/components/Bridge.tsx`
- [Transaction Details](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/components/TransactionDetails.tsx): `apps/explorer/src/components/TransactionDetails.tsx`
- [Transfer Events](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/components/TransferEventCard.tsx): `apps/explorer/src/components/TransferEventCard.tsx`
- [Status Labels](https://github.com/skip-mev/skip-go/blob/staging/apps/explorer/src/hooks/useOverallStatusLabelAndColor.ts): `apps/explorer/src/hooks/useOverallStatusLabelAndColor.ts`

### Swap Widget

- [Widget Initialization](https://github.com/skip-mev/skip-go/blob/staging/packages/widget/src/widget/useInitWidget.ts): `packages/widget/src/widget/useInitWidget.ts`
- [Swap Route State](https://github.com/skip-mev/skip-go/blob/staging/packages/widget/src/state/route.ts): `packages/widget/src/state/route.ts`
- [Swap Execution View](https://github.com/skip-mev/skip-go/blob/staging/packages/widget/src/pages/SwapExecutionPage/SwapExecutionPageRouteSimple.tsx): `packages/widget/src/pages/SwapExecutionPage/SwapExecutionPageRouteSimple.tsx`
- [Wallet Integration](https://github.com/skip-mev/skip-go/blob/staging/packages/widget/src/hooks/useCreateCosmosWallets.tsx): `packages/widget/src/hooks/useCreateCosmosWallets.tsx`
- [Swap Selection UI](https://github.com/skip-mev/skip-go/tree/staging/packages/widget/src): `packages/widget/src`

### Routing Client

- [Service API](https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/api): `packages/client/src/api`
- [Route Planning](https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/public-functions): `packages/client/src/public-functions`
- [Route Tracking](https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/public-functions/subscribeToRouteStatus.ts): `packages/client/src/public-functions/subscribeToRouteStatus.ts`
- [Transaction Execution](https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/private-functions/executeTransactions.ts): `packages/client/src/private-functions/executeTransactions.ts`
- [Chain Executors](https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/private-functions): `packages/client/src/private-functions`
- [Chains and Networks](https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/chains.ts): `packages/client/src/chains.ts`

### Protocol Internals

- [Chain Protocol Bindings](https://github.com/skip-mev/skip-go/tree/staging/packages/client/src/codegen): `packages/client/src/codegen`
- [Encoding Helpers](https://github.com/skip-mev/skip-go/blob/staging/packages/client/src/codegen/helpers.ts): `packages/client/src/codegen/helpers.ts`

### Other components

- **User**
- **Skip Services**
- **Wallet Provider**
- **Blockchains**

## Connections

- User → Search Navigation: searches (evidence: `apps/explorer/src/components/Navbar.tsx`)
- Search Navigation → Transaction Lookup: opens lookup (evidence: `apps/explorer/src/app/page.tsx`)
- Transaction Lookup → Service API: checks status (evidence: `apps/explorer/src/app/page.tsx`)
- Transaction Lookup → Service API: tracks transaction (evidence: `apps/explorer/src/app/page.tsx`)
- Transaction Lookup → History Decode: decodes history (evidence: `apps/explorer/src/app/page.tsx`)
- Transaction Lookup → Route Timeline: builds timeline (evidence: `apps/explorer/src/app/page.tsx`)
- Transaction Lookup → Transaction Details: renders details (evidence: `apps/explorer/src/app/page.tsx`)
- Transaction Lookup → Transfer Events: renders transfers (evidence: `apps/explorer/src/app/page.tsx`)
- Transaction Lookup → Bridge Details: renders bridge (evidence: `apps/explorer/src/app/page.tsx`)
- Transfer Events → Status Labels: formats status (evidence: `apps/explorer/src/components/TransferEventCard.tsx`)
- User → Swap Selection UI: selects swap
- Widget Initialization → Swap Selection UI: initializes UI (evidence: `packages/widget/src/widget/useInitWidget.ts`)
- Widget Initialization → Service API: configures client (evidence: `packages/widget/src/widget/useInitWidget.ts`)
- Swap Selection UI → Swap Route State: updates route state (evidence: `packages/widget/src/state/route.ts`)
- Swap Route State → Route Planning: requests route (evidence: `packages/widget/src/state/route.ts`)
- Route Planning → Service API: fetches route (evidence: `packages/client/src/public-functions/subscribeToRouteStatus.ts`)
- Wallet Integration → Service API: uses client (evidence: `packages/widget/src/hooks/useCreateCosmosWallets.tsx`)
- Swap Execution View → Transaction Execution: executes route
- Swap Execution View → Wallet Integration: uses wallet
- Transaction Execution → Chain Executors: dispatches transactions
- Chain Executors → Chains and Networks: resolves endpoints
- Chain Executors → Chain Protocol Bindings: encodes messages
- Chain Executors → Wallet Provider: signs transactions
- Chain Executors → Blockchains: submits transactions
- Route Tracking → Service API: polls status (evidence: `packages/client/src/public-functions/subscribeToRouteStatus.ts`)
- Route Tracking → Route Planning: reads route details (evidence: `packages/client/src/public-functions/subscribeToRouteStatus.ts`)
- Route Tracking → Skip Services: tracks and checks (evidence: `packages/client/src/public-functions/subscribeToRouteStatus.ts`)
- Chain Protocol Bindings → Encoding Helpers: uses encoding helpers (evidence: `packages/client/src/codegen/cosmos/base/query/v1beta1/pagination.ts`)
- Chain Protocol Bindings → Encoding Helpers: uses encoding helpers (evidence: `packages/client/src/codegen/circle/cctp/v1/query.ts`)
