Skip to content

Quickstart, Workspaces & Glossary

Start with a working Studio workspace in minutes—whether you are exploring the Field Operations Dispatch and Clinical Care Booking sample projects or compiling a standalone NestJS, Prisma, and React application outside Studio.


1. Prerequisites & Launching Perlite Studio

  1. Prerequisites: Install Node.js 20+ and npm (plus Docker Desktop only when launching the containerized PostgreSQL runtime stack).
  2. Start Perlite Studio (Web Workspace): From the repository root, install dependencies and launch the Studio server:
    Terminal window
    npm run dev
    Open http://localhost:5173 in your browser.
  3. Desktop Application (Optional): Launch the native desktop wrapper with:
    Terminal window
    npm run studio

2. Opening Sample Workspaces & Seeding Live Data

Every Guided Example across Pillar 1 and Pillar 2 runs directly against two canonical sample projects shipped in model_archive/:

  1. Switch Active Workspace: Click the active project pill in the top-left Application Title Bar (next to the Perlite Studio logo) to switch between your active model/ workspace, model_archive/field_ops (Field Operations Dispatch), model_archive/optical_clinic (Clinical Care Booking), or perlite_enterprise (Enterprise Reference Suites).
  2. Load a Sample Dataset: Open Object Browser → Operations & Quality → Testing (or select a sample dataset in Studio) and load FieldOpsDemo or ClinicalCareDemo into SQLite.
  3. Preview Live Screens Immediately: Open any composite screen from the left Application Menu (Field Dispatch Command Center, Patient Booking Workspace), toggle ⚙️ Design Mode off, and test live queries, slide-over drawers, and role masking against real database rows.

3. Compiling & Running the Generated TypeScript Application Standalone

Perlite Studio is a design-time engineering workbench—your deployed application has zero runtime dependency on Studio. Whenever you build, the compiler synthesizes standard TypeScript, Prisma, and React code inside runtime/:

Terminal window
# Compile your active model into runtime/software/ and runtime/database/prisma/
npm run compile:all

Generated Runtime Architecture

Output Directory What Gets Generated How to Run Standalone
runtime/database/prisma/ Complete schema.prisma data model, indexes, relations, and incremental SQL migrations. npm --prefix runtime/software/backend run db:push (or db:migrate)
runtime/software/backend/ NestJS modules, DTOs, @RequirePermission guards, split CRUD services (CreateOne, UpdateOne, FetchOne, FetchMany, DeleteOne), and PERLITE_ACTION_POINT hooks. npm --prefix runtime/software/backend run start (or build + start:prod)
runtime/software/frontend/ Compiled React + Vite screen components (FieldDispatchCommandCenter, PatientBookingWorkspace), signal wiring, and navigation routes. npm --prefix runtime/software/frontend run dev (or build)
runtime/infra/ Local Docker Compose stack (dev/docker-compose.yml), Helm charts, Terraform/IaC, and CDK8s Kubernetes manifests. npm run dev:up (boots PostgreSQL + compiled backend/frontend containers)

Verify generated backend, frontend, infrastructure, and scenario suites together at any time:

Terminal window
npm run check:all

4. Plain-English Glossary of Core Concepts

Term Plain-English Meaning
Entity A core business record (such as WorkOrder, Patient, or PurchaseInvoice) stored as a database table with typed attributes, relations, and lifecycle APIs.
Base Trait A reusable cross-cutting capability (MultiTenant, SoftDelete, Auditable, Hierarchical, ePHIAudited, SequentialNumbering, BalancedTransaction) attached to entities to inject shared fields and transaction checks automatically.
Attribute Classification A sensitivity badge placed directly on columns (Public, Internal, PII, Confidential, ePHI) controlling role-based field masking and automatic anonymization in test snapshots.
Base Panel One of 16 domain-agnostic UI building blocks (GridPanel, CalendarSchedulePanel, FormPanel, KpiSummaryPanel, MatrixGridPanel, etc.) configured per screen without hardcoding business entities.
Composite Screen A multi-panel workspace built in Screen Stitcher Studio using SplitVertical, SplitHorizontal, TabsContainerPanel, and slide-over DrawerPanel overlays.
Reactive Signal Bus Declarative event channels (selectRecord, selectSlot, inspectAppointment) allowing panels to filter sibling grids, prefill forms, and open drawers without glue code.
Action Point A key location inside generated entity functions, state transitions, and screen panels (PRE_VALIDATE, PRE_CREATE, POST_CREATE, AFTER_COMMIT, EVALUATE_ACTION_STATE) where you insert your own custom logic — such as custom validations, calculations, database queries, or TypeScript — inside protected // === PERLITE_ACTION_POINT === markers preserved across rebuilds.
Scenario A multi-step REST workflow (AS · WHEN · THEN) verified against SQLite with automatic <15ms snapshot restore and exported directly to Playwright CI tests.
Draft Sandbox An isolated change branch with its own temporary SQLite database and semantic impact analyzer (Breaking, Developer Review, Safe) protecting Published Model (main).
Domain Suite & Interface A versioned bounded-context package (DomainSuite) exposing typed API, Event, and Message contracts (DomainInterface) and declarative .trigger bindings across modules.
Enriched Peer Stub A minimal local schema stub generated when one suite references an entity owned by another suite so foreign keys compile without duplicating business logic.
Envelope Encryption & WORM Audit Per-field AES-256-GCM cryptography (encrypted: true) paired with SHA-256 hash-chained access logging (perlite-audit-service) archived to immutable 7-year Object Lock storage.