Inspekt
Get a key

Frameworks

The same loader (cs2embed.js), wired up four ways. Pick the one that matches your stack and paste it in. Every one of these is a complete, working integration, not a fragment.

index.html
<script src="https://inspekt.gg/cs2embed.js"></script>
<div id="viewer" style="width:640px;height:400px"></div>
<script>
  var viewer = CS2Embed.mount(document.getElementById('viewer'), {
    inspect: 'steam://rungame/730/76561202255233023/+csgo_econ_action_preview 0018...',
    scene: 'plate_train_video',
    autorotate: true,
  });

  viewer.on('loaded', function (e) {
    console.log('rendered', e.id, 'in', e.ms, 'ms');
  });
  viewer.on('error', function (e) {
    console.error('embed refused:', e.code, e.message);
  });
</script>

For every option each snippet accepts, see Embed parameters; for the full command/event surface behind on(), setItem(), and friends, see postMessage API. To try parameters live before you commit to a framework, use the sandbox: it regenerates all four of these snippets as you change item, scene and view.