The JavaScript widget is the recommended way to embed Sleekplan in your product. Installation takes fewer than five minutes and requires only basic access to your site’s HTML.Documentation Index
Fetch the complete documentation index at: https://sleekplan.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Find your snippet
Log in to Sleekplan and go to Settings → Widget. Your personal code snippet is shown there and looks like this:The
SLEEK_PRODUCT_ID value is unique to your product — leave it as-is when you paste the code.Add it to your HTML
Place the snippet immediately before the closing If the widget does not appear on the first load, clear your browser cache and reload the page.
</head> tag:(Optional) Use your own trigger button
Disable the default button in Settings → Widget if you want to use a button from your own UI. Then add a data attribute to any HTML element to make it open the widget:
Add a notification badge
Add a badge attribute alongside your trigger to display an unread count:| Attribute | Shows count for |
|---|---|
data-badge | All notifications |
data-badge-feedback | Feedback activity (status updates, comments, mentions) |
data-badge-changelog | New changelog entries |
After installing, control the widget with the
$sleek SDK — see SDK overview, User setup, and Single Sign-On.