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/**andelectron/**. - A network lifecycle operation must keep its persisted topology and Docker runtime state aligned; see
src/**/network/**andelectron/**/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/**andelectron/**/mcp/**.
Routing table
electron/**-> Electron desktop runtimesrc/main/**-> Electron desktop runtimeelectron/**/proxy/**-> Backend proxy serviceselectron/**/server/**-> Backend proxy serviceselectron/**/mcp/**-> Desktop MCP integrationsrc/**/mcp/**-> Desktop MCP integrationsrc/**/network/**-> Network lifecycle managementsrc/**/networks/**-> Network lifecycle managementsrc/**/node/**-> Node orchestrationsrc/**/nodes/**-> Node orchestrationsrc/**/import/**-> Network import and exportsrc/**/export/**-> Network import and exportelectron/**/docker/**-> Docker runtime and node imagessrc/**/docker/**-> Docker runtime and node imagesdocker/**-> Bundled node containers**/Dockerfile*-> Bundled node containerssrc/**/images/**-> Node image managementsrc/**/image-management/**-> Node image managementsrc/**/store/**-> Application state and MCP toolssrc/**/models/**-> Application state and MCP toolssrc/**/mcp/**/network/**-> MCP network operationssrc/**/mcp/**/registry/**-> MCP network operationssrc/**/mcp/**/tap/**-> MCP Tap asset operationssrc/**/mcp/**/asset/**-> MCP Tap asset operationssrc/**/services/**-> Bitcoin and Lightning service clientssrc/**/clients/**-> Bitcoin and Lightning service clientssrc/**/services/**/lightning/**-> Lightning service capabilitiessrc/**/services/**/lnd/**-> Lightning service capabilitiessrc/**/services/**/tap/**-> Tap asset servicessrc/**/services/**/tapd/**-> Tap asset servicessrc/**/designer/**-> Network designer experiencesrc/**/components/**/designer/**-> Network designer experiencesrc/**/components/**/lightning/**-> Lightning connections and paymentssrc/**/components/**/channels/**-> Lightning connections and paymentssrc/**/components/**/tap/**-> Tap asset interactionssrc/**/components/**/assets/**-> Tap asset interactions