Embed Library
The @splice-cad/embed JavaScript library allows you to embed interactive Splice harness diagrams directly on your website, documentation, or web application.
Installation
<script src="https://cdn.jsdelivr.net/npm/@splice-cad/embed@0.1.0-beta.2/dist/splice-embed.iife.js"></script>
Quick Example
<div id="harness-container"></div>
<script>
Splice.embed('harness-container', 'your-harness-id');
</script>
Full Documentation
For complete API reference, configuration options, and examples:
Sharing Harnesses
To embed a harness:
- Public harnesses: Use the harness ID directly
- Private harnesses: Generate a share token from harness settings and pass it via the
tokenoption
Share tokens can be generated from any harness’s settings menu.