Developer & Docs Integration Guide

How to embed a self-hosted interactive demo in Mintlify, Docusaurus, Webflow & Framer

Stop dropping paid third-party SaaS iframes into your developer docs and marketing pages. Export a ~24 KB zero-dependency static web ZIP or Markdown + WebP bundle from Chrome, host it on your own domain, and copy-paste the exact snippet for your stack below.

3 free exports total · Pro $49 early bird (reg. $69, 3 devices) · Zero cloud uploads · 14-day refund

25s preview · What PackDemo exports

25s capture-to-ZIP workflow · Inspect 3 live self-hosted HTML demos →
quickstart-demo.zip          # Static Web ZIP
├── index.html               # ~24 KB zero-dep player
├── EMBED.md                 # Deploy & iframe snippet
└── assets/
    ├── step-01.webp         # Lazy-loaded local WebP
    └── step-02.webp         # Baked redactions

Copy-paste embed snippets by platform

Every PackDemo Static Web ZIP ships with index.html, an assets/ directory of WebP frames, and a ready-made EMBED.md. Keep index.html and assets/ in the same folder on your static host or docs repo, then drop in the snippet for your framework.

1. Docusaurus (same-origin static/ folder)

MDX · Zero external host

Unzip the static bundle into static/demos/quickstart/ so Docusaurus serves it at /demos/quickstart/index.html, then embed it in any .mdx doc:

{/* docs/quickstart.mdx */}
<iframe
  src="/demos/quickstart/index.html"
  title="Quickstart Interactive Demo"
  style={{
    width: '100%',
    aspectRatio: '16 / 10',
    minHeight: 320,
    border: 0,
    borderRadius: 16,
  }}
  loading="lazy"
  referrerPolicy="no-referrer"
  allowFullScreen
/>

2. Mintlify (MDX + static subdomain or Cloudflare Pages)

MDX · Custom domain

Deploy the extracted ZIP folder to Cloudflare Pages, Vercel, or Netlify under demos.yourapp.com/quickstart/, then drop standard JSX into your Mintlify .mdx page:

{/* quickstart.mdx in Mintlify */}
<Frame caption="Click through the 4-step API key setup">
  <iframe
    src="https://demos.yourapp.com/quickstart/index.html"
    title="API Key Setup Interactive Demo"
    className="w-full rounded-2xl border-0"
    style={{ aspectRatio: '16 / 10', minHeight: 340 }}
    loading="lazy"
    referrerPolicy="no-referrer"
    allowFullScreen
  />
</Frame>

3. Webflow & Framer (HTML Embed / Custom Code)

HTML · Responsive 16:10

Upload the unpacked ZIP to your own CDN, Vercel, or S3 bucket, then paste PackDemo's default EMBED.md snippet into a Webflow Code Embed or Framer Embed → HTML component:

<iframe
  src="https://demos.yourapp.com/quickstart/index.html"
  title="Product Tour Interactive Demo"
  style="width:100%;aspect-ratio:16/10;min-height:320px;border:0;border-radius:16px"
  loading="lazy"
  referrerpolicy="no-referrer"
  allowfullscreen
></iframe>

4. No-iframe fallback (GitHub, Notion, strict-CSP docs)

Markdown + Local WebP

Where iframes are disallowed, export PackDemo's Markdown + WebP ZIP from the exact same recording and commit guide.md + images/ directly into Git:

# Quickstart: Create Your First API Key

## 1. Open Project Settings
Navigate to Settings and choose API Keys.

![Step 1](images/step-01.webp)

## 2. Generate Scoped Token
Pick read-only scope and copy the key once.

![Step 2](images/step-02.webp)

Self-hosted static ZIP vs. third-party SaaS iframe vs. Markdown

Choose the delivery format that matches your docs architecture, security policy, and maintenance budget.

CriteriaPackDemo Static Web ZIPThird-Party SaaS iframePackDemo Markdown + WebP
Cost over 3 years$49 once (Pro, 3 devices) or $119 once (Agency, 10 devices). Hosting on Git/Vercel/Cloudflare Pages is typically $0.$1,200–$18,000+ in recurring workspace/seat fees depending on vendor and custom-domain tier.Included in the same $49 Pro / $119 Agency license (3 free exports to test).
Player footprint & speed<25 KB (~24 KB) zero-dependency HTML/JS runtime + lazy-loaded WebP frames on your own CDN.External vendor domain lookup, heavier player scripts, and third-party analytics beacons.Zero JavaScript. Pure Markdown and static local WebP images.
If you cancel a subscriptionStays live forever. You own the files in Git or object storage.Risk of broken iframes, active-demo caps, or vendor watermarks reappearing.Stays in your repository forever alongside product code.
CSP & privacy complianceSame-origin frame-src 'self' (or your own subdomain); zero cookies or external tracking calls.Requires allowlisting vendor domains in CSP; sends reader metadata to third-party servers.No iframe permissions required; works in GitHub READMEs, wikis, and air-gapped intranets.
Best fitMintlify, Docusaurus, VitePress, Nextra, Webflow, Framer, and marketing landing pages.Sales teams that specifically require vendor-hosted CRM attribution and lead-capture forms.GitHub repos, Notion, Confluence, RFCs, and strict-CSP engineering docs.

Three deployment gotchas to avoid

Small details that keep self-hosted interactive demos crisp on mobile, dark-mode docs, and strict security setups.

Honest scope & boundaries

  • PackDemo is a Chrome Manifest V3 extension for web apps, SaaS UIs, and localhost—it does not record native desktop software or mobile apps.
  • Self-hosted PackDemo files do not ship a SaaS analytics dashboard or lead-capture CRM webhook; if you want view counts on your embedded demos, track the parent docs page with your existing privacy-friendly analytics.
  • Starter gives you 3 free lightly badged exports total (across HTML, static ZIP, 30fps MP4/WebM, and Markdown); Pro ($49 once, 3 devices) and Agency ($119 once, 10 devices) remove the badge and unlock unlimited exports + editable .packdemo.json.

Ship your first self-hosted docs demo in three steps

  1. Record your web workflow locally

    Install PackDemo in Chrome, mask any staging tokens or customer names via the on-device Shadow DOM HUD, and walk through the setup task.

  2. Export Static Web ZIP (and Markdown)

    Polish step captions and bake redactions in Studio, then export the Static Web ZIP for your interactive iframe and the Markdown + WebP ZIP for Git or Notion.

  3. Commit or upload and paste the snippet

    Drop the folder into Docusaurus static/ or Cloudflare Pages/Vercel, paste the responsive iframe snippet above, and test keyboard + mobile navigation.

Frequently asked questions

Should I embed the Static Web ZIP or the single-file offline HTML in documentation?

Use the Static Web ZIP (index.html + assets/step-01.webp...) for live websites and docs because images lazy-load as separate cached WebP files while the player runtime stays under 25 KB (~24 KB). Use the single-file standalone HTML when emailing a demo, attaching it to a ticket, or reviewing offline without a server.

Why avoid third-party SaaS iframes inside Mintlify or Docusaurus docs?

Third-party hosted demo iframes tie every docs page to an external subscription, can break or revert to watermarks if you cancel, add third-party cookies or tracker calls under strict CSP headers, and often load heavy external player bundles. Self-hosting PackDemo's static files under your own origin keeps demos fast, CSP-friendly, and permanently online.

What Content-Security-Policy (CSP) headers are needed for a self-hosted PackDemo iframe?

When served from the same origin (for example /demos/quickstart/index.html inside Docusaurus), frame-src 'self' allows the iframe with zero third-party domains. If you host demos on a subdomain like demos.yourapp.com for Mintlify, Webflow, or Framer, add https://demos.yourapp.com to frame-src on the parent page and allow framing via frame-ancestors on the demo host.

What if my docs platform or GitHub README blocks iframes completely?

Export the Markdown + WebP ZIP from the exact same PackDemo recording. It contains a clean numbered guide.md and an images/ folder with locally redacted WebP screenshots that render natively in GitHub, Notion, Confluence, Mintlify, and Docusaurus without any iframe.

How much does PackDemo cost for unlimited self-hosted doc demos?

PackDemo Starter includes 3 free lightly badged exports across HTML, static ZIP, 30fps MP4/WebM, and Markdown. Pro Lifetime is $49 once (early bird, reg. $69, up to 3 devices) for unlimited unbranded exports and editable .packdemo.json files; Agency is $119 once (up to 10 devices) with white-label client delivery rights.

Test a self-hosted demo inside your docs repo in two minutes

Start with 3 free local exports—no signup, no external embed lock-in, and zero cloud uploads. 14-day no-questions refund on Pro and Agency.