Skip to content
datio-onePublic

About

The Datio Studio to manage big data using the REST API

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

Datio Logo

Datio Studio

Datio Studio is a web-based platform for data discovery, exploration, visualization, and analysis. It provides a unified interface for accessing structured data through the Datio API, combining interactive data tables, advanced search and filtering, charts, geospatial visualizations, and knowledge graphs.

Built as a standalone, API-driven single-page application, Datio Studio follows a schema-driven architecture to dynamically generate resource views based on OpenAPI specifications.

While Datio Studio is built on top of Datio API, its architecture is designed to be API-agnostic, making it suitable for integration with any REST API that provides an OpenAPI specification.

Architecture

Datio Studio is designed as a free and open-source (FOSS), customizable, and API-agnostic data studio. It aims to provide a reusable foundation for building independent data exploration and analytics applications without requiring modifications to the core application.

The architecture is based on three complementary principles:

  • Configuration-driven: Application identity, branding, logos, colors, themes, layout, and general settings are configurable.
  • Context-driven: Available data sources, resources, navigation items, and views are determined by the active context rather than the entire API surface.
  • Schema-driven: Resource views, data tables, filters, forms, and other data representations are derived from OpenAPI specifications.

Studio Configuration

The Studio Configuration defines the identity, appearance, layout, and general behavior of a Studio instance. Branding and theming are independent of the application core, allowing organizations to create their own customized Data Studio.

Studio Context

The Studio Context defines the data sources, resources, navigation structure, and views available within a particular Studio instance or session.

Navigation is generated from the active context rather than directly from the OpenAPI specification. This allows a Studio instance to expose selected, purchased, reserved, or otherwise authorized datasets without exposing the entire API surface.

The context controls the user interface, while actual data access permissions are enforced by the underlying APIs.

Build-Time and Runtime

Datio Studio aims to support both deployment and configuration models:

  • Build-Time: Generate and deploy a dedicated Studio instance with predefined configuration, branding, context, and optionally generated API clients.
  • Runtime: Load configurations, contexts, and API specifications dynamically without rebuilding the application.

Both models share the same application core and internal configuration and context models. They can also be combined within a single Studio instance.

Application Shell

The Application Shell provides a generic, configurable application framework. It is independent of specific data providers, resources, and branding.

Navigation, resource routing, and data views are dynamically derived from the active Studio Context and the associated API specifications.

The Datio API is a first-party data provider, not a mandatory dependency.

UI Components and Design Principles

Datio Studio builds upon shadcn/ui and Base UI, complemented by selected open-source components from ReUI and Dice UI.

The following principles guide UI development:

  • Free and open-source components only
  • No dependencies on commercial or proprietary UI components
  • Full ownership and customizability of component source code
  • Consistent design tokens and CSS variables
  • Replaceable branding and configurable layouts
  • Accessibility and keyboard navigation
  • Performance-oriented rendering of large datasets

Studio Admin (and shadcn-admin in some cases) serve as design and interaction references. AG Grid serves as a functional reference for advanced data exploration features.

These references do not constitute mandatory dependencies. All adopted components must comply with the project's open-source licensing requirements.

Default Branding

Datio Studio uses the official Datio Brand as its default visual identity.

All branding elements are replaceable through configuration without modifying the application core:

  • Application name and description
  • Logos for light and dark mode
  • Favicon and application icons
  • Color palette and semantic design tokens
  • Typography
  • Light and dark themes
  • Border radius and visual density
  • Layout preferences

The default Datio branding is provided as a replaceable branding preset. Custom branding can be applied at build-time or runtime.

All UI components consume semantic design tokens rather than hardcoded brand-specific values.

Tech Stack

Work-in-Progress

Development

Install dependencies:

npm install

Start the Vite development server:

npm run dev

The dev server is available at http://127.0.0.1:5173/.

Laravel Herd

Datio Studio supports two modes of operation with Laravel Herd: Static Build and Dev Server.

Static Build

To access the current build of Datio Studio via HTTPS:

cd ~/Herd/studio
npm run build
cd dist
herd link studio
herd secure studio

The application is available at https://studio.test.

To update the static build, run npm run build from the project directory.

Dev Server

The Vite development server must be running and listening on 127.0.0.1:5173.

npm run dev

To access the Datio Studio development server via HTTPS, register a reverse proxy in Herd:

cd ~/Herd/studio
herd proxy studio http://127.0.0.1:5173 --secure

The application is available at https://studio.test.

If Herd stops proxying, check the registered proxies:

herd proxies

If the proxy is missing, register it again.

Laravel Forge

Simply deploy Datio Studio as a HTML site in Laravel Forge. Adjust the web directory to /dist and enable npm run build for deployments. Finally change the location directive in your Nginx config:

location / {
    try_files $uri $uri/ /index.html;
}

Setup

Datio Studio uses Vite with React, TypeScript, Hot Module Replacement (HMR), and Oxlint.

Currently, two official plugins are available:

React Compiler

The React Compiler is currently disabled due to its impact on development and build performance. To add it, see this documentation.

Oxlint

Type-aware linting can be enabled by installing tsrs and updating .oxlintrc.json:

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": ["react", "typescript", "oxc"],
  "options": {
    "typeAware": true
  },
  "rules": {
    "react/rules-of-hooks": "error",
    "react/only-export-components": ["warn", { "allowConstantExport": true }]
  }
}

See the Oxlint rules documentation for the full list of rules and categories.

TanStack Router

Datio Studio uses file-based routing with automatic code splitting. Routes are defined in src/routes/, and the route tree is automatically generated by the TanStack Router Vite plugin.

The generated src/routeTree.gen.ts file must not be edited manually.

TanStack Query

TanStack Query handles asynchronous data fetching, caching, synchronization, and server state management.

A centralized QueryClient is configured in src/main.tsx. React Query DevTools are available for debugging and inspecting queries during development.

API clients and query hooks will be generated from OpenAPI specifications using Orval.

TanStack Table

Datio Studio uses TanStack Table as a headless table engine, combined with shadcn/ui for rendering and styling.

The reusable DataTable component in src/components/data-table.tsx provides a generic foundation for displaying structured data independently of individual API resources.

The planned feature set includes:

  • Server-side pagination, sorting, and filtering
  • Column visibility, resizing, and reordering
  • Row selection
  • Virtualized rendering using TanStack Virtual
  • Schema-driven column definitions based on OpenAPI specifications

TanStack Virtual

Datio Studio uses TanStack Virtual for efficient rendering of large datasets within the reusable DataTable component.

Only visible rows and a configurable number of overscan rows are rendered, keeping the DOM lightweight regardless of the total number of records.

The current implementation supports:

  • Virtualized rows
  • Sticky table headers
  • Fixed row heights
  • Configurable overscan
  • Native scrolling

Virtualization has been stress-tested with 1,000,000 synthetic records, maintaining responsive scrolling. Browser-specific maximum layout dimensions may limit the accessible scroll range.

About

The Datio Studio to manage big data using the REST API

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages