Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Truera Trulens Record Viewer Dependencies

From Leeroopedia
Knowledge Sources
Domains Frontend Dependencies
Last Updated 2026-02-14 08:00 GMT

Overview

NPM dependency lockfile that pins exact versions for all packages used by the record_viewer React component of the TruLens dashboard.

Description

The package-lock.json file at src/dashboard/react_components/record_viewer/ is an auto-generated NPM lockfile (lockfileVersion 2) for the recordviewer package (version 0.0.0). It ensures deterministic and reproducible dependency resolution for the record_viewer React component, which is part of the TruLens dashboard UI.

This lockfile pins the exact resolved versions, integrity hashes, and dependency trees for all direct and transitive dependencies of the record_viewer component. It contains approximately 18,512 lines, reflecting the full dependency graph.

The record_viewer component is a Streamlit custom component built with React that provides a visual interface for inspecting TruLens evaluation records.

Usage

This file is consumed by npm install (or npm ci) to install the exact dependency versions specified. It should not be manually edited. It is regenerated whenever npm install is run after changes to package.json.

Code Reference

Source Location

Package Metadata

{
  "name": "recordviewer",
  "version": "0.0.0",
  "lockfileVersion": 2,
  "requires": true
}

Key Dependencies

The following direct dependencies are declared for the record_viewer component:

Package Version Range Purpose
@emotion/react ^11.11.1 CSS-in-JS styling library for React (used by MUI).
@emotion/styled ^11.11.0 Styled component API for Emotion.
@microlink/react-json-view ^1.23.0 Interactive JSON viewer component for displaying record data.
@mui/icons-material ^6.0.2 Material UI icon set.
@mui/material ^6.0.2 Material UI component library for the dashboard interface.
@mui/x-tree-view ^7.15.0 Material UI tree view component for hierarchical record display.
clsx ^2.1.0 Utility for constructing CSS class names conditionally.
react ^18.2.0 Core React library.
react-dom ^18.2.0 React DOM rendering.
streamlit-component-lib ^1.3.0 Streamlit custom component communication library.

Dependency Characteristics

  • Lockfile Version: 2 (compatible with npm 7+).
  • Total Lines: Approximately 18,512, reflecting a substantial transitive dependency tree primarily from Material UI and React ecosystems.
  • Purpose: Ensures that all developers and CI/CD pipelines install the exact same dependency versions, preventing inconsistencies across environments.
  • React Version: Targets React 18.x.
  • UI Framework: Built on Material UI (MUI) v6 for consistent design language with the TruLens dashboard.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment