Skip to main content

Overview

@speckle/objectloader2 is a JavaScript/TypeScript package for loading and traversing Speckle objects. It provides utilities for working with Speckle’s object-based data model in web and Node.js applications. Package: @speckle/objectloader2 on npm

Installation

npm install @speckle/objectloader2

Quick Start

import { ObjectLoader } from '@speckle/objectloader2';

// Initialize loader
const loader = new ObjectLoader(client, objectId);

// Load object
const object = await loader.getAndConstructObject();

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 →
This documentation is a stub. Full documentation coming soon. For now, refer to the npm package page for detailed usage examples and API documentation.