Skip to content

Self-hosted embed

Self-hosting gives you full control (no third-party CDN in your CSP, custom Tailwind theme builds) at the cost of manual updates.

Terminal window
cd widget
pnpm install
pnpm build:embed
# Output: dist/claudius.iife.js and dist/claudius.css

Upload both files anywhere your site can reach them, then add before </body>:

<script>
window.ClaudiusConfig = {
apiUrl: "https://your-worker.workers.dev",
title: "Support",
};
</script>
<link rel="stylesheet" href="/claudius.css" />
<script src="/claudius.iife.js"></script>

Rebuild and re-upload on each release you want to adopt. The migration guides call out anything you need to change between versions — most releases are drop-in.