NocoBase Headless Data Engine & Dynamic Schema Driver

NocoBase Headless Data Engine & Dynamic Schema Driver

@nocobase/dsh-driver·v1.0.4·storage

A headless relational database and dynamic schema middleware for DeepSeek Harness agents. Integrates NocoBase metadata APIs to automate database modeling, dynamic CRUD synthesis, and RBAC control.

Headless-DB · NocoBase · Schema-Engine · Dynamic-API

GitHubNPM
Installation & Integration
bash
manager:
$ pnpm add @nocobase/dsh-driver

Architecture

NocoBase Engine equips DeepSeek Harness agents with full-lifecycle database modeling autonomy. Building business automation systems requires not just logic scripting, but rigorous data schemas, relationship mapping, and access controls. This plugin integrates NocoBase's headless metadata architecture directly into Cordis. Agents declare data collections, configure complex foreign-key associations, and establish field-level validation rules via simple API calls, automatically exposing secure REST and GraphQL endpoints without raw SQL hazards.

Core Features

01

Zero-Downtime Dynamic DDL: Add columns and modify relationships on live production databases

02

Instant REST/GraphQL Endpoints: Generates fully typed API endpoints immediately upon creation

03

Strict Validation Constraints: Enforces regex rules, unique constraints, and cascades automatically

04

Fine-Grained RBAC Security: Enforces field-level access control lists and comprehensive audit logs

Core Workflow

01

Schema Semantic Inference

Infers relational tables, foreign keys, and indexes from natural language requirements.

02

Dynamic Migration Execution

Applies non-blocking DDL updates via NocoBase schema engines in real time.

03

API Synthesis & Mapping

Instantly binds authenticated CRUD routes, filters, and OpenAPI contracts.

04

Operation & Constraint Check

Executes strongly typed queries while enforcing business constraints.

Configuration Parameters Reference (YAML / JSON)

ParameterTypeDefaultDescription
apiEndpointstringhttp://localhost:13000/apiTarget NocoBase server instance API URL
autoSyncSchemabooleantrueAutomatically apply schema changes to database
defaultDatabasestringpostgresUnderlying relational database driver