กลับไปหน้า Tools

GetNotes Tools

pascalorg/editor

Tool นี้คืออะไร

Pascal Editor เป็นเครื่องมือแก้ไขโมเดล 3 มิติที่สร้างด้วย React Three Fiber และ WebGPU เหมาะสำหรับนักพัฒนาที่ต้องการสร้างแอปพลิเคชันแก้ไขโมเดล 3 มิติ โดยมีประโยชน์ในการจัดการสถานะฉาก การเรนเดอร์ 3 มิติ และเครื่องมือแก้ไขแบบโต้ตอบ

ข้อมูลโปรเจกต์

ดาว

19.1K

Forks

2.6K

License

MIT

อัปเดต GitHub ล่าสุด

28 ก.ค. 2569

เพิ่มใน GetNotes

30 ก.ค. 2569

Repository

pascalorg/editor

เหมาะกับอาชีพ

Ecosystem

TypeScript

แปลและเรียบเรียงโดย AI

เนื้อหาฉบับภาษาไทย

ใช้อ่านเพื่อทำความเข้าใจเบื้องต้น โปรดตรวจสอบรายละเอียดสำคัญกับเอกสารต้นฉบับด้านล่าง

Pascal Editor

เครื่องมือแก้ไขโมเดล 3 มิติที่สร้างด้วย React Three Fiber และ WebGPU

MIT License npm @pascal-app/core npm @pascal-app/viewer Discord X (Twitter)

https://github.com/user-attachments/assets/8b50e7cf-cebe-4579-9cf3-8786b35f7b6b

การใช้งานแพ็กเกจที่เผยแพร่

รันไทม์ของ viewer และ node definitions ที่มาพร้อมเครื่องมือจะถูกแยกเป็นแพ็กเกจต่างหาก ติดตั้งชุด viewer ที่มาพร้อมเครื่องมือทั้งหมด จากนั้นโหลดปลั๊กอินที่มาพร้อมเครื่องมือหนึ่งครั้งก่อนที่จะ mount <Viewer>:

bash
npm install @pascal-app/core @pascal-app/viewer @pascal-app/editor @pascal-app/nodes
typescript
import { loadPlugin } from '@pascal-app/core'
import { builtinPlugin } from '@pascal-app/nodes'

await loadPlugin(builtinPlugin)

ดู @pascal-app/viewer quick start สำหรับตัวอย่าง React

สถาปัตยกรรมของ Repository

นี่คือ Turborepo monorepo ที่มีแพ็กเกจรันไทม์หลักสี่แพ็กเกจ:

code
editor/
├── apps/
│   └── editor/          # แอปพลิเคชัน Next.js
├── packages/
│   ├── core/            # Schemas, สถานะฉาก, และ registry contracts
│   ├── viewer/          # รันไทม์การเรนเดอร์ 3D และระบบที่ใช้ร่วมกัน
│   ├── editor/          # เครื่องมือแก้ไขและส่วนประกอบ UI
│   ├── nodes/           # Node definitions, renderers, และระบบที่มาพร้อมเครื่องมือ
│   └── ui/              # ส่วนประกอบ UI ที่ใช้ร่วมกัน

การแยกความรับผิดชอบ

แพ็กเกจความรับผิดชอบ
@pascal-app/coreNode schemas, สถานะฉาก (Zustand), registry contracts, การสอบถามเชิงพื้นที่, และ event bus
@pascal-app/viewerการเรนเดอร์ 3D ผ่าน React Three Fiber, ระบบเรนเดอร์ที่ใช้ร่วมกัน, กล้อง/การควบคุมเริ่มต้น, และ post-processing
@pascal-app/editorเครื่องมือแก้ไข, แผงควบคุม, การเลือก, และ UI สำหรับการจัดการโดยตรง
@pascal-app/nodesปลั๊กอิน registry ที่มาพร้อมเครื่องมือพร้อม node definitions, renderers, geometry, และระบบ
apps/editorโฮสต์ Next.js แบบสแตนด์อโลนสำหรับแพ็กเกจ editor

viewer จะเรนเดอร์ฉากด้วยค่าเริ่มต้นที่เหมาะสม editor จะขยายความสามารถด้วยเครื่องมือแบบโต้ตอบ การจัดการการเลือก และความสามารถในการแก้ไข

Stores

แต่ละแพ็กเกจมี Zustand store ของตัวเองสำหรับจัดการสถานะ:

Storeแพ็กเกจความรับผิดชอบ
useScene@pascal-app/coreข้อมูลฉาก: nodes, root IDs, dirty nodes, การดำเนินการ CRUD บันทึกไปยัง IndexedDB พร้อม undo/redo ผ่าน Zundo
useViewer@pascal-app/viewerสถานะ viewer: การเลือกปัจจุบัน (building/level/zone IDs), โหมดการแสดงผลระดับ (stacked/exploded/solo), โหมดกล้อง
useEditorapps/editorสถานะ editor: เครื่องมือที่ใช้งานอยู่, การมองเห็นเลเยอร์โครงสร้าง, สถานะแผงควบคุม, การตั้งค่าเฉพาะ editor

รูปแบบการเข้าถึง:

typescript
// Subscribe to state changes (React component)
const nodes = useScene((state) => state.nodes)
const levelId = useViewer((state) => state.selection.levelId)
const activeTool = useEditor((state) => state.tool)

// Access state outside React (callbacks, systems)
const node = useScene.getState().nodes[id]
useViewer.getState().setSelection({ levelId: 'level_123' })

แนวคิดหลัก

Nodes

Nodes คือข้อมูลพื้นฐานที่อธิบายฉาก 3 มิติ Nodes ทั้งหมดจะขยาย BaseNode:

typescript
BaseNode {
  id: string              // สร้างอัตโนมัติพร้อมคำนำหน้าประเภท (เช่น "wall_abc123")
  type: string            // ตัวแยกประเภทสำหรับการจัดการแบบ type-safe
  parentId: string | null // การอ้างอิงถึง node แม่
  visible: boolean
  camera?: Camera         // ตำแหน่งกล้องที่บันทึกไว้ (ไม่บังคับ)
  metadata?: JSON         // เมตาดาต้าตามอำเภอใจ (เช่น { isTransient: true })
}

ลำดับชั้นของ Node:

code
Site
└── Building
    └── Level
        ├── Wall → Item (doors, windows)
        ├── Slab
        ├── Ceiling → Item (lights)
        ├── Roof
        ├── Zone
        ├── Scan (3D reference)
        └── Guide (2D reference)

Nodes ถูกเก็บไว้ใน flat dictionary (Record<id, Node>) ไม่ใช่ tree แบบซ้อนกัน ความสัมพันธ์แบบพ่อ-ลูกถูกกำหนดผ่าน parentId และอาร์เรย์ children


สถานะฉาก (Zustand Store)

ฉากถูกจัดการโดย Zustand store ใน @pascal-app/core:

typescript
useScene.getState() = {
  nodes: Record<id, AnyNode>,  // Nodes ทั้งหมด
  rootNodeIds: string[],       // Nodes ระดับบนสุด (sites)
  dirtyNodes: Set<string>,     // Nodes ที่รอการอัปเดตระบบ

  createNode(node, parentId),
  updateNode(id, updates),
  deleteNode(id),
}

Middleware:

  • Persist - บันทึกไปยัง IndexedDB (ไม่รวม transient nodes)
  • Temporal (Zundo) - Undo/redo พร้อมประวัติ 50 ขั้นตอน

Scene Registry

registry จะแมป ID ของ node กับออบเจกต์ Three.js เพื่อการค้นหาที่รวดเร็ว:

typescript
sceneRegistry = {
  nodes: Map<id, Object3D>,    // ID → ออบเจกต์ 3D
  byType: {
    wall: Set<id>,
    item: Set<id>,
    zone: Set<id>,
    // ...
  }
}

Renderers จะลงทะเบียน refs ของตนโดยใช้ hook useRegistry:

tsx
const ref = useRef<Mesh>(null!)
useRegistry(node.id, 'wall', ref)

สิ่งนี้ช่วยให้ระบบสามารถเข้าถึงออบเจกต์ 3D ได้โดยตรงโดยไม่ต้องสำรวจ scene graph


Node Renderers

Renderers คือส่วนประกอบ React ที่สร้างออบเจกต์ Three.js สำหรับแต่ละประเภทของ node:

code
SceneRenderer
└── NodeRenderer (dispatches by type)
    ├── BuildingRenderer
    ├── LevelRenderer
    ├── WallRenderer
    ├── SlabRenderer
    ├── ZoneRenderer
    ├── ItemRenderer
    └── ...

รูปแบบ:

  1. 1Renderer สร้าง mesh/group ตัวยึด
  2. 2ลงทะเบียนกับ useRegistry
  3. 3ระบบอัปเดต geometry ตามข้อมูล node

ตัวอย่าง (แบบง่าย):

tsx
const WallRenderer = ({ node }) => {
  const ref = useRef<Mesh>(null!)
  useRegistry(node.id, 'wall', ref)

  return (
    <mesh ref={ref}>
      <boxGeometry args={[0, 0, 0]} />  {/* ถูกแทนที่โดย WallSystem */}
      <meshStandardMaterial />
      {node.children.map(id => <NodeRenderer key={id} nodeId={id} />)}
    </mesh>
  )
}

Systems

Systems คือส่วนประกอบ React ที่ทำงานใน render loop (useFrame) เพื่ออัปเดต geometry และ transforms พวกมันประมวลผล dirty nodes ที่ถูกทำเครื่องหมายโดย store

Core Systems (ใน @pascal-app/core):

Systemความรับผิดชอบ
WallSystemสร้าง geometry ของผนังด้วย mitering และ CSG cutouts สำหรับประตู/หน้าต่าง
SlabSystemสร้าง geometry ของพื้นจาก polygons
CeilingSystemสร้าง geometry ของเพดาน
RoofSystemสร้าง geometry ของหลังคา
ItemSystemจัดตำแหน่ง items บนผนัง เพดาน หรือพื้น (slab elevation)

Viewer Systems (ใน @pascal-app/viewer):

Systemความรับผิดชอบ
LevelSystemจัดการการมองเห็นระดับและการจัดตำแหน่งแนวตั้ง (โหมด stacked/exploded/solo)
ScanSystemควบคุมการมองเห็นการสแกน 3D
GuideSystemควบคุมการมองเห็นภาพ guide

รูปแบบการประมวลผล:

typescript
useFrame(() => {
  for (const id of dirtyNodes) {
    const obj = sceneRegistry.nodes.get(id)
    const node = useScene.getState().nodes[id]

    // อัปเดต geometry, transforms, ฯลฯ
    updateGeometry(obj, node)

    dirtyNodes.delete(id)
  }
})

Dirty Nodes

เมื่อ node เปลี่ยนแปลง มันจะถูกทำเครื่องหมายเป็น dirty ใน useScene.getState().dirtyNodes Systems จะตรวจสอบชุดนี้ในแต่ละเฟรมและจะคำนวณ geometry ใหม่เฉพาะสำหรับ dirty nodes เท่านั้น

typescript
// อัตโนมัติ: createNode, updateNode, deleteNode ทำเครื่องหมาย nodes ว่า dirty
useScene.getState().updateNode(wallId, { thickness: 0.2 })
// → wallId ถูกเพิ่มไปยัง dirtyNodes
// → WallSystem สร้าง geometry ใหม่ในเฟรมถัดไป
// → wallId ถูกลบออกจาก dirtyNodes

การทำเครื่องหมายด้วยตนเอง:

typescript
useScene.getState().dirtyNodes.add(wallId)

Event Bus

การสื่อสารระหว่างส่วนประกอบใช้ typed event emitter (mitt):

typescript
// Node events
emitter.on('wall:click', (event) => { ... })
emitter.on('item:enter', (event) => { ... })
emitter.on('zone:context-menu', (event) => { ... })

// Grid events (พื้นหลัง)
emitter.on('grid:click', (event) => { ... })

// Event payload
NodeEvent {
  node: AnyNode
  position: [x, y, z]
  localPosition: [x, y, z]
  normal?: [x, y, z]
  stopPropagation: () => void
}

Spatial Grid Manager

จัดการการตรวจจับการชนและการตรวจสอบตำแหน่ง:

typescript
spatialGridManager.canPlaceOnFloor(levelId, position, dimensions, rotation)
spatialGridManager.canPlaceOnWall(wallId, t, height, dimensions)
spatialGridManager.getSlabElevationAt(levelId, x, z)

ใช้โดยเครื่องมือจัดวาง item เพื่อตรวจสอบตำแหน่งและคำนวณระดับความสูงของ slab


สถาปัตยกรรม Editor

เอดิเตอร์ขยายความสามารถของวิวเวอร์ด้วย:

เครื่องมือ

เครื่องมือจะถูกเปิดใช้งานผ่านแถบเครื่องมือและจัดการอินพุตของผู้ใช้สำหรับการดำเนินการเฉพาะ:

  • SelectTool - การเลือกและการจัดการ
  • WallTool - วาดผนัง
  • ZoneTool - สร้างโซน
  • ItemTool - วางเฟอร์นิเจอร์/อุปกรณ์ติดตั้ง
  • SlabTool - สร้างแผ่นพื้น

ตัวจัดการการเลือก (Selection Manager)

เอดิเตอร์ใช้ตัวจัดการการเลือกแบบกำหนดเองพร้อมการนำทางแบบลำดับชั้น:

code
Site → Building → Level → Zone → Items

แต่ละระดับความลึกมีกลยุทธ์การเลือกของตัวเองสำหรับพฤติกรรมการโฮเวอร์/คลิก

ระบบเฉพาะของเอดิเตอร์

  • ZoneSystem - ควบคุมการมองเห็นโซนตามโหมดระดับ
  • การควบคุมกล้องแบบกำหนดเองพร้อมการโฟกัสโหนด

การไหลของข้อมูล (Data Flow)

code
User Action (click, drag)
       ↓
Tool Handler
       ↓
useScene.createNode() / updateNode()
       ↓
Node added/updated in store
Node marked dirty
       ↓
React re-renders NodeRenderer
useRegistry() registers 3D object
       ↓
System detects dirty node (useFrame)
Updates geometry via sceneRegistry
Clears dirty flag

การสร้างปลั๊กอิน

เอดิเตอร์สามารถขยายได้: ปลั๊กอินจะจัดส่งชนิดของโหนด (schema, การเรนเดอร์ 3D/2D, เครื่องมือจัดวาง, inspector parametrics) และแผงด้านซ้ายผ่าน Plugin manifest เดียวกันกับที่บิลต์อินใช้ — ไม่มี API ภายในแยกต่างหาก

  • คู่มือสำหรับนักพัฒนา — สร้างปลั๊กอิน: รูปแบบของ Plugin, การมีส่วนร่วมของแผง, การค้นพบ, วงจรชีวิต และสิ่งที่อยู่ใน/นอก v1
  • ตัวอย่างการทำงาน — pascalorg/plugin-trees: ปลั๊กอินแบบสแตนด์อโลนที่มีต้นไม้, ดอกไม้, หญ้าแบบโปรซีเดอรัล และแผงพรีเซ็ต โคลนไปใช้เป็นจุดเริ่มต้นได้

เทคโนโลยีที่ใช้ (Technology Stack)

  • React 19 + Next.js 16
  • Three.js (WebGPU renderer)
  • React Three Fiber + Drei
  • Zustand (state management)
  • Zod (schema validation)
  • Zundo (undo/redo)
  • three-bvh-csg (Boolean geometry operations)
  • Turborepo (monorepo management)
  • Bun (package manager)

การเริ่มต้นใช้งาน

การพัฒนา

รันเซิร์ฟเวอร์สำหรับการพัฒนาจาก root directory เพื่อเปิดใช้งาน hot reload สำหรับทุกแพ็กเกจ:

bash
# Install dependencies
bun install

# Run development server (builds packages + starts editor with watch mode)
bun dev

# This will:
# 1. Build @pascal-app/core and @pascal-app/viewer
# 2. Start watching both packages for changes
# 3. Start the Next.js editor dev server
# Open http://localhost:3002

สำคัญ: ควรรัน bun dev จาก root directory เสมอ เพื่อให้แน่ใจว่าตัวเฝ้าระวังแพ็กเกจกำลังทำงานอยู่ ซึ่งจะเปิดใช้งาน hot reload เมื่อคุณแก้ไขไฟล์ใน packages/core/src/ หรือ packages/viewer/src/

การสร้างสำหรับ Production

bash
# Build all packages
turbo build

# Build specific package
turbo build --filter=@pascal-app/core

การเผยแพร่แพ็กเกจ

bash
# Build packages
turbo build --filter=@pascal-app/core --filter=@pascal-app/viewer

# Publish to npm
npm publish --workspace=@pascal-app/core --access public
npm publish --workspace=@pascal-app/viewer --access public

ไฟล์สำคัญ

Pathคำอธิบาย
packages/core/src/schema/คำจำกัดความชนิดของโหนด (Zod schemas)
packages/core/src/store/use-scene.tsScene state store
packages/core/src/hooks/scene-registry/3D object registry
packages/core/src/systems/ระบบสร้าง Geometry
packages/viewer/src/components/renderers/ตัวเรนเดอร์โหนด
packages/viewer/src/components/viewer/คอมโพเนนต์ Viewer หลัก
apps/editor/components/tools/เครื่องมือเอดิเตอร์
apps/editor/store/สถานะเฉพาะของเอดิเตอร์

ผู้ร่วมให้ข้อมูล

Aymeric Rabot Wassim Samad Sudhir


pascalorg/editor | Trendshift

เอกสารโปรเจกต์

อ่านเอกสารต้นฉบับ

README วิธีติดตั้ง วิธีใช้งาน และข้อกำหนดจาก repository ต้นฉบับ

ดูไฟล์บน GitHub

Pascal Editor — open-source 3D architecture software for AECO

Create and edit 3D building models in your browser, run Pascal locally with its CLI, or connect AI agents through the Model Context Protocol (MCP).

Pascal Editor is a local-first, MIT-licensed building editor for architecture, engineering, construction, and operations (AECO) work. Model sites, buildings, levels, walls, slabs, roofs, openings, rooms, and furniture; bring 3D scans in as reference layers for scan-to-BIM workflows and model editable building elements over them; and let an agent read, edit, validate, and save the same scenes. Built with React Three Fiber and WebGPU.

MIT License npm @pascal-app/core npm @pascal-app/viewer npm @pascal-app/cli Discord X (Twitter)

https://github.com/user-attachments/assets/063c0891-9ae5-4173-bd08-a101d9c3352b

Start here

Connect an AI agent (MCP)

MCP is an open protocol that lets AI assistants call tools in other applications; Pascal's MCP server gives an agent tools to inspect, edit, validate, and save building scenes.

Choose where the projects live:

  • Local (no account) — the Pascal CLI runs an MCP service on your machine. Agents connect with pascal mcp connect, projects stay in ~/.pascal/data/pascal.db, and nothing is uploaded. No Pascal account or API key is needed.
  • Hosted workspace — https://editor.pascal.app/api/mcp works in your Pascal account or organization and needs that account's authorization. How a client authenticates depends on the client: the Cursor plugin uses browser sign-in, while Claude Code, Codex, and other clients send an API key created in Pascal Settings. Some hosted operations, such as Architect runs, consume Pascal credits.

The local commands below need the pascal command on your PATH (Node.js 22.23.4+ on 22.x, 24.22.1+ on 24.x, or 26.12.1+):

bash
npm install --global @pascal-app/cli
สำคัญ

Use one active agent client per local CLI service. The standalone local HTTP runtime shares active scene state between clients; use separate PASCAL_HOME directories and service processes when independent concurrent work is required. The hosted endpoint uses a separate session-isolated bridge.

Claude Code

Register the local server (this runs claude mcp add --scope user pascal -- pascal mcp connect):

bash
pascal mcp setup claude

Or install the plugin, which bundles the skills, the local pascal server, and a hosted pascal-hosted server that signs in through Pascal's browser OAuth flow from /mcp, with no API key (leave it unauthenticated to stay local-only):

text
/plugin marketplace add pascalorg/editor
/plugin install pascal-agent-skills@pascal

Use one or the other. Claude Code 2.1.258 loads both the user-scoped pascal server created by pascal mcp setup claude and the plugin-provided server. Remove the manual entry before reloading or restarting Claude Code so only the plugin owns the connection lifecycle:

bash
claude mcp remove --scope user pascal

Use /mcp to remove or disable any project- or local-scoped Pascal connection too. Leaving both connections active violates the one-active-agent-client-per-local-service requirement.

Cursor

Install Pascal from the Cursor marketplace. It adds the skills, a local pascal server launched through npx (no global install needed), and a hosted pascal-hosted server. For hosted work, open Customize → MCPs and choose Authenticate beside pascal-hosted; Pascal opens in your browser to sign in and choose a workspace. No API key is needed. Leave pascal-hosted disconnected for local-only work.

Without the plugin, add the servers you want to .cursor/mcp.json:

json
{
  "mcpServers": {
    "pascal": {
      "type": "stdio",
      "command": "npx",
      "args": ["--yes", "--package=@pascal-app/cli", "pascal", "mcp", "connect"]
    },
    "pascal-hosted": {
      "type": "http",
      "url": "https://editor.pascal.app/api/mcp",
      "auth": {
        "CLIENT_ID": "pascal-cursor",
        "scopes": ["openid", "profile", "offline_access", "scene:read", "scene:write", "architect:run"]
      }
    }
  }
}

The plugin's own configuration is .cursor-plugin/mcp.json.

Codex

Register the local server (this runs codex mcp add pascal -- pascal mcp connect):

bash
pascal mcp setup codex

Or install the plugin, which adds the skills and the same local server. Pascal's hosted OAuth sign-in does not accept the Codex client, so the plugin does not add the hosted server:

bash
codex plugin marketplace add pascalorg/editor
codex plugin add pascal-agent-skills@pascal

For a hosted workspace, register the endpoint with an API key held in an environment variable (Codex stores the variable name, not the key):

bash
codex mcp add pascal-hosted \
  --url https://editor.pascal.app/api/mcp \
  --bearer-token-env-var PASCAL_API_KEY

Other MCP clients

Print the generic configuration with pascal mcp config:

json
{
  "mcpServers": {
    "pascal": {
      "command": "pascal",
      "args": ["mcp", "connect"]
    }
  }
}

The connector discovers the local service's port and private token itself. Check it with pascal mcp status or pascal doctor. For hosted access, point a Streamable HTTP client at https://editor.pascal.app/api/mcp with an Authorization: Bearer <api key> header.

Agent skills

Install with skills

The plugins above include Pascal's public agent workflows. To install only the skills with skills.sh:

bash
npx skills add pascalorg/editor \
  --skill pascal-3d \
  --skill furniture-fit

pascal-3d covers safe local or hosted MCP setup and verified scene work. furniture-fit produces a bounded, evidence-based footprint assessment. OpenClaw installation becomes available after the skills are published under Pascal's ClawHub publisher.

More on agents

Run the editor locally

Create a persistent local Pascal installation without cloning this repository:

bash
npx @pascal-app/cli editor

The CLI starts the editor and an authenticated MCP service in the background, selects collision-free loopback ports, and keeps projects in ~/.pascal/data/pascal.db. The web editor runtime is downloaded once per version on the first command that starts the editor and verified against a digest published inside the package; pascal mcp connect needs no download. See Run Pascal locally for pnpm/Bun commands, project management, updates, offline installs, storage paths, and troubleshooting.

Self-host it

The editor ships as one container, ghcr.io/pascalorg/pascal-editor, tagged with the same version as the npm packages (latest follows stable releases). Projects live in SQLite under /data; one admin password protects the instance; PASCAL_PUBLIC_URL is read at runtime, so the same image serves any domain.

bash
docker run -d -p 3000:3000 -v pascal-data:/data \
  -e PASCAL_ADMIN_PASSWORD=change-me \
  -e PASCAL_PUBLIC_URL=https://pascal.example.com \
  ghcr.io/pascalorg/pascal-editor:latest

See SETUP.md, "Self-hosting" for the compose file, the variables, agent access and public embeds.

To have the container hosted and managed for you, deploy it on Elestio:

Deploy on Elestio

Use the published packages

Install the full built-in viewer set, then load the built-in plugin once before mounting <Viewer>:

bash
npm install @pascal-app/core @pascal-app/viewer @pascal-app/editor @pascal-app/nodes
typescript
import { loadPlugin } from '@pascal-app/core'
import { builtinPlugin } from '@pascal-app/nodes'

await loadPlugin(builtinPlugin)

See the @pascal-app/viewer quick start for a React example, and @pascal-app/editor to embed the full editor. Capture sessions ship as the optional @pascal-app/core/capture and @pascal-app/viewer/capture subpaths. @pascal-app/ifc-converter converts IFC files into Pascal scene graphs.

Develop from source

Run from the repository root so the package watchers hot-reload changes in packages/*:

bash
bun install
bun dev   # builds the packages, watches them, and serves the editor at http://localhost:3002

Build everything with turbo build, or one package with turbo build --filter=@pascal-app/core. See SETUP.md for prerequisites and environment variables, docs/architecture.md for how the packages fit together, and docs/releasing.md for npm, container, and MCP Registry publishing.

Build a plugin

A plugin ships node kinds (schema, 3D/2D rendering, placement tools, inspector parametrics) and left-rail panels through the same Plugin manifest the built-ins use. Start with the plugin guide and the worked example pascalorg/plugin-trees.

A first look at Pascal Next

Explore the live demo — a real home reconstructed in detail, from its rooms and finishes to the structure and systems behind the walls. This hosted preview explores the direction of the next Pascal editor; the experience shown here is not yet part of the open-source editor release.

Exploded view — see how the home fits togetherCut view — slice through the building
Roof lifted above the reconstructed homeA section cut reveals the roof framing and interior
X-ray — reveal the modeled systemsWalkthrough — step inside at eye level
Building systems isolated with the walls hiddenWalking through the home toward the pool terrace
Interactions — open doors and exploreEnvironment — change the light and atmosphere
Interacting with doors in the reconstructed homeChanging the lighting around the reconstructed home

We are exploring what this could make possible for facility management, home services, architecture, home building, and infrastructure. Join the discussion on X and tell us where you would use it.

Making a video, tutorial, article, or social post about Pascal? You are welcome to use and edit this footage, including in monetized content, under CC BY 4.0. Credit Pascal, link the license, and note your edits; no separate permission is needed. Download the six original videos and see the creator guide.

FAQ

What is Pascal Editor? An open-source 3D building editor for architecture, engineering, construction, and operations. It runs in the browser, locally through its CLI, or self-hosted, and exposes the same scenes to AI agents over MCP.

Is it free and open source? Yes. The editor, packages, CLI, and MCP server in this repository are MIT-licensed. Hosted services at editor.pascal.app are separate from the open-source release and have their own account terms.

Does it work offline? The local CLI keeps projects on your machine, and its MCP service needs no network download. Starting the editor downloads its web runtime once per version; for a host without network access, pass --runtime <directory-or-archive>. See the local editor documentation.

How do AI agents connect? Through MCP. Local agents run pascal mcp connect with no account; hosted workspaces use https://editor.pascal.app/api/mcp with the client's sign-in or API key. See Connect an AI agent (MCP).

Does it support IFC? IFC import is provided by @pascal-app/ifc-converter, which converts IFC files into Pascal scene graphs. Sites, buildings, levels, walls, doors, windows, slabs, columns, and spaces become native Pascal nodes when their parameters can be recovered; other elements are kept as selectable imported meshes.

Contributing

Bug fixes, features, docs and ideas are all welcome. Start with CONTRIBUTING.md for setup, code style and the PR flow.

  • New node kinds and sidebar panels ship as plugins rather than edits to the built-ins
  • Questions and ideas go to Discussions; reproducible bugs go to Issues
  • Participation is covered by our Code of Conduct
  • Security problems go to SECURITY.md, not a public issue

Contributors

Aymeric Rabot Wassim Samad Sudhir


pascalorg/editor | Trendshift