Source: https://seerepo.com/r/lightningnetwork/lnd/built
Markdown source: https://seerepo.com/r/lightningnetwork/lnd/built.md
Description: lnd is a Go repo. It stores its data in Postgres and SQLite and is tested with rapid, github.com/stretchr/testify, github.com/pmezard/go-difflib, and Ory.

# What is lnd built with?

lnd is a Go repo. It stores its data in Postgres and SQLite, is tested with rapid, github.com/stretchr/testify, github.com/pmezard/go-difflib, and Ory, runs in production with github.com/coreos/go-systemd, github.com/grpc-ecosystem/go-grpc-prometheus, and Prometheus, and uses pgx, etcd, github.com/golang-migrate/migrate/v4, github.com/jackc/pgerrcode, and github.com/fergusstrange/embedded-postgres. It has 788,490 written lines, with 784 test files.

Read on November 17, 2026, at commit 5ffce51.

Repository: https://github.com/lightningnetwork/lnd

## Frontend

### Interface

- **[github.com/jedib0t/go-pretty/v6](https://seerepo.com/uses/githubcom-jedib0t-go-pretty-v6)**: 1 file

## Backend

### Data

- **[pgx](https://seerepo.com/uses/pgx)**
- **[Postgres](https://seerepo.com/uses/postgres)**: 10 files · [kvdb/sqlbase/migration_bulk_postgres.go, line 14](https://github.com/lightningnetwork/lnd/blob/5ffce5157013a803d1e61050d82f50788a1b6d39/kvdb/sqlbase/migration_bulk_postgres.go#L14)
- **[SQLite](https://seerepo.com/uses/sqlite)**: 7 files · [sqldb/v2/sqlite.go, line 14](https://github.com/lightningnetwork/lnd/blob/5ffce5157013a803d1e61050d82f50788a1b6d39/sqldb/v2/sqlite.go#L14)
- **[etcd](https://seerepo.com/uses/etcd)**: 5 files
- **[github.com/golang-migrate/migrate/v4](https://seerepo.com/uses/githubcom-golang-migrate-migrate-v4)**: 5 files
- **github.com/jackc/pgerrcode**: 4 files
- **github.com/fergusstrange/embedded-postgres**: 1 file

## Support

### Testing

- **rapid**
- **github.com/stretchr/testify**: 604 files
- **github.com/pmezard/go-difflib**: 3 files
- **Ory**: 2 files

### Deploy

- **github.com/coreos/go-systemd**: 1 file
- **[github.com/grpc-ecosystem/go-grpc-prometheus](https://seerepo.com/uses/githubcom-grpc-ecosystem-go-grpc-prometheus)**: 1 file
- **[Prometheus](https://seerepo.com/uses/prometheus)**: 1 file

### Tools

- **github.com/urfave/cli**: 35 files
- **github.com/davecgh/go-spew**: 10 files
- **golang.org/x/mod**: 1 file

### Other

- **compress**
- **[Google](https://seerepo.com/uses/google)**: 35 files
- **github.com/grpc-ecosystem/grpc-gateway/v2**: 17 files
- **google.golang.org/protobuf**: 13 files
- **golang.org/x/time**: 10 files
- **golang.org/x/crypto**: 7 files
- **github.com/decred/dcrd/dcrec/secp256k1/v4**: 4 files
- **github.com/jessevdk/go-flags**: 4 files
- **golang.org/x/sys**: 4 files
- **golang.org/x/exp**: 3 files
- **golang.org/x/sync**: 3 files
- **github.com/miekg/dns**: 2 files
- **golang.org/x/term**: 2 files
- **github.com/andybalholm/brotli**: 1 file
- **github.com/btcsuite/btcd/btcutil**: 1 file
- **github.com/gorilla/websocket**: 1 file
- **github.com/grpc-ecosystem/go-grpc-middleware**: 1 file
- **github.com/jackpal/gateway**: 1 file
- **github.com/jackpal/go-nat-pmp**: 1 file
- **golang.org/x/mobile**: 1 file
- **golang.org/x/net**: 1 file
- **golang.org/x/text**: 1 file

## Other repos with a similar stack

- [harness/harness](https://seerepo.com/r/harness/harness/built): pgx, Postgres, SQLite, github.com/golang-migrate/migrate/v4, github.com/jackc/pgerrcode, Prometheus · [Compare](https://seerepo.com/compare/harness/harness/vs/lightningnetwork/lnd)
- [hashicorp/vault](https://seerepo.com/r/hashicorp/vault/built): pgx, Postgres, etcd, github.com/coreos/go-systemd, Prometheus · [Compare](https://seerepo.com/compare/hashicorp/vault/vs/lightningnetwork/lnd)
- [photoprism/photoprism](https://seerepo.com/r/photoprism/photoprism/built): pgx, Postgres, SQLite, Prometheus · [Compare](https://seerepo.com/compare/lightningnetwork/lnd/vs/photoprism/photoprism)
- [Tencent/WeKnora](https://seerepo.com/r/Tencent/WeKnora/built): pgx, Postgres, SQLite, github.com/golang-migrate/migrate/v4 · [Compare](https://seerepo.com/compare/lightningnetwork/lnd/vs/Tencent/WeKnora)
- [JuliusBrussee/caveman](https://seerepo.com/r/JuliusBrussee/caveman/built): pgx, Postgres, SQLite · [Compare](https://seerepo.com/compare/JuliusBrussee/caveman/vs/lightningnetwork/lnd)
- [moby/moby](https://seerepo.com/r/moby/moby/built): Postgres, etcd, Prometheus · [Compare](https://seerepo.com/compare/lightningnetwork/lnd/vs/moby/moby)

## Frequently asked questions

### What language is lnd written in?

lnd is written in Go, with 788,490 written lines.

### What database does lnd use?

lnd stores its data in Postgres and SQLite.

The proof: [kvdb/sqlbase/migration_bulk_postgres.go, line 14](https://github.com/lightningnetwork/lnd/blob/5ffce5157013a803d1e61050d82f50788a1b6d39/kvdb/sqlbase/migration_bulk_postgres.go#L14)

### What services does lnd use?

lnd uses pgx, etcd, github.com/golang-migrate/migrate/v4, github.com/jackc/pgerrcode, and github.com/fergusstrange/embedded-postgres.

### Does lnd have tests?

Yes. lnd has 784 test files and is tested with rapid, github.com/stretchr/testify, github.com/pmezard/go-difflib, and Ory.

### Which repos have a stack like lnd's?

The ones that share most of its stack: harness/harness, hashicorp/vault, and photoprism/photoprism.

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
