> For the complete documentation index, see [llms.txt](https://docs.viverse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.viverse.com/polygon-streaming/polygon-streaming-javascript-sdk.md).

# Polygon Streaming JavaScript SDK

This document guides you through integrating Polygon Streaming to JavaScript projects.

***

Add streaming models to a JavaScript application built with PlayCanvas Engine or Three.js. Start with the sample project for your engine, then follow its integration and parameter reference.

<table><thead><tr><th width="160.5928955078125">3D Library</th><th>Installation</th></tr></thead><tbody><tr><td>PlayCanvas</td><td>Instructions for installation and setup can be found <a href="/polygon-streaming/polygon-streaming-javascript-sdk/playcanvas.md">here</a>.</td></tr><tr><td>Three.js</td><td>Instructions for installation and setup can be found <a href="/polygon-streaming/polygon-streaming-javascript-sdk/three.js.md">here</a>.</td></tr></tbody></table>

If you use the PlayCanvas Editor or VIVERSE extension workflow, start with the [PlayCanvas SDK](/polygon-streaming/integrations-and-plugins/polygon-streaming-playcanvas-sdk.md) instead.

Before using your own model, [upload and convert ](/polygon-streaming/upload-and-convert-a-3d-asset.md)it and obtain its streaming model URL.

### Sample Downloads

<table><thead><tr><th width="301.4176025390625">Engine</th><th>Sample project</th></tr></thead><tbody><tr><td>PlayCanvas Engine</td><td><a href="https://stream.viverse.com/assets/streamablemodel/2.9.2/playcanvas/PolygonStreaming-PlayCanvas-Example.zip">Download sample</a></td></tr><tr><td>Three.js</td><td><a href="https://stream.viverse.com/assets/streamablemodel/2.9.2/threejs/PolygonStreaming-Threejs-Example.zip">Download sample</a></td></tr></tbody></table>

Use the downloaded project's `package.json` and configuration when reproducing the sample.

### AI-Assisted Development

For Skill discovery and the context to provide to an AI coding assistant, see [AI-Assisted Development](/polygon-streaming/introduction-and-benefits.md). Use this integration guide as the reference for your project; check a Skill's scope before applying it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.viverse.com/polygon-streaming/polygon-streaming-javascript-sdk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
