Skip to content
pluridPublic

About

Explore Information as a 3D Structure

Topics

Resources

Contributing

Stars

23 stars

Watchers

3 watching

Forks

Repository files navigation



License: DEL

plurid'

a 3D spatial engine for the web — planes are pages

A plane is a piece of content: a page, a note, a fragment, any React component. The space is a CSS-3D scene the planes float in, which you orbit, pan and zoom. A plane can link to another; following the link opens the target as a new plane behind the first one and swings the camera to it, so what you came from stays in view instead of being replaced.

plurid' is an engine, not an app. The host decides what the space is for; the engine gives it a layered control surface: one configuration object for the common case, a pub/sub bus to drive and observe it, typed hooks and a handle for the host's own code, and onReady(api) down to the store when nothing else fits. Planes are real DOM under CSS 3D transforms, so content stays selectable, accessible and styleable; there is no WebGL and no canvas.

Contents

A site first

The engine can look like an ordinary site until the reader asks for more. In the page presentation every plane is the size of the view and the camera is docked on the first one: face-on, at scale one, filling the view to the pixel. It scrolls like a page, the engine's chrome stays out of the picture, and a small rail at the corner is the only sign of the space behind it.

npm install @plurid/plurid-react react react-dom styled-components
import React from 'react';
import { PluridApplication, PluridLink, PluridReactPlane, definePluridConfiguration } from '@plurid/plurid-react';

const Home = () => (
    <article>
        <h1>An ordinary page</h1>
        <p>Scroll it, select its text, tab through it. <PluridLink route="/about">About →</PluridLink></p>
    </article>
);
const About = () => <article><h1>About</h1></article>;

const planes: PluridReactPlane[] = [
    { route: '/', component: Home },
    { route: '/about', component: About },
];

const configuration = definePluridConfiguration({ presentation: 'page' });

export const App = () => (
    <PluridApplication planes={planes} view={['/']} configuration={configuration} />
);

Follow the link and the about page opens behind the site, the camera swinging to it: a page again. Press G, pinch, or click the rail's cube and the page pulls back and tilts into the space it was always in; the back chevron or Escape brings a page back. There is no mode flag anywhere: the pose of the camera is the whole state, and every door into the space is a configuration knob (docking).

A space

Without the presentation the same engine is a space of planes arranged by a layout:

const planes: PluridReactPlane[] = [
    { route: '/one',   component: () => <div style={page}>Plane one</div> },
    { route: '/two',   component: () => <div style={page}>Plane two</div> },
    { route: '/three', component: () => <div style={page}>Plane three</div> },
];
const page = { padding: 24, height: '100%', background: '#0d0f12', color: '#cfe6ff' } as const;

export const App = () => <PluridApplication planes={planes} view={['/one', '/two', '/three']} />;

Drag the empty space to orbit, scroll to zoom, right-drag to pan, hold Space to grab from anywhere. Over a plane a drag is the page's (text selection, scrolling) unless you grab. Undo and the shortcuts are on by default; persistence, collaboration, culling, snapping and the rest are opt-in, and every one of them, gestures, layouts and the chrome included, is a documented knob (docs/CONTROL_SURFACE.md).

The model

Concept What it is
Plane A unit of content addressed by a route: real DOM on a 3D-positioned sheet.
Space The scene that holds the planes: orbit, pan, zoom, fly.
View The routes shown at the start; the layout arranges them.
Link A connection between planes; following it spawns the target behind its parent, joined by a bridge.
Camera One value: yaw, pitch, scale, pivot, offset. Docked on a page or free in the space.
Viewpoint The camera encoded as a short string, for share links and saved views.
Anchor · Tour A camera named by a plane (its path and a pose in its frame), so it moves with the plane; a tour plays anchored stops, pauses on the reader's input and resumes where the plane is now.
Pinned plane · Stack A plane lifted onto the screen above the space, still while the camera moves, and put back into the space where its frame is, its content never remounted; a stack sets planes one behind another, facing the reader, every title showing, and puts each back exactly.
Occlusion When the camera rests on a plane, the planes standing in front of it fade and let the pointer through, until the camera moves again.
Universe · Cluster Higher groupings of spaces, for multi-space arrangements.
Look The chrome's design tokens: twelve presets derived from a few colours, overridable from CSS, replaceable piece by piece.

Documentation

Read For
docs/GETTING_STARTED.md Use the engine: a site first, a space, planes, links, configuration, persistence, the viewpoint.
docs/CONTROL_SURFACE.md Every knob and seam with a snippet, tiered from the escape hatch to the granular options.
docs/ARCHITECTURE.md How it works: the packages, the render pipeline, the camera and state model, docking, the pub/sub wire, SSR.
docs/SHORTCUTS.md · docs/CHANGES.md · docs/HARNESS.md · docs/LOOKS.md Generated from the data tables: every key and gesture; every kind a space.changed carries; every flag and fixture of the harness; every look and token.
docs/DESIGN.md The chrome's vocabulary (pill, panel, line) and its rules; what a new piece of chrome must do.
examples/ Runnable references: minimal, control-surface and custom-chrome.
docs/CONTRIBUTING.md Work on the engine: the layout, the gates, the harness, the traps.
docs/CONTEXT-MAP.md Which packages are live, legacy or archived, and which gates cover each.
docs/README.md The document map and its authority order; the roadmaps and the audit live there too.

Packages

plurid-data ──► plurid-engine ──► plurid-react ──► (your app)
  (types,        (plane tree,      (render adapter,
   constants)     layout, routing,   controls, links)
                  camera math)     └► plurid-react-server (SSR / static stills)
                                        └► plurid-kit (plurid.config.ts + CLI + bootstraps)
plurid-pubsub ──────────────────────► (host ↔ engine event bridge)
Package Role
@plurid/plurid-data Shared types, constants, defaults, the data tables.
@plurid/plurid-engine The plane tree, layouts, routing, the camera and docking math. Framework-agnostic.
@plurid/plurid-pubsub The publish/subscribe bus.
@plurid/plurid-react The React adapter: the application, the planes, the links, the chrome, the hooks, and a testing entry for the host's own suites.
@plurid/plurid-react-server Server rendering and static "stills" for the React adapter.
@plurid/plurid-kit The framework layer: plurid.config.ts, the plurid CLI, client and server bootstraps. Published as a pre-release; npx @plurid/generate-plurid-app starts an application on it (docs/FRAMEWORK_PLAN.md).
@plurid/plurid-{themes,icons-react,ui-components-react,ui-state-react,functions,functions-react} Supporting utilities.
@plurid/generate-plurid-app The scaffolding CLI: a plurid-kit application in one command.

React 19 · TypeScript 6 · Node 22 or later. Legacy and experimental packages are listed in docs/CONTEXT-MAP.md.

Develop

A pnpm workspace. One command runs every gate in order:

pnpm install
pnpm verify        # build → release-tooling tests → type-check → unit tests → lint → module check → size → docs tables → browser suite → smoke pack

The gates one at a time:

pnpm build         # every package (tsup: ESM + CJS + d.ts)
pnpm check         # tsc --noEmit in every package
pnpm test          # jest across the workspace
pnpm lint          # one flat-config ESLint pass
pnpm e2e           # the browser suite: Playwright against the harness, plus the visual baselines
pnpm docs.tables   # regenerate docs/SHORTCUTS.md, docs/CHANGES.md, docs/HARNESS.md and docs/LOOKS.md from the data tables

The harness at fixtures/render-test is the engine running for real: a catalog of fixtures, every option a query flag, a setup panel that edits the URL, and the scenes the browser suite and the visual baselines are taken from.

pnpm --filter plurid-render-test dev       # Vite on http://localhost:5273 — try ?presentation=page&pages=1

The workflow, the build order and the traps are in docs/CONTRIBUTING.md.

License

DEL (delicense) · versioning with αver · Codeophon.

About

Explore Information as a 3D Structure

Topics

Resources

Contributing

Stars

23 stars

Watchers

3 watching

Forks

Used by

Contributors

Languages