Skip to content

Light indexer

Light indexer @ github

Host you own Algorand indexer API in under minutes:

  • 100% compatible with upstream Indexer API
  • Even faster than Nodely.io cloud service
  • Requires <25GB of SSD
  • [optionally] Go fully independent by adding a follower node

Ingridients

TODO

  • ARM images (sorry)
  • Auto update container
  • Documentation
  • Testnet

Requirements

  • 25GB of free SSD space
  • docker-compose
  • jq
  • bash

Quickstart

Terminal window
git clone https://github.com/AlgoNode/light-indexer.git
#make sure you have 20GB in the current dir
cd light-indexer
./bin/init
#enjoy mainnet indexer in under 20 minutes

Security

  • Database and Indexer API endpoints are exposed, by default, on localhost only.
  • CockroachDB runs in insecure mode (no authentication)

If you want to expose Indexer API to the World you can use:

Scripts

Diagnostic scripts

ScriptDescription
bin/helpShow your API endpoint address & token
bin/logsTail logs from all services
bin/statusShow if your indexer is lagging

Safe scripts (should not break stuff)

ScriptDescriptionExample
bin/downShutdown whole bundle
bin/down ...Shutdown a service/bin/down conduit
bin/upStart whole bundle
bin/up ...Start a service/bin/up api
bin/restart ...Start a service/bin/restart api
bin/updateDownload new images and restart services

Dangerous scripts (might break stuff)

ScriptDescription
bin/catchupDestroy and download fresh database
bin/gencfgRegenerate configs
bin/upgradeMajor upgrade