Skip to content

About

Desktop app for browsing Apache IoTDB data and running SQL over its REST API

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

IoTDB Data Browser

English | 中文

Desktop application for browsing Apache IoTDB data and running SQL against it through the IoTDB REST API (Tree REST v2 and Table REST v1).

CI

What it does

  • Tree connections post to /rest/v2/query for reads and /rest/v2/nonQuery for everything else; Table connections use /rest/table/v1/query and /rest/table/v1/nonQuery and add the selected database to every request body.
  • Browse databases (SHOW DATABASES), then devices (SHOW DEVICES) or tables (SHOW TABLES), then the schema (SHOW TIMESERIES for Tree, DESCRIBE for Table).
  • The data grid pages through one object 20 rows at a time with ORDER BY time ... LIMIT 21 OFFSET n - the extra row only tells the UI whether a next page exists - plus an optional newest-first order and a time-range filter.
  • The SQL console runs arbitrary statements; a response is capped at 8 MiB and INT64 values are parsed as strings, so timestamps beyond Number.MAX_SAFE_INTEGER survive intact.

Screenshots

Connect - point the app at an IoTDB endpoint: protocol, host, port, credentials and data model. Browse - the devices under a database, with the paged data grid behind.
SQL console - run a statement and read the result grid. Schema - the timeseries behind the selected device.

Compatibility

IoTDB version Data model REST protocol Node.js
2.x Tree REST v2: /rest/v2/query, /rest/v2/nonQuery over HTTP or HTTPS 20 or newer (CI: 20.x, 22.x)
2.x Table REST v1: /rest/table/v1/query, /rest/table/v1/nonQuery over HTTP or HTTPS 20 or newer (CI: 20.x, 22.x)

The application window runs on Electron 11.5, pinned in package.json and installed by npm ci.

Build

Prerequisites: Node.js 20 or newer, npm 9 or newer, and a desktop session - the app opens an Electron window.

git clone https://github.com/iotdb-ecosystem/iotdb-data-browser.git
cd iotdb-data-browser
npm ci
npm start

npm run build still packages installers with electron-builder 22 from the inherited configuration; CI does not run it.

Test

npm test

CI runs npm ci and npm test on Node 20.x and 22.x - nothing else, so no Electron packaging and no desktop session are involved. No running IoTDB is required either: the suite starts a throwaway HTTP server, replays Tree and Table REST payloads, and checks routing, paging SQL, identifier validation, error mapping and INT64 decoding. npm run test:iotdb:live is the opt-in counterpart that talks to a real server, configured through IOTDB_REST_URL, IOTDB_USER and IOTDB_PASSWORD.

Configuration

Connection profiles are stored in the window's localStorage under links without the password; passwords are held in memory for the session only.

Field Default Notes
Host - hostname or IP address, IPv6 literals in brackets
REST port 18080 IoTDB REST port
Protocol http http or https
SQL model table tree (REST v2) or table (REST v1)
Username - sent as HTTP Basic auth, normally root
Password - sent as HTTP Basic auth, never written to disk
Timeout 15000 ms per request; a response larger than 8 MiB is aborted

A profile therefore looks like this:

Host      iotdb.example
REST port 18080
Protocol  https
SQL model tree
Username  root
Password  ******

Usage

  1. Run npm start.
  2. Click 新建连接 (new connection) and fill in the profile above.
  3. Select a database and an object for the data grid, or type a statement in the SQL tab:
SHOW DATABASES;
SELECT * FROM root.factory.room LIMIT 20;

Table databases use plain names such as factory and the same SELECT * FROM sensors form.

Project status

Independent project. Maintained here; contributions and adoption inquiries are welcome.

License

Apache-2.0, see LICENSE. Derived from a 2021 community desktop GUI project by skye published under CC0-1.0, whose text is kept verbatim in licenses/CC0.txt; see NOTICE.

About

Desktop app for browsing Apache IoTDB data and running SQL over its REST API

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages