Introducing a new way to review your PRs.

Read the announcement

jamaljsr / polar

One-click Bitcoin Lightning networks for local app development & testing

View on GitHub

19 documents · Updated Oct 19, 2026

overview

Knowledge Base updated: 2026-10-18

Polar knowledge base

Polar is a desktop application for building and operating local Bitcoin, Lightning, Litd, and Tapd networks.

Its Electron main process owns desktop integration and local proxy services; the renderer owns network design, state, and user workflows. Docker supplies node containers and their runtime environments.

Persistent network definitions, node configuration, and exported network artifacts connect lifecycle operations to the running Docker topology.

flowchart LR
  User[User] --> Renderer[Renderer UI]
  Renderer --> State[Easy Peasy state]
  State --> Services[Service clients]
  Services --> IPC[Electron IPC]
  Renderer --> MCPTools[MCP tools]
  IPC --> Main[Electron main process]
  MCPTools --> Main
  Main --> Proxies[Local proxy services]
  Main --> Docker[Docker runtime]
  Docker --> Nodes[Bitcoin / Lightning nodes]
  Proxies --> Nodes
  Nodes --> NetworkState[Network state and volumes]
  Main --> Export[Import / export artifacts]
  Renderer --> Designer[Network designer]
  Designer --> Services

Glossary

  • Polar network: A locally defined collection of Bitcoin and Lightning-related nodes managed as one topology.
  • Litd: Lightning Terminal daemon support exposed alongside LND capabilities.
  • Tapd: Taproot Assets daemon used for asset, address, minting, transfer, and Universe workflows.
  • MCP: Model Context Protocol integration that exposes Polar operations to MCP clients.
  • Node image: A Docker image and associated configuration used to run a specific node implementation/version.

Invariants

  • Renderer interactions with node backends go through Electron-facing service/proxy layers rather than directly owning Docker connections; see src/**/services/** and electron/**.
  • A network lifecycle operation must keep its persisted topology and Docker runtime state aligned; see src/**/network/** and electron/**/docker/**.
  • Backend-specific Lightning and Tapd APIs are normalized by client/service adapters; see src/**/services/**.
  • MCP operations use the same application/network abstractions as desktop workflows; see src/**/mcp/** and electron/**/mcp/**.

Routing table