Raft DB Studio

Raft DB Studio overview

What Raft DB Studio is, what it can do today, how it is built and which parts are still plans.

Raft DB Studio is the SQL and JSON management studio of Raft DB. It is a web application: a set of static files (HTML, CSS and ES modules) with no dependencies and no build step. The Studio is a folder of static files served by raftdb-server.

Studio does two jobs:

  1. File viewer. Open a JSON, NDJSON or CSV file, browse it as a table, a tree or raw text, filter it with the Raft DB filter language and export the result. No server is needed and nothing is uploaded. See Viewing files.
  2. Server client. Connect to one or more Raft DB servers, browse databases and tables in an Object Explorer (the layout of SQL Server Management Studio), read and edit rows, create indexes, import and export data, and run filter or SQL queries. See Connecting to a server.

How it is built#

PartFact
LanguageJavaScript ES modules, JSDoc type checks, no framework
Dependenciesnone
Numbersan exact JSON parser: integers beyond 2^53 and up to 64 bits are kept exact (BigInt), 30 and 30.0 are different values
Strict typesthe filter in the Studio mirrors the server's filter engine (raftdb-exec): no value is converted to another type
Themeslight, dark and high contrast, from design tokens
Tests272 tests are counted for the Studio (round 3)

The server can serve the Studio itself: start it with --studio DIR and open http://<address>/. Then the page and the API have the same origin and no cross-origin setting is needed. See Starting the Studio.

Status#

Studio is built in phases. ST0 (API contract, wireframes, tokens), ST1 (file viewer) and ST2 (server client, three rounds) are built. Everything later - plan viewer, cluster view, dashboard, backup and restore wizard, designer, ER diagram - is a plan, not a feature. The list is on Status and limits.

See also#