> ## 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 contain multiple Speckle product experiences. For Speckle 2026.9, prefer /next/ pages for the topics and changes they cover. The navigation label Current does not override this version-specific precedence.
> Coverage under /next/ is incremental. Use Current documentation for unchanged topics and when a /next/ page says coverage is unavailable or explicitly refers you to Current. Do not infer a feature was removed from a missing page.
> Read the page-specific documentation status, applicability, affected guidance and replacement links in agent-only content. Impacted, changed and superseded apply only to the stated scope; they do not mean the entire feature is deprecated. Historical connector guides apply only to the legacy connector described.
> Match guidance to the customer's deployment version, model data format and connector. Respect plan, permission and compatibility restrictions. If an unknown version or data format changes the answer, ask a focused clarification; do not infer deployment version from the date alone.

# Loading Data

# Loading Data

You can load data into the speckle viewer virtually from any source as long as you provide an appropriate loader suite.

## Speckle Data

The viewer comes with a builtin speckle loader. Here's an example of how to get things going:

```typescript theme={null}
const urls = await UrlHelper.getResourceUrls(
  'https://app.speckle.systems/projects/<PROJECT_ID>/models/<MODEL_ID>'
)
for (const url of urls) {
  const loader = new SpeckleLoader(viewer.getWorldTree(), url, '')
  /** Load the speckle data */
  await viewer.loadObject(loader, true)
}
```

## Other Data Sources

By creating your own loaders you can load data from various input sources. The viewer library only come with a barebones OBJ loader in addition to the speckle loader.

```typescript theme={null}
const objUrl: string = '<your OBJ resource URL>'
/** Create a loader for the .obj data */
const loader = new ObjLoader(viewer.getWorldTree(), objUrl)
/** Load the obj data */
await viewer.loadObject(loader, true)
```

Alternatively, you can load the OBJ from an OBJ file contents as `string` or `ArrayBuffer`

```typescript theme={null}
const objData: string | ArrayBuffer = '<your OBJ resource data>'
/** Create a loader for the .obj data */
const loader = new ObjLoader(viewer.getWorldTree(), '<user defined id>', objData)
/** Load the obj data */
await viewer.loadObject(loader, true)
```

<Frame caption="OBJ Loader Example">
  <iframe src="https://stackblitz.com/edit/speckle-obj-loader?embed=1&file=src/main.ts&view=preview&hideExplorer=true&hideNavigation=true" height="500" style={{ width: '100%', border: 0 }} allowFullScreen />
</Frame>
