Skip to content
bitcoinresearchkitPublic

Repository files navigation

Bitview and the Bitcoin Research Kit

Bitview

Bitview is a free, open-source Bitcoin data server: on-chain metrics, blocks, mempool and mining data, with charts and an API, at bitview.space or beside your own Bitcoin Core node.

  • Bitcoin Research Kit (BRK): reusable Rust primitives for reading Bitcoin Core data, RPC, mempool tracking, storage, domain types, and the on-chain price oracle.
  • Bitview: the self-hostable application that composes BRK with a typed indexer and analytics plugin graph, query layer, REST server, website, and generated clients.

Used by

Sparrow Wallet  Look Into Bitcoin  Checkonchain  Newhedge  The Bitcoin Layer  QFI Labs  Papang Labs  Atreidis

See Architecture for the component and data-flow details.

Repository map

Path Purpose
crates/brk_* Reusable Bitcoin primitives
crates/bitview_plugin_* Official indexing and analytics plugins
crates/bitview* Plugin contract, runtime, composition, query/server stack, daemon, code generation, and Rust clients
crates/{vecdb,rawdb,byteview,fjall,lsm-tree} Storage and data infrastructure
examples/custom_plugin Runnable external-plugin and custom-composition example
modules/bitview-client JavaScript/TypeScript client
packages/bitview_client Python client
website The site: its front page, Studio and apps, served by the server
docs, benches, docker, and scripts Project documentation, measurements, packaging, and maintenance tooling

Use Bitview

The hosted website, API, and MCP endpoint require no account or authentication:

curl https://bitview.space/api/oracle/price
curl https://bitview.space/api/series/count

Find series identifiers with /api/series/search?q=<concept>.

Self-host Bitview

rustup update && RUSTFLAGS="-C target-cpu=native" cargo install --locked bitviewd
bitviewd

The default composition needs Linux or macOS, a mainnet Bitcoin Core node with RPC and complete blk*.dat files from genesis, about 290 GiB for Bitview plus Bitcoin Core storage and growth headroom, and 16 GB of RAM recommended for a full sync. The website and API are served at localhost:3110, to this machine only unless serverbind says otherwise.

See the bitviewd guide for requirements, disk usage, installation, configuration, initial sync, and custom compositions.

Build with BRK

[dependencies]
brk_reader = "0.12"
brk_rpc = "0.12"
brk_types = "0.12"

For a new Bitview metric or composition, start with the custom plugin example and the bitview_plugin contract.

Develop

The repository pins its Rust toolchain in rust-toolchain.toml.

cargo check --workspace
cargo api   # records the API snapshots
cargo bindgen   # regenerates the clients

Documentation

Support and community

BRK is supported by OpenSats from December 2024 through June 2027.

Discord · X · Issues · Support

Donations

_Checkmatey_ Johan Bergman Alon Shvartsman ClearMined Philip Swift

Bitcoin donation QR code

bc1pkqvzn3pepug695xtvwmpm0sjd6n9j55v792cwfruzkqzrf2jn47s3hq0ts

License

MIT

Releases

Packages

Used by

Contributors

Languages