Skip to content

shapediver/StargateSdkTypeScript

Repository files navigation

ShapeDiver

StargateSdkTypeScript

TypeScript SDKs and tooling for the ShapeDiver Stargate system.

ShapeDiver is a cloud platform for building online applications based on parametric 3D files made with Rhinoceros 3D and Grasshopper.

The ShapeDiver Stargate system connects external clients to the ShapeDiver Platform backend. Typical clients include Node.js applications, Rhino plugins, Illustrator plugins, and other native or server-side integrations. Through Stargate, such clients can:

  • register themselves for an authenticated user
  • discover other connected frontend and backend clients
  • exchange custom messages between clients
  • respond to built-in Stargate workflows such as PREPARE_MODEL, GET_DATA, BAKE_DATA, and EXPORT_FILE

This is especially useful when operations should happen inside the client's native environment, for example baking data in a CAD application or exporting files through a client-specific toolchain.

Packages

This repository currently contains:

Getting Started

If you want to integrate with Stargate, start with the v1 package:

Install it with:

npm install @shapediver/sdk.stargate-sdk-v1

The package README documents connection setup, registration, client discovery, custom messaging, built-in commands, timeouts, and error handling.

Repository Layout

  • packages/: publishable packages and tools
  • libs/: shared internal libraries
  • scripts/: workspace bootstrap, build, test, publish, and maintenance scripts

Making Changes & Contributing

This project is written in TypeScript and managed as a PNPM workspace with Lerna.

Setup

The repository bootstrap scripts currently require:

  • Node.js v24
  • NPM v11
  • PNPM v11
  • Python 3.9.x

Install all workspace dependencies and initialize the local Python environment:

npm run init

Build

Common workspace commands:

  • npm run build: build all packages
  • npm run build-dep: build packages together with their internal dependencies
  • npm run test: run tests across the workspace

You can also run npm run build or npm run test inside an individual package.

Repository Notes

  • Packages live under packages/* and shared libraries under libs/*.
  • The repository uses independent package versioning for publishing.
  • The workspace scope is configured in scope.json.

Release

Before releasing packages from this repository, ensure that your npm authentication is configured correctly in ~/.npmrc.

Afterwards, run:

npm run publish

The repository publishing CLI will guide you through package selection, version updates, registry selection, publishing, and related Git steps.

Support

If you have questions about ShapeDiver, please use the ShapeDiver Help Center.

You can find out more about ShapeDiver at shapediver.com.

Licensing

This project is released under the ISC License.

About

SDKs for the ✨ShapeDiver Stargate Service✨

Topics

Resources

License

Stars

1 star

Watchers

2 watching

Forks

Packages

 
 
 

Contributors