# @datagrok-libraries/db-explorer

> Library for exploring databases

Latest version **1.8.0** (published 2026-11-28) · 0 weekly downloads

## Install

```sh
npm install @datagrok-libraries/db-explorer
pnpm add @datagrok-libraries/db-explorer
yarn add @datagrok-libraries/db-explorer
bun add @datagrok-libraries/db-explorer
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.8.0 |
| Published | 2026-11-28 |
| First published | 2024-09-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 548.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 75 |
| Author | Davit Rizhinashvili |
| Maintainers | aparamonov_datagrok, drizhina, spodgrok |

## Links

- npm: https://www.npmjs.com/package/@datagrok-libraries/db-explorer
- Repository: https://github.com/datagrok-ai/public
- Homepage: https://github.com/datagrok-ai/public#readme
- Issues: https://github.com/datagrok-ai/public/issues
- npm.io page: https://npm.io/package/@datagrok-libraries/db-explorer

## Dependencies (5)

- [wu](https://npm.io/package/wu.md) 2.1.0
- [rxjs](https://npm.io/package/rxjs.md) 6.6.7
- [dayjs](https://npm.io/package/dayjs.md) 1.11.23
- [datagrok-api](https://npm.io/package/datagrok-api.md) ^1.28.1
- [worker-loader](https://npm.io/package/worker-loader.md) ^3.0.8

## Recent versions

- 1.8.0 (latest) — 2026-11-28
- 1.7.4 — 2026-04-01
- 1.7.3 — 2026-03-31
- 1.7.2 — 2026-01-21
- 1.7.1 — 2025-12-31
- 1.7.0 — 2025-12-30
- 1.6.2 — 2025-12-24
- 1.6.1 — 2025-12-17
- 1.6.0 — 2025-12-15
- 1.5.0 — 2025-12-15
- 1.4.1 — 2025-12-14
- 1.4.0 — 2025-12-14
- 1.3.4 — 2025-12-11
- 1.3.3 — 2025-12-01
- 1.3.2 — 2025-11-28
- … 12 more at https://npm.io/package/@datagrok-libraries/db-explorer/versions

## README

# db-explorer

db-explorer is a [library](https://datagrok.ai/help/develop/develop#libraries) for the [Datagrok](https://datagrok.ai) platform.
This library will contain code for ease of exploring databases schemas and its content

## Links

The Links section of a card lists the rows of other tables that point at the card's row, or at a row the card points
at. Each group is a box headed by what its rows share with the card (`This drug`, `Same target · GROKTGT-000010`), and
each table is named, without configuration, by:

1. the configuration's `entities[table].label` (and `.short`, the code shown after it);
2. the semantic type of the identifier registered for the table (`DG_BIOLOGICS_DRUG_ID`: `Drug`), with the fixed part
   of its pattern as the code (`GROKMOL-`); a type that names the identifier rather than the records (`CHEMBL_ID`) is
   skipped;
3. the table's name without the words most tables of its schema share (`stg_`, `_v1`), codes in capitals, and without
   the name of the row it is listed under (`sequence_regions` under a sequence is `Regions`).

A table that points at the card twice, or at its own table, adds what is left of the column's name (`Hierarchy · as
parent` for ChEMBL's `parent_molregno`, `Child compounds` for a `parent_id` of the table itself), or the reference's
`reverseLabel`. The table and column behind a line, and the table's comment, are in its tooltip.

```ts
entities: {
  compounds: {label: 'Compound', short: 'CPD'},
  results_all: {more: true},   // under More: it repeats the other result tables
},
explicitReferences: [{table: 'compounds', column: 'parent_id', refTable: 'compounds', refColumn: 'id',
  label: 'Parent compound', reverseLabel: 'Child compounds'}],
```

A table's rows are read when its pane opens, and counted on its header then. Each row is one line: its key
(`uniqueColumns`, or its identifier's column), a link to its own card, and its name (`headerNames`, else a column named
like a name, else `name`, `type`); the rest of the row opens under it. When the configuration names card columns
(`customSelectedColumns`) for five tables or more, a table it says nothing about (no identifier, key, card or header
column) is taken for a view and folds under More.

---
_Source: https://npm.io/package/@datagrok-libraries/db-explorer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
