# Tell your users what's new, inside your app

People rarely visit a changelog, so the work you ship goes unnoticed. The Embed SDK brings your changelog to them: a “What's new” panel with an unread badge, and a pop-up when a release they should know about goes live. About 5 KB, no cookies, no tracking.

[Create an SDK key](https://shipchime.com/app/settings/api-keys?new=sdk) · [@shipchime/sdk on npm](https://www.npmjs.com/package/@shipchime/sdk)

## How PostNitro uses it

[PostNitro](https://postnitro.ai), the AI carousel maker, shows its changelog inside its app with the Embed SDK, and keeps it current on ShipChime. Every release its team approves reaches the app at once, with no deploy: [see PostNitro's changelog](https://shipchime.com/p/postnitro/changelog). PostNitro and ShipChime share a founder: Muneeb also started ShipChime.

![PostNitro's changelog in the Embed SDK's panel: its latest releases, newest first, with each release's version and project.](https://shipchime.com/screens/sdk-panel.webp)

PostNitro's changelog, as the panel shows it in an app.

## Add it in three steps

1. **Create an SDK key.** [Create an SDK key](https://shipchime.com/app/settings/api-keys?new=sdk) opens the form with “The Embed SDK” chosen. Pick your product, and let it never expire if you like. It's safe in your app's code: it can only show your public changelog, and only on your own domains.
2. **Check your app's domain.** The SDK works on your organization's verified domains and their subdomains, and on `localhost` while you build. The domain you signed up with is already verified. If your app lives on another one, [add it under Domains](https://shipchime.com/app/settings/domains) with a DNS record.
3. **Add the snippet** before `</body>`, and a button that opens the panel:
   ```
   <script src="https://shipchime.com/sdk/v1.js" data-product="your-product"
     data-key="sc_sdk_…" defer></script>

   <button data-shipchime-open>
     What's new <span data-shipchime-badge hidden></span>
   </button>
   ```

Your product's own snippet, with its slug and key filled in, is in the dashboard under [your product's settings → Embed](https://shipchime.com/app/settings/embed), where you can try the panel before you ship it.

![The Embed tab of a product's settings in ShipChime, with the product's own snippet and the panel open beside it.](https://shipchime.com/screens/sdk-embed-settings.webp)

Your snippet, and the panel to try, in the dashboard.

## Or let your coding agent add it

Paste this into Claude Code, Codex or Cursor, with your product's slug and SDK key. Unlike an API key, an SDK key is public, so it's fine in a prompt.

```
Add ShipChime's Embed SDK to this app by following https://shipchime.com/sdk.md.
Product: your-product. SDK key: sc_sdk_… (it's public, so it can live in the code).
Use the npm package, put a "What's new" button with an unread badge in the main
navigation, follow the app's theme, and add https://shipchime.com to our Content Security Policy
if we send one.
```

## What your users get

- **A panel** against the right edge of the screen, full screen on phones, opened by anything with `data-shipchime-open`. Esc or a click outside closes it.
- **An unread badge** on `data-shipchime-badge`: how many releases are new to this person, up to “9+”.
- **A pop-up** for a release marked “Show in your app”, at most once per person and one per visit. Nobody gets one on their first visit, so nobody is greeted with old news.
- **Your changelog inside a page** of yours, with `data-shipchime-mount` or `mount()`.
- Your product's colour, in light, dark or each person's own setting. Readers can sign in and react to releases there too, if you let them.

## With npm

```
npm install @shipchime/sdk
```

```
import { createClient } from "@shipchime/sdk";

const changelog = createClient({ product: "your-product", key: "sc_sdk_…" });

changelog.open(); // the panel
const remove = changelog.mount("#whats-new"); // inside a page of yours
changelog.on("unread", ({ count }) => setBadge(count));
```

In React, wire up the page's buttons and badges once:

```
useEffect(() => {
  const changelog = createClient({ product: "your-product", key: "sc_sdk_…", theme: "auto" });
  const unbind = changelog.bind();
  return () => {
    unbind();
    changelog.destroy();
  };
}, []);
```

`createClient` is safe to call while rendering on a server: it does nothing there. In a browser it waits until the page is idle, then makes one request. Types are included, and it works with `import` and `require`.

## Options

| Script tag     | createClient | What it sets                                                           |
| -------------- | ------------ | ---------------------------------------------------------------------- |
| `data-product` | `product`    | Your product's slug, as in shipchime.com/p/{product}. Required.        |
| `data-key`     | `key`        | Your SDK key (sc_sdk\_…). Required.                                    |
| `data-project` | `project`    | One project's slug, to show only that project.                         |
| `data-theme`   | `theme`      | light, dark, or auto (each person's system setting). Light by default. |
| `data-popups`  | `popups`     | off on the tag, or false, for no pop-ups. On by default.               |

The client also has `close()`, `unread()`, `markSeen()`, `ready`, `bind()` and `destroy()`, and events (`unread`, `open`, `close`, `popup:shown`, `popup:clicked`) you can pass to your own analytics. The full reference is the package's README on [npm](https://www.npmjs.com/package/@shipchime/sdk).

## Choosing what pops up

A release pops up when its “Show in your app” switch is on, in the release's editor. From the [CLI](https://shipchime.com/cli), add `--show-in-app` to `shipchime draft`.

## Privacy and security

- No cookies and no tracking. It keeps two small notes in your site's own storage: the newest release this person has seen, and the pop-ups already shown.
- An SDK key can't write, publish, read anything private or call the API. ShipChime checks the page's origin against your verified domains, and only those domains may frame the panel.
- If your app sends a Content Security Policy, allow `https://shipchime.com` in `script-src`, `connect-src` and `frame-src`. Its styles live in a Shadow DOM, so a strict `style-src` holds.
- The panel loads in a sandboxed iframe, and the SDK only accepts messages from ShipChime's own frames.

## Help

If the key is missing, revoked, for another organization or used on another site, the SDK shows nothing and logs one warning in the console saying why (`[shipchime] …`). Anything else: <support@shipchime.com>. Agents can read this page as Markdown at [/sdk.md](https://shipchime.com/sdk.md).

---

Source: https://shipchime.com/sdk
