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.
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:
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:
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.

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

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.
Criteria
PackDemo Static Web ZIP
Third-Party SaaS iframe
PackDemo 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 subscription
Stays 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 compliance
Same-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 fit
Mintlify, 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.
Keep relative assets/ paths intact
PackDemo's Static Web ZIP references assets/step-01.webp relative to index.html. Always upload the extracted directory together—or export the single-file offline HTML if your CMS only accepts one file upload.
Use aspect-ratio: 16/10 + min-height
Avoid hardcoding a fixed pixel height like height="700" that clips tooltips on narrow viewports or leaves giant black bars on mobile. Pair width: 100% with aspect-ratio: 16/10 and min-height: 320px.
Version demos in Git next to your UI PRs
Pro ($49) and Agency ($119) export editable .packdemo.json archives. Store them beside your docs so any engineer can re-import, swap a single outdated screen, and re-export in 60 seconds.
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
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.
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.
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.