Vectreal Platform

Deployment Actions

See the viewer

NPM packages

Vectreal is an open platform for preparing, managing, and publishing 3D content for the web.
This monorepo contains the full platform app, reusable React packages, shared libraries, and infrastructure code used to run Vectreal in production.

Built on Three.js, React Three Fiber, glTF-Transform, Supabase, and Nx.
Quick Links (External)
What Is In This Repo
| Area | Path | Purpose |
|---|
| Platform app | apps/vectreal-platform/ | Full-stack React Router v7 app with SSR, auth, dashboard, publisher, and preview routes |
| Viewer package | packages/viewer/ | @vctrl/viewer React 3D viewer component |
| Hooks package | packages/hooks/ | @vctrl/hooks browser-side loading, optimization, and export hooks |
| Core package | packages/core/ | @vctrl/core isomorphic model processing pipeline (Node.js, browser, Web Worker) |
| Embed package | packages/embed/ | @vctrl/embed framework-agnostic SDK for controlling embedded 3D scenes |
| SDK package | packages/sdk/ | @vctrl/sdk typed client and zod schemas for the /api/v1 agent API |
| CLI package | packages/cli/ | @vctrl/cli the vectreal command and its MCP server for agents |
| Shared libraries | shared/ | Shared UI components and utilities |
| Infrastructure | terraform/ | Cloudflare DNS, Turnstile widgets, and Fly.io secret sync scripts |
Documentation Map
| Section | What you will find |
|---|
| Getting Started | Your first model in the publisher, with no install or account |
| Guides | Upload, optimize, publish, and embed workflows |
| Package Reference | API docs for @vctrl/viewer, @vctrl/hooks, @vctrl/core, and @vctrl/embed |
| Run It Yourself | Local setup, Fly.io deployment, Terraform, and CI/CD |
| Contributing | Branching, commits, testing, and PR process |
Workflows And Package Reference
Use these links to move between product workflows and the package APIs behind them.