BETA Free launch beta: all features available Join the beta →
Chart's HUB
Security

Show your diagram inside your application, always up to date

A JavaScript library displays the diagram read-only on a third-party page and refreshes by itself when you edit it.

Try it for free See all features

How it works

  1. 01

    One token per diagram

    The owner enables embedding and gets a dedicated token: a read-only capability on that diagram, revocable at any time.

  2. 02

    An isolated JavaScript lib

    ChartsHubEmbed.mount() renders the diagram in a Shadow DOM: no style conflicts with the host page, no iframe.

  3. 03

    Polling updates

    The lib queries the public API at a regular interval (20 s by default, 5 s minimum) and redraws only if the diagram changed.

Technical specifications

Mode
read-only
Integration
embed.js script + ChartsHubEmbed.mount(el, { token })
Isolation
Shadow DOM, no iframe
Refresh interval
20 s by default, 5 s minimum
Encrypted diagrams
excluded

Example

<div id="mon-diagramme"></div>
<script src="https://votre-instance/embed.js"></script>
<script>
  ChartsHubEmbed.mount(document.getElementById('mon-diagramme'), {
    token: '<token du diagramme>',
    pollIntervalMs: 20000,
  });
</script>

Use cases

✓

Show an architecture diagram in internal documentation

✓

Embed a monitoring status in a portal

✓

Publish a process diagram on an intranet

Frequently asked questions

Can visitors edit the diagram?+

No, it is read-only. A discreet link lets authorized people open the diagram in Chart’s HUB to edit it.

What if the token leaks?+

Regenerate or revoke the token: the old one stops working immediately.

Start for free, move to Pro or Team when you need it.

Create a free account See pricing