# OdyseeTeam/chainquery

Chainquery parses and syncs the LBRY blockchain data into structured SQL

Repository: https://github.com/OdyseeTeam/chainquery
Canonical: https://ross.abutalabs.com/products/chainquery
Homepage: https://lbry.tech
Language: Go
License: MIT
License Family: permissive
Topics: blockchain, sql, lbry, go
Last push: 2026-06-12T21:05:10+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 87, release rhythm 56, longevity 100
- inputs: {"age_days": 3126, "days_push": 82, "days_rel": 82, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2205, forks 35 (observed 2026-08-28T04:06:25.935995+00:00)

## What it is
Chainquery is a Go daemon and API server that parses the LBRY blockchain into a structured MySQL database, syncing blocks, transactions, addresses, and the LBRY claim system. It exposes an HTTP API including a read-only SQL endpoint so chain data can be queried with plain SQL instead of RPC calls.

## Use cases
- query lbry blockchain data with sql
- index blockchain blocks into a database
- build an explorer for lbry claims and channels
- sync blockchain data in real time
- serve blockchain data over an http api
- analyze lbry transactions and supports

## When to choose
- you need fast structured queries over LBRY chain data
- you want to avoid walking the chain via JSON-RPC
- you need automatic handling of blockchain reorganizations
- you're building apps or analytics on the LBRY ecosystem

## When to avoid
- you work with a different blockchain than LBRY
- you only need occasional raw RPC calls rather than indexed data
- you don't want to operate a MySQL database and full node

## Facets
- artifact type: service
- maturity: active
- function: database, http-server, api-framework, etl, search-engine
- domain: blockchain, databases, developer-tools
- platform: go, self-hosted
- tags: lbry, blockchain-indexer, mysql, json-rpc, sql-api, block-sync, chain-data, cryptocurrency, linux, docker

## Member repositories
- OdyseeTeam/chainquery (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:25.935995+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:46:36.723467+00:00, confidence not recorded.
  - readme: https://github.com/OdyseeTeam/chainquery (fetched 2026-08-28T04:06:25.935995+00:00, sha 33cf580a396f)
  - homepage: https://lbry.tech (fetched 2026-08-29T10:26:50.142808+00:00, sha 282c47dea476)
- Data as of 2026-08-30T08:39:29.467469+00:00.
