> ## Documentation Index
> Fetch the complete documentation index at: https://docs.speckle.systems/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These docs describe Speckle as it works today, including everything released in 2026.9. Treat page content as current unless the page or section says it applies only to versions published before 2026.9.
> Content scoped to versions published before 2026.9 (the object graph and root object, Proxies, Receive2, operations.receive, object.children) applies only to model versions in that earlier data format. For versions published in 2026.9, answer from the Object model pages and the SDK migration guides.
> The What's new pages summarise what changed in 2026.9 and link to the page that documents each change. Answer from the linked page rather than from the summary. Legacy (v2) connectors are retired; send questions about them to the community help forum.
> Match guidance to the customer's deployment, model data format, connector, plan and permissions. Self-hosted servers on a release before 2026.9 and compatibility-mode workflows follow the Compatibility mode page. If an unknown version or data format changes the answer, ask one focused question; do not infer the deployment version from the date alone.

# Environment Setup

> Complete guide to get Speckle server running locally for development, testing, and contribution

> [!WARNING]
>
> **Development vs Production**: This setup is for development and testing only. For production
> deployment, use the [Docker Compose Quickstart](https://docs.speckle.systems/developers/server/getting-started.md) or
> [Kubernetes](https://docs.speckle.systems/developers/server/deployment/kubernetes-with-helm.md) guides.

## Project Structure

The Speckle server is organized as a monorepo with the following key packages:

* **`packages/server`**: Main API server (Node.js)
* **`packages/frontend-2`**: Web interface (Vue.js)
* **`packages/viewer`**: 3D viewer (Three.js)
* **`packages/preview-service`**: Preview image generation
* **`packages/webhook-service`**: Webhook processing
* **`packages/ifc-import-service`**: IFC file import processing (Python)

## Prerequisites

Before setting up your development environment, ensure you have:

* **Git** for version control
* **Node.js** (check package.json engines field for version requirements)
* **Docker and Docker Compose** for containerized services
* **GitHub SSH key** (optional, for SSH-based cloning)

## Supported Platforms

Speckle server has been developed on Linux, Windows WSL2, and MacOS. It *does not* work on Windows without WSL2.

On MacOS devices with Apple based chips (M2, M3 etc.) it is possible to run the server as described below, but building and running Dockerfiles takes a lot of time (due to emulation of an x86 platform).

## Setup Instructions

To run a barebones Speckle Server, you need to run:

* the `frontend-2` package (Vue.js web interface)
* the `server` package (Node.js API server)

Optionally, to enable extra functionality, microservices should be run separately:

* the `preview-service` package generates preview images for streams
* the `webhook-service` package is responsible with calling the configured webhooks
* the `ifc-import-service` package parses uploaded IFC files and imports them into Speckle

**1. Clone and setup repository**

```bash theme={null}
git clone git@github.com:specklesystems/speckle-server.git
cd speckle-server
corepack enable
yarn
yarn build
```

**2. Start dependencies**

```bash theme={null}
yarn dev:docker:up
```

**3. Configure environment files**

```bash theme={null}
cp packages/server/.env.example packages/server/.env
cp packages/server/.env.test-example packages/server/.env.test
cp packages/frontend-2/.env.example packages/frontend-2/.env
cp packages/ifc-import-service/.env.example packages/ifc-import-service/.env
cp packages/preview-service/.env.example packages/preview-service/.env
cp packages/webhook-service/.env.example packages/webhook-service/.env
cp packages/monitor-deployment/.env.example packages/monitor-deployment/.env
```

**4. Start development server**

```bash theme={null}
yarn dev
```

**5. Wait for the frontend to build**

Wait for the Vue.js frontend to build, and you have a fully functional Speckle
Server running at `http://localhost:3000`.

> [!WARNING]
>
> Don't forget to set up the variables in the `.env` & `.env.test` files according to your
> deployment

In this deployment type, the Vue.js frontend app will listen by default on the local interface (not available over the network) on `port 8080`, but will have no knowledge about the `server` component, and thus **should not be accessed directly**.

The Node.js server component will listen on the local interface (not available over the network) on `port 3000`, and will proxy the frontend requests to the Vue.js frontend component (as configured in .env file).

## Getting Help

* **Community Forum**: [speckle.community](https://speckle.community)
* **GitHub Issues**: [speckle-server issues](https://github.com/specklesystems/speckle-server/issues)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.