Skip to content

Swap3D Examples

Runnable server-side examples for the Swap3D developer API and @swap3d/sdk.

Examples

Example Purpose
Node.js conversion Convert one local model and download the result.
Batch conversion Convert every supported model in a directory with bounded concurrency.
Next.js server route Keep the API key on the server while accepting browser uploads.

Requirements

  • Node.js 20 or newer
  • A Swap3D API key from the dashboard

Install dependencies from the repository root:

npm install

Run an example with the API key in the process environment:

SWAP3D_API_KEY=<your-api-key> npm run convert --workspace node-convert -- \
  ./model.obj glb ./model.glb

Never put SWAP3D_API_KEY in browser code, public environment variables, or committed files.

License

Apache-2.0. See LICENSE and NOTICE.

About

Runnable examples for the Swap3D developer API and SDK.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages