repowiseblockstream/esplora

Architecture of blockstream/esplora

blockstream/esplora is 143 source files holding 367 symbols across 8 modules, written mainly in JavaScript, Shell, Dockerfile. The largest module is client, with 65 files, and 68 files are entry points into the dependency graph.

How esplora fits together

The browser application starts at client/src/app.js, and its screens are built from view files such as client/src/views/tx.js, which handles transaction pages. The app sends its requests to the HTTP API set by the API_URL option, which defaults to /api. Translated interface text is kept in the lang directory. The prerender-server directory holds a separate server that produces static HTML for users with JavaScript turned off. contrib/nginx.conf.in shows how a web server should return index.html for missing pages, which a single-page app needs.

Largest modules

  • client: 65 files and 7,681 lines of code
  • lang: 30 files and 1,229 lines of code
  • root: 13 files and 9,540 lines of code
  • flavors: 12 files and 88 lines of code
  • contrib: 7 files and 204 lines of code
  • prerender-server: 6 files and 747 lines of code
  • test: 6 files and 425 lines of code
  • gitlab: 2 files and 266 lines of code

Languages

By file count: JavaScript 78 files, Shell 23 files, Dockerfile 1 file.

Documentation

Repowise documents esplora in 108 pages generated from the source.

More on esplora: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos