# Object Spatial Map - Draw Jac Object-Spatial Graphs Online

> Free online editor for Jac-style object-spatial models. Draw nodes, walkers, objects and edges on a canvas, edit typed properties, autosave in your browser and import or export the graph as JSON.

- URL: https://www.xapplaxy.com/pages/en/object-spatial-map/
- Type: Apps
- Category: utility
- Published: 2026-11-17
- Languages: en, de

_This page hosts an interactive tool. Open https://www.xapplaxy.com/pages/en/object-spatial-map/ in a browser to use it._

**Object Spatial Map** is a free online graph editor that helps you **sketch object-spatial models in the style of Jac’s Object-Spatial Programming (OSP)**: nodes connected by edges, walkers that travel through the graph, and objects that carry data.

This tool allows you to:

-   Place **nodes, walkers and objects** on a canvas
-   **Drag connections** from one element to another to create edges
-   Edit **names, archetypes, relationships and typed properties** in the properties drawer
-   **Autosave** the graph in your browser and **export or import** it as JSON

It is designed to be **fast, visual and private**: everything runs in your browser.

## How the Object Spatial Map Works

Using the tool is straightforward.

1.  Click **Add node**, **Add walker** or **Add object** in the toolbar, or double-click an empty spot on the canvas to add a node.
2.  Drag from the **round handle** on the right side of an element and release it over another element. An edge is created, and its relationship is chosen from the two archetypes (a walker **spawns at** a node, anything linked to an object **has** it, two nodes are **connected**).
3.  Click an element or an edge to open it in the **Properties** drawer. Change its name, archetype or relationship, mark an edge as directed or undirected, and add **properties (has)** with a key, a Jac type (`str`, `int`, `float`, `bool`, `list`, `dict`) and an optional default value.
4.  Drag elements to arrange the layout. Drag the background to pan, and use the zoom buttons, **Fit**, or Ctrl/Cmd + mouse wheel to zoom.
5.  Use **Export JSON** to download the graph and **Import JSON** to load it again.

Every change is **saved automatically** in your browser’s local storage, so the graph is still there when you come back.

## What This Tool Shows

Depending on your graph, the tool displays:

-   **The graph itself**: nodes as rounded boxes, walkers as pills, objects as dashed boxes, and edges coloured by relationship (connects, spawns at, has) with arrows for directed edges
-   **Counts** of nodes, walkers, objects and edges
-   **Model checks** that point out problems, for example a walker used as the target of an edge, a “connects” edge attached to an object, an unreachable node, duplicate names, names that are not valid identifiers, and property values that do not match their type

The **Copy** button copies a text summary of the graph, a list of its relationships and a Jac-style sketch of every archetype with its `has` properties.

## The Object-Spatial Model in Short

Object-Spatial Programming turns the usual object-oriented model around: instead of calling methods on objects, **walkers travel to nodes** and their abilities run when they arrive.

-   **Nodes** are discrete locations in the graph that hold data and local abilities.
-   **Edges** are first-class relationships between nodes and can carry their own state.
-   **Walkers** are mobile agents that move from node to node instead of being invoked.
-   **Objects** (`obj`) are encapsulated data types used inside the spatial model.

Object Spatial Map lets you draw this structure before you write the code.

## Why Use This Tool

Using **Object Spatial Map** helps you:

-   Plan a Jac application’s graph before writing code
-   Explain an object-spatial design to teammates or students
-   Catch modelling mistakes early with the built-in checks
-   Keep designs as plain JSON files that are easy to share and version

## Try the Object Spatial Map

Start with the sample Pooyan model in the editor above (the arcade game, mapped as cliff, sky, gondola, wolves, arrows and balloons), or click **New graph** to begin from scratch.

No signup required.  
Works instantly in your browser.

## Frequently Asked Questions

### What does the Object Spatial Map do?

It is a visual editor for object-spatial graphs. You draw nodes, walkers and objects, connect them with edges, give each element typed properties, and save or share the result as JSON.

### What is the difference between a node, a walker and an object?

A **node** is a place in the graph. A **walker** is an agent that moves through the graph and acts on the nodes it visits. An **object** is a plain data type. In the editor, they are drawn as a rounded box, a pill and a dashed box.

### What do the edge relationships mean?

**Connects** is a traversable edge between two nodes. **Spawns at** marks the node where a walker starts its traversal. **Has** means the source holds or uses an object as data. You can change the relationship and the direction of any edge in the properties drawer.

### Where is my graph saved?

The graph is saved automatically in your browser’s **local storage** on this device. It is not uploaded anywhere. Clearing your browser data removes it, so use **Export JSON** to keep a copy.

### Can I load a graph I exported earlier?

Yes. Click **Import JSON** and choose the file. The graph replaces the current one and the view zooms to fit it. Files that are not valid JSON or have no `nodes` list are rejected with a message.

### Does it generate runnable Jac code?

No. The **Copy** button gives you a Jac-style sketch of the archetypes and their `has` fields as a starting point, but abilities and walker logic still have to be written by hand.

### Can I use this tool on mobile devices?

Yes. The canvas supports touch for dragging elements, panning and creating connections, and the properties drawer moves below the canvas on small screens.

### Is this tool a substitute for professional advice?

No. This tool is intended for **design, learning and general-use purposes only**.
