> ## 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.

# Object Loader 2

> Load and traverse Speckle object graphs, the format of versions published before 2026.9, in JavaScript/TypeScript

> [!NOTE]
>
> This package reads object graphs, the format of versions published before 2026.9, and cannot load
> bundle versions. For new work, see [Load a bundle in your own
> code](https://docs.speckle.systems/developers/building-integrations/load.md), or [Load a bundle in your Viewer
> app](https://docs.speckle.systems/developers/viewer/loading-bundles.md) if you render with `@speckle/viewer`.

## Overview

`@speckle/objectloader2` is a JavaScript/TypeScript package for loading and traversing Speckle object graphs. It provides utilities for working with the object-based data model in web and Node.js applications. Dispatch on `Version.schemaVersion` before you load: `null` is an object graph this package reads, `3` is a bundle it cannot.

**Package:** [@speckle/objectloader2 on npm](https://www.npmjs.com/package/@speckle/objectloader2)

> [!NOTE]
>
> Compatibility mode keeps a workspace's ACC syncs and file uploads in the object-graph format until
> it ends on **1 November 2026**. Versions published by 2026.9 connectors are bundles regardless.
> See [Compatibility mode](https://docs.speckle.systems/it-admin/compatibility-mode.md).

## Installation

```bash theme={null}
npm install @speckle/objectloader2
```

## Quick Start

Loaders are built through `ObjectLoader2Factory`, not constructed directly.

```typescript theme={null}
import { ObjectLoader2Factory } from '@speckle/objectloader2'

const loader = ObjectLoader2Factory.createFromUrl({
  serverUrl: 'https://app.speckle.systems',
  streamId: projectId,
  objectId,
  token
})

const root = await loader.getRootObject()

for await (const object of loader.getObjectIterator()) {
  // every object in the graph, root first
}

await loader.disposeAsync()
```

`createFromObjects(objects)` and `createFromJSON(json)` build a loader over objects you
already hold, with `objects[0]` as the root.

## Features

* Load Speckle objects by ID
* Traverse object hierarchies
* Construct complete object graphs
* Support for references and proxies

## Documentation

For complete documentation, examples, and API reference, visit the package on npm:

[View on npm →](https://www.npmjs.com/package/@speckle/objectloader2)


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