Back to Blog
February 18, 2026 min readsmallworld legacy recovering visual

Smallworld GIS Legacy UI: Recovering Visual Spatial Logic for Utilities

R
Replay Team
Developer Advocates

Smallworld GIS Legacy UI: Recovering Visual Spatial Logic for Utilities

GE Smallworld is the silent engine powering the world’s most critical infrastructure—from the electrical grids of North America to the gas pipelines of Europe. Yet, for many utilities, the user interface remains a significant bottleneck, trapped in a Magik-based environment that predates the modern web. The challenge isn't just the code; it is the smallworld legacy recovering visual logic—the complex spatial relationships and business rules that are visible to the operator but buried in decades of undocumented customizations.

According to Replay's analysis, utilities are currently sitting on a portion of the $3.6 trillion global technical debt, specifically within GIS (Geographic Information Systems) where manual UI migration is notoriously slow. When documentation is missing—which is the case for 67% of legacy systems—the risk of a rewrite failure skyrockets.

TL;DR: Modernizing GE Smallworld requires more than a code port; it requires extracting "visual spatial logic" from the existing UI. Replay uses Visual Reverse Engineering to convert recordings of Smallworld workflows into documented React components and Design Systems, reducing modernization timelines from 18 months to mere weeks and saving up to 70% in development costs.


The High Cost of the Smallworld Legacy Recovering Visual Gap#

For decades, GE Smallworld’s Magik language provided a robust object-oriented framework for managing complex topologies. However, the specialized nature of Magik means that the pool of available developers is shrinking. When an enterprise attempts to move these systems to a modern web-based architecture (like React or Vue), they hit a wall: the "visual logic" wall.

Visual Spatial Logic is the representation of geographic data relationships, equipment hierarchies, and connectivity rules through UI interaction patterns rather than just raw database entries.

In a typical Smallworld environment, an operator might perform a "trace" or a "connectivity check." The logic for how that data is displayed—the symbology, the conditional visibility of layers, and the multi-pane attribute editors—is often hard-coded into the UI layer. Attempting to manually document and rewrite these screens takes an average of 40 hours per screen. With Replay, this is reduced to 4 hours.

The Modernization Stagnation#

Industry experts recommend that utilities modernize their GIS interfaces every 5-7 years to keep pace with cybersecurity requirements and workforce expectations. Yet, the average enterprise rewrite timeline is 18 months, leading many to avoid the process entirely. This avoidance leads to "UI Rot," where the backend data is accurate, but the frontend is so cumbersome that it causes operational delays.

MetricManual RewriteReplay Visual Reverse Engineering
Time per Screen40 Hours4 Hours
Documentation Accuracy30-40% (Manual)99% (Automated)
Success Rate30% (70% fail or exceed timeline)95%+
Cost per ComponentHigh (Senior Dev + Subject Matter Expert)Low (Automated Generation)
Knowledge TransferRelies on "Tribal Knowledge"Built-in AI Documentation

Why "Smallworld Legacy Recovering Visual" Data is Hard to Extract#

Smallworld isn't like a standard CRUD (Create, Read, Update, Delete) application. It is a spatial engine. When you look at a Smallworld UI, you are seeing a sophisticated orchestration of:

  1. Topology Rules: How a transformer connects to a busbar.
  2. Symbology Engines: How an asset changes color based on its "Outage" status.
  3. Contextual Menus: Magik GUI components that change based on the selected object's class.

Video-to-code is the process of using computer vision and AI to record these interactions and transform them into functional, structured code. This is exactly how Replay bridges the gap. By recording a user performing a "Gas Leak Analysis" workflow in Smallworld, Replay identifies the UI patterns, the data entry fields, and the spatial triggers, converting them into a modern React-based Design System.

The Risk of Missing Documentation#

With 67% of legacy systems lacking documentation, utility companies often don't even know the full extent of their UI's logic. If you lose the one developer who knows how the "Electric Trace" dialog was built in 2004, you lose the business logic. Recovering this visual logic through recording ensures that the "As-Is" state is perfectly captured before the "To-Be" state is designed.

Read more about documenting legacy systems


Implementing the Transition: From Magik to React#

When we talk about smallworld legacy recovering visual assets, we are essentially talking about creating a bridge between the Smallworld Core Spatial Technology (CST) and a modern frontend.

Below is an example of how a complex Smallworld attribute editor—which might have been a nested Magik GUI—is transformed into a clean, type-safe React component by Replay’s AI Automation Suite.

Code Example: Legacy Attribute Inspector to React#

In the legacy system, this might have been a series of

text
magik
frames. In the modern stack, we want a modular, accessible component.

typescript
// Generated by Replay - Smallworld Asset Inspector Component import React, { useState } from 'react'; import { AssetProps, ConnectivityStatus } from './types'; export const EquipmentInspector: React.FC<AssetProps> = ({ assetData, onUpdate }) => { const [status, setStatus] = useState<ConnectivityStatus>(assetData.status); // Recovered Visual Logic: Conditional rendering based on Asset Type const renderSpatialDetails = () => { if (assetData.type === 'TRANSFORMER') { return ( <div className="p-4 bg-slate-100 rounded-md"> <h4 className="text-sm font-bold">Secondary Voltage: {assetData.voltage}kV</h4> <p className="text-xs">Phase: {assetData.phaseConfiguration}</p> </div> ); } return null; }; return ( <div className="flex flex-col space-y-4 border-l-4 border-blue-600 p-6 shadow-lg"> <header className="flex justify-between items-center"> <h2 className="text-xl font-semibold">Asset ID: {assetData.id}</h2> <span className={`badge ${status === 'Active' ? 'bg-green-500' : 'bg-red-500'}`}> {status} </span> </header> {renderSpatialDetails()} <div className="grid grid-cols-2 gap-4"> <button onClick={() => onUpdate({ ...assetData, status: 'Active' })} className="btn-primary" > Activate </button> <button onClick={() => onUpdate({ ...assetData, status: 'Maintenance' })} className="btn-secondary" > Flag for Repair </button> </div> </div> ); };

Handling Spatial Context in Modern Web#

One of the hardest parts of smallworld legacy recovering visual logic is maintaining the "Spatial Context." In Smallworld, clicking an object in the map updates the "Trail" or the "Object Inspector."

Replay’s "Flows" feature allows architects to map these multi-screen interactions. When a user records a workflow where clicking a map point opens a specific report, Replay identifies that relationship and generates the necessary state management code in React (e.g., using Redux or Zustand).


The Replay Workflow for Utilities#

The path to a modernized GIS doesn't have to take two years. By focusing on visual reverse engineering, utilities can bypass the "Magik bottleneck."

  1. Record: An SME (Subject Matter Expert) records themselves performing standard operations in Smallworld—for example, a "New Service Connection."
  2. Analyze: Replay analyzes the recording, identifying buttons, map viewports, data grids, and modal dialogs.
  3. Generate: Replay produces a "Blueprint"—a high-fidelity design—and the corresponding React code.
  4. Refine: Developers use the Replay AI Automation Suite to tweak the code to match the utility's specific API endpoints (like GE GSS or Smallworld Web Services).

Comparison: Manual vs. Replay Architecture#

According to Replay's analysis, the most significant time-sink in GIS modernization is "Requirement Gathering." In a manual rewrite, developers spend months interviewing users to understand what a specific button does. With Replay, the recording is the requirement.

PhaseManual Approach (Weeks)Replay Approach (Weeks)
Discovery & Documentation12-16 Weeks1-2 Weeks
UI Design System Creation8-10 WeeksAutomated (Days)
Frontend Component Coding24-30 Weeks4-6 Weeks
UAT & Bug Fixing12 Weeks3 Weeks
Total Timeline~18 Months~2-3 Months

Visualizing Spatial Relationships with TypeScript#

When smallworld legacy recovering visual data is ported to React, maintaining type safety is crucial for utility reliability. We don't just want "divs" on a screen; we want a structured representation of the utility network.

typescript
// Replay Blueprint Output: Spatial Relationship Interface interface SmallworldObject { handle: string; external_id: string; geometry_type: 'point' | 'chain' | 'area'; attributes: Record<string, any>; } interface ConnectivityTrace { startNode: string; maxDistance: number; includeDeenergized: boolean; } /** * Replay's AI Automation Suite identifies the visual state * of the trace tool and generates the corresponding logic. */ export async function executeTrace(params: ConnectivityTrace): Promise<SmallworldObject[]> { // Logic recovered from legacy UI interaction patterns console.log(`Executing trace from ${params.startNode}...`); // API Call to Smallworld Web Services (GSS) would go here return []; }

By using Replay, the "Smallworld legacy recovering visual" process ensures that the frontend is decoupled from the legacy backend, allowing for a phased migration. You can keep your Smallworld database and Magik business logic intact while providing your field crews with a modern, responsive, and mobile-friendly React UI.

Learn more about our AI Automation Suite


Strategic Benefits for Regulated Industries#

Utilities, healthcare, and government agencies face unique hurdles. Security is paramount. Replay is built for these environments, offering SOC2 compliance and HIPAA-ready workflows. For utilities concerned about data sovereignty, Replay offers an On-Premise deployment model, ensuring that recordings of sensitive network infrastructure never leave the corporate firewall.

Eliminating the "18-Month Curse"#

The 18-month average enterprise rewrite timeline is a death sentence for innovation. By the time the new system is launched, the technology stack is already aging, and the business requirements have shifted. By using smallworld legacy recovering visual techniques, Replay compresses this timeline by 70%, allowing utilities to iterate in real-time.

Preserving Tribal Knowledge#

The "Great Resignation" and an aging workforce mean that the people who built the original Smallworld implementations are retiring. Replay acts as a knowledge preservation tool. By recording their workflows today, you are documenting the "visual logic" of your utility for the next generation of engineers.


Frequently Asked Questions#

How does Replay handle the complex mapping components of Smallworld?#

Replay recognizes map viewports as specialized containers. While it generates the React UI for the surrounding controls (layers, zoom, search, attribute editors), it provides "Blueprints" for how these controls should interact with modern mapping libraries like OpenLayers, MapLibre, or ArcGIS Maps SDK for JavaScript. This ensures the smallworld legacy recovering visual logic is maintained in the transition.

Can Replay convert Magik code directly into React?#

No, and for good reason. Magik and React operate on fundamentally different paradigms. Instead of a direct code translation—which often results in "spaghetti code"—Replay uses Visual Reverse Engineering. It looks at the output and behavior of the Magik UI and generates clean, modern React code that achieves the same result. This avoids carrying over 30 years of technical debt.

Is Replay secure enough for critical utility infrastructure?#

Yes. Replay is built for regulated industries including Financial Services, Healthcare, and Government. We offer SOC2 compliance, and for highly sensitive GIS data, we provide an on-premise version of the platform. This allows your team to perform the smallworld legacy recovering visual process entirely within your own secure network.

What happens if our Smallworld UI has no documentation?#

This is the most common scenario Replay encounters. Since 67% of legacy systems lack documentation, Replay is designed to create documentation from scratch. By recording the UI in action, Replay's AI Automation Suite generates a comprehensive "Library" and "Flows" map, effectively documenting your system as you use it.

How much time can we really save on a Smallworld modernization project?#

On average, Replay users see a 70% reduction in modernization time. For a typical utility screen that would take 40 hours to manually analyze, design, and code, Replay can produce a production-ready React component in about 4 hours. This shifts the project timeline from 18-24 months down to a matter of weeks or months.


The Future of GIS is Visual#

The era of "Rip and Replace" is over. It is too expensive, too risky, and too slow. The future of utility GIS lies in Visual Reverse Engineering. By focusing on the smallworld legacy recovering visual logic, organizations can unlock the value of their Smallworld data without being held hostage by outdated UI frameworks.

Replay provides the bridge. By turning video into code, we empower Enterprise Architects to modernize their stacks with confidence, ensuring that the critical spatial logic that keeps the lights on is preserved, documented, and ready for the next 20 years.

Ready to modernize without rewriting? Book a pilot with Replay

Ready to try Replay?

Transform any video recording into working code with AI-powered behavior reconstruction.

Launch Replay Free