Skip to content

Development Setup

  • Bun (package manager and runtime)
  • Docker (for backend services, optional)
  • D2 (for diagram rendering, optional)
  1. Clone the repository
Terminal window
git clone https://github.com/salazarsebas/stellar-explorer.git
cd stellar-explorer
  1. Install dependencies
Terminal window
bun install
  1. Start the development server
Terminal window
bun run dev

The explorer will be available at http://localhost:3000.

Stellar Explorer includes a Go-based terminal interface for keyboard-driven Stellar lookup and monitoring:

Terminal window
bun run tui:build
bun run tui:run
bun run tui:test

For hybrid mode with indexed reads:

Terminal window
bun run tui-indexer:infra:up
bun run tui-indexer:migrate
bun run tui-indexer:run:serve
bun run tui:run:hybrid

For indexer functionality, start the Docker services:

Terminal window
docker compose -f infra/docker-compose.yml up -d

This starts PostgreSQL (port 54320), Redis (port 63790), and Typesense (port 18108).

For the dedicated TUI backend infrastructure, use:

Terminal window
bun run tui-indexer:infra:up

Copy the example file and adjust if needed:

Terminal window
cp .env.local.example .env.local
CommandPurpose
bun run devStart development server (port 3000)
bun run buildProduction build
bun run lintRun ESLint
bun run formatFormat code with Prettier
bun run testRun tests
bun run test:watchRun tests in watch mode
bun run tui:buildBuild the TUI
bun run tui:testRun full TUI test suite (unit + integration)
bun run tui:test:unitRun fast TUI unit and fixture tests only
bun run tui:test:integrationRun TUI integration reliability tests only
bun run tui-indexer:buildBuild the TUI backend
bun run tui-indexer:testRun local-safe TUI indexer tests (no Docker required)
bun run tui-indexer:test:allRun full TUI indexer suite (requires local Postgres)
bun run tui-indexer:infra:upStart local infrastructure for tui-indexer