Knowledge base · 3TL Bridge

3TL Bridge: Transform Studio

By Donovan Kinney · Updated

Transform Studio

Transform Studio is the engineering workspace at the core of 3TL Bridge. It provides a professional code editing environment — Monaco editor with Rhai syntax highlighting, AI-powered script generation, and an assertion-based test suite — directly in the browser. Transformation logic is organised into workspaces that bundle scripts, sample input, schema definition, and test cases into a single unit that can be linked to a pipeline.


UI Layout

Transform Studio is a multi-panel environment. Each panel has a specific role:

Panel Location Purpose
Explorer Left sidebar Browse services, scripts, schemas, and test suites
Script Editor Center top Write and edit Rhai transformation scripts
Input Document Center left Sample JSON that the script transforms
Output Panel Center right Result of running the script against the input
Guardrails Panel Right column Schema tab (validation rules) and Tests tab (test suites)
Pipeline Editor Center (via Pipeline tab) JSON config defining the data flow — source, middlewares, and sinks
AI Sidebar Right edge AI Assistant conversation — see AI Assistant

Workspaces

A workspace bundles everything needed to develop, test, and deploy a transformation:

Component Description
Scripts One or more Rhai transformation scripts applied to each event
Sample input A representative document from the source collection
Schema Avro or JSON Schema definition for validation and AI context
Test suite Assertion-based test cases linked to the workspace

Workspaces are saved and can be reopened later. A workspace can also reference a pipeline configuration — when a pipeline is opened via “Open in Studio”, the workspace name should match the pipeline name so reopening links back to the same workspace rather than creating a duplicate.


Test Suites

Each workspace can link to an assertion-based test suite. A test suite has one shared input document — all cases run against it. There is no per-case input.

Each case within a suite asserts a different aspect of the output for that single input: field presence, value correctness, type stability, or enrichment results. Think of each case as a different lens on the same transformation, not a different scenario.

One input shape per suite

To cover a different input shape (missing fields, nulls, nested vs flat), create a separate test suite with its own input document. Never put cases that require different inputs into the same suite — the extra inputs will be ignored.

Strict Mode

Test cases support a strict_mode flag. When enabled, the test fails if the output contains fields not covered by any assertion. This catches unintended field leakage and is important for compliance-sensitive transformations.


Service Explorer

The Service Explorer, accessible from the left sidebar, allows you to:

  • Browse registered MongoDB collections, Kafka topics, and Pub/Sub subscriptions
  • Load real collection schemas directly into the Guardrails Panel schema tab
  • Import sample documents from live collections into the Input Document panel

This eliminates the need to copy sample data manually — the schema and sample inputs used during development match the actual documents flowing through the pipeline.


Open in Studio

Any running pipeline can be opened in a Transform Studio workspace without stopping data flow. This allows you to:

  1. Inspect the current transformation logic for a live pipeline
  2. Modify the script and run the test suite against it
  3. Save the updated script, then restart the pipeline to pick up the change

Changes require a restart

Script changes take effect when the pipeline is restarted — not automatically. Configuration changes (encoding, schema, source, sink) require a stop → delete → create cycle. See Pipeline Management for details.


Use Cases

  • Build and test field-level masking scripts against real sample documents loaded via the Service Explorer before deploying to production
  • Create multiple test suites per workspace — one per input shape — to catch regressions across schema variants
  • Open a running production pipeline in Studio, update the transformation script, and restart to apply the change without data loss
  • Use the AI Assistant to generate initial script drafts, then validate through the test suite — see AI Assistant

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes, including personalized advertising (“performance”), to provide you with additional functions (“functional”), and to show content from social media platforms, such as embedded videos (“social media”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data. Please choose for which purposes you wish to give us your consent and store your preferences by clicking on “Accept selected”. You can find further information in section 9 of our Privacy Policy.

Manage consent preferences