Lux Docs

Installation

Install the Lux Indexer

Go Install

go install github.com/luxfi/indexer/cmd/indexer@latest

Docker

docker pull ghcr.io/luxfi/indexer:v0.2.2

Build from Source

git clone https://github.com/luxfi/indexer.git
cd indexer

# Default (SQLite)
go build -o bin/indexer ./cmd/indexer

# PostgreSQL
go build -tags postgres -o bin/indexer ./cmd/indexer

# All binaries
make build-all

Cross-Compilation

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
  go build -tags postgres -o bin/indexer ./cmd/indexer

Build Tags

TagBackendUse Case
(none)SQLiteLocal development
postgresPostgreSQLProduction
mysqlMySQLAlternative production

On this page