latest

Documentation

Vectreal is an open platform for preparing, managing, and publishing 3D content for the web. This documentation covers the full platform — from running the local dev stack to integrating the open-source React packages in your own project.


What's in this docs

SectionWhat you'll find
Getting StartedLocal setup, prerequisites, first model walkthrough
GuidesUpload, optimize, publish, and embed workflows
Package ReferenceAPI docs for @vctrl/viewer, @vctrl/hooks, @vctrl/core
OperationsGCP deployment, Terraform, CI/CD
ContributingBranching, commits, PR process


App Workflows and Package Reference

Use these cross-links to move between user-facing workflows and underlying package APIs.

Workflow guidePackage referenceSource README
Uploading Models@vctrl/hookspackages/hooks/README.md
Optimizing & Configuring@vctrl/hooks, @vctrl/viewerpackages/hooks/README.md, packages/viewer/README.md
Publishing & Embedding@vctrl/viewer, @vctrl/corepackages/viewer/README.md, packages/core/README.md
Deployment@vctrl/corepackages/core/README.md

Architecture overview

The monorepo is organised into three layers:

vectreal-platform/
├── apps/vectreal-platform/   # Full-stack React Router v7 app (this site)
├── packages/
│   ├── viewer/               # @vctrl/viewer — React 3D viewer component
│   ├── hooks/                # @vctrl/hooks  — browser-side loading/optimisation hooks
│   └── core/                 # @vctrl/core   — server-side model processing
├── shared/
│   ├── components/           # Shared Radix UI component library
│   └── utils/                # Shared utility functions
└── terraform/                # GCP infrastructure as code

The platform app (apps/vectreal-platform) uses:

  • React Router v7 (framework mode with SSR) for routing and data loading
  • Supabase for authentication and database
  • Drizzle ORM for type-safe SQL queries
  • Google Cloud Storage for 3D asset storage
  • @vctrl/viewer + @vctrl/hooks as the in-browser 3D pipeline

Editing these docs

Every page in this documentation is an MDX file living inside the repository. Click Edit on GitHub at the top of any page to jump straight to the source file and open a PR.