Sharing
Embedding a file on your own site
Get a direct URL to embed a file on any website without expiry or download pages, or host a full HTML page.
On this page
An embed link points straight to the raw file instead of a download page, making it ideal for logos on landing pages, images in newsletters, or stable assets for your website.
Embeds are available on Pro, Max and Business because they're created with no expiry, which is a paid-plan feature.
Making one#
- 1
Select exactly one file
Embeds target a single file. On supported accounts, you can also pick a single folder to host an HTML page with its own stylesheets and scripts (see below).
- 2
Press Share, then the Embed tab
At the top of the share panel beside Share.
- 3
Press Create embed link
Copy your direct URL (
nemilab.com/embed/<link id>/<file id>).
<img src="https://nemilab.com/embed/your-link-id/your-file-id" alt="Studio logo">Use the URL in an <img> tag, CSS background, <video> source or anywhere a web page loads assets. Any website can load it without configuring allowed domains.
Putting an HTML page online#
Embedding an .html file serves it as a live web page (with CSS and JavaScript running) instead of a file download, so you can open it directly or embed it in an <iframe>.
For multi-file pages, embed the folder containing your site. Nemi serves index.html as the home page and resolves relative links (style.css, assets/app.js, images/logo.png) within that folder. Nothing outside the folder is reachable.
<iframe src="https://nemilab.com/embed/your-link-id" title="Our menu" width="100%" height="600"></iframe>What a hosted page can and can't do#
Hosted pages run in a security sandbox on nemilab.com. Almost everything works normally, with a few deliberate limits:
- Works: HTML, CSS, images, fonts, video, audio, JavaScript (including modules), canvas, WebGL, external fetches, forms and links opening in new tabs.
- Blocked: cookies, localStorage and sessionStorage, so pages can't store visitor state across reloads.
- Blocked: History API routing (changing the URL path). Hash-based routing (
#...) works fine. - Blocked: navigating the parent page that frames your embed.
What an embed won't serve#
- Executables and scripts (
.exe,.dmg,.apk,.sh,.bat,.jarand similar) are always blocked. - Files flagged by virus scanning, or still being scanned, aren't served. Brand-new uploads may take a moment to go live.
- Requests are rate-limited per visitor to prevent abuse.
- Search engines are instructed not to index embed URLs.
Managing embeds#
All embeds live under the Embed tab in the link manager (⌘⇧L), showing total views per card. Deleting an embed stops it everywhere right away, so make sure no live pages still reference it first.
Can I swap the file behind an embed?
Not for a single-file embed: create a new embed and update the URL on your site. Folder embeds are different: replace index.html inside the folder and the existing link serves the updated page.
Is this a full website host?
It's great for standalone pages like menus, reports, one-pagers or interactive demos. It isn't built for apps needing cookies, user sessions or a custom root domain.
Should an embed have a password?
No. Browsers loading embedded assets can't answer password prompts, so a password would simply break it.
Do embed views count towards anything?
They count as opens on the link, and bandwidth comes from your account like regular downloads.
Related
Still stuck? Email support@nemilab.com and tell us what you were trying to do.