# Documentation index Every document in the repository, by what it is for. A test (`tests/lightning/doc-tables.test.ts`) fails when a markdown file is added without a link here. ## Start here | Document | Contents | |----------|----------| | [README.md](../README.md) | What Beignet is, install, the entry points, one example each, status and limitations | | [example/REPL_TESTING.md](../example/REPL_TESTING.md) | Copy-pasteable REPL walkthrough of the full node lifecycle | | [SECURITY.md](../SECURITY.md) | How to report a vulnerability privately, and what happens after | | [CONTRIBUTING.md](../CONTRIBUTING.md) | Setup, the checks CI runs, and the rules for pull requests | ## Guides | Document | Contents | |----------|----------| | [AI_AGENT_GUIDE.md](AI_AGENT_GUIDE.md) | Deploying and operating `BeignetNode` and the daemon: channel strategy, liquidity, monitoring, safety rails, retries, backup, mainnet checklist | | [AUTOMATIC-OFFLINE-RECEIVE.md](AUTOMATIC-OFFLINE-RECEIVE.md) | Wallet-side automatic offline receive over FFOR: provider configuration, the receive API, concurrent receive | | [PAY-ALL.md](PAY-ALL.md) | Single-part pay-all: paying an amountless BOLT 11 invoice under an approved debit and fee cap | | [MPP-SENDING.md](MPP-SENDING.md) | How a BOLT 11 payment splits over the wallet's channels, including channels to different peers, how parts are sized and what bounds their number | | [packages/direct-funding/README.md](../packages/direct-funding/README.md) | Standalone payer SDK, Bitcoin Core and PSBT adapters, transport, storage and regtest qualification | | [ZERO-RESERVE.md](ZERO-RESERVE.md) | Zero-reserve home channels (`option_zero_reserve`): policy and configuration | | [EXTENSIONS.md](EXTENSIONS.md) | Host extensions: code the operator names at start that runs inside the daemon with the wallet, its own rows in the database, routes under `/x/` and events on the stream; the contract, the lifecycle across a rebuild, and what a failure does | | [PORCH.md](PORCH.md) | Porch links, a link to a node that does not say where it is: running a relay, pointing a node at it, handing out and revoking links, who learns what, and what each setup costs in speed | ## Reference | Document | Contents | |----------|----------| | [src/cli/README.md](../src/cli/README.md) | `BeignetNode` API with the generated options and events tables, CLI commands, daemon routes, configuration | | [src/lightning/README.md](../src/lightning/README.md) | Protocol layer: architecture, usage, the generated `INodeConfig` and `LightningNodeEvents` tables, module reference, BOLT coverage | | [src/lightning/swaps/README.md](../src/lightning/swaps/README.md) | Swap contracts, transactions, ledger and provider engines | | [API-CONVENTIONS.md](API-CONVENTIONS.md) | Naming and parameter rules for new public API, and the deprecated names each replacement supersedes | | API reference | Generated by typedoc for every entry point. CI uploads it as the `api-docs` artifact; `npm run docs:html` builds it into `api-docs/` | The option and event tables in the two READMEs above are generated from the code by `npm run docs:tables`, and CI fails when they are stale (`npm run docs:check`). CI also fails when a code comment cites a file that is not in the repository (`npm run docs:paths`), and when the exported API differs from its snapshot in `tests/api-snapshot/` (`npm run api:snapshot` regenerates it). ## Design and protocol documents | Document | Contents | |----------|----------| | [RECOVERY-PROTOCOL.md](RECOVERY-PROTOCOL.md) | Recovery Protocol: replicated, versioned channel state with channel-preserving restore and split-brain fencing | | [RECOVERY-GUARDIAN-WIRE.md](RECOVERY-GUARDIAN-WIRE.md) | Guardian wire specification: the exact bytes of the Recovery Protocol's guardian messages | | [RECOVERY-TRANSITION-MATRIX.md](RECOVERY-TRANSITION-MATRIX.md) | Every state-machine-critical send and receive site and what must be persisted before it | | [specs/ffor-offline-receive.md](specs/ffor-offline-receive.md) | FFOR, Fast-Forward Offline Receive: the protocol specification (v0.9.4) the FFOR code cites by section | | [specs/CONCURRENT-RECEIVE.md](specs/CONCURRENT-RECEIVE.md) | FFOR concurrent receive, extension version 1: ordinary payments on a channel with a live voucher book | | [FFOR-RESERVED-RETIREMENT.md](FFOR-RESERVED-RETIREMENT.md) | FFOR concurrent receive and reserved retirement: the version 1 and 2 contracts | | [PORCH-PROTOCOL.md](PORCH-PROTOCOL.md) | Porch, version 1: a blind relay that lets a node hand out a `wss://` peer link without revealing where it runs. Roles and trust, messages, limits, test vectors | | [SPLICE-LOCK-DEPTH.md](SPLICE-LOCK-DEPTH.md) | Depth-locked splices and conflicted-splice revert, two BOLT 2 extensions | | [ASSET-SPLICING.md](ASSET-SPLICING.md) | Proposed asset splice protocol covering funding proofs, commitments, HTLCs and fee replacements | | [MULTI-CHANNEL-SPLICE-OUT.md](MULTI-CHANNEL-SPLICE-OUT.md) | Design note: one transaction that splices out of several channels and pays an address once, with session composition, signatures, abort, restart, fees and peer support | | [DIRECT-FUNDING-OWNERSHIP-PROOFS.md](DIRECT-FUNDING-OWNERSHIP-PROOFS.md) | How a direct-funding receiver proves control of its named input | ## Records | Document | Contents | |----------|----------| | [PORCH-QUALIFICATION-2026-11-11.md](PORCH-QUALIFICATION-2026-11-11.md) | Porch qualification: the leak checks, and payment, restart and outage times through a relay, through a relay behind TLS and through Tor, next to a direct TCP connection, with its [raw results](PORCH-QUALIFICATION-2026-11-11.json) | | [scripts/regtest-live/porch-qualification/README.md](../scripts/regtest-live/porch-qualification/README.md) | How to rerun the Porch qualification | | [IROH-QUALIFICATION-2026-10-03.md](IROH-QUALIFICATION-2026-10-03.md) | Iroh transport qualification on the released engine, with its [raw results](IROH-QUALIFICATION-2026-10-03.json) | | [IROH-RELAY-ONLY-QUALIFICATION-2026-11-11.md](IROH-RELAY-ONLY-QUALIFICATION-2026-11-11.md) | Relay-only Iroh qualification: the leak checks, payment and recovery times next to a direct path, and what a peer that already knew the address keeps, with its [raw results](IROH-RELAY-ONLY-QUALIFICATION-2026-11-11.json) | | [scripts/regtest-live/iroh-qualification/README.md](../scripts/regtest-live/iroh-qualification/README.md) | How to rerun the Iroh qualifications | | [tests/lightning/conformance/vectors/SOURCE.md](../tests/lightning/conformance/vectors/SOURCE.md) | Provenance of the vendored BOLT test vectors | | [specs/SOURCE.md](specs/SOURCE.md) | Provenance of the FFOR specifications copied into `docs/specs` | | [ROADMAP.md](ROADMAP.md) | The feature roadmap from the July 2026 review. Historical: last updated 2026-07-24; open work is tracked in GitHub issues |