Embedding retool app

Hi there! Is there a simple way I can reference retool-embed SDK by just using tag on my page? Is there any CDN? Or where can I download the script to host it myself? I have issues installing it using npm:

npm -i --save-dev @tryretool/retool-embed
Unknown command: "@tryretool/retool-embed"

Thanks!

Hello @Vadim,

Yes, you can reference the Retool Embed SDK using a <script> tag on your page. Retool provides a CDN for embedding its SDK. Here’s how you can do it:

Using the CDN

You can include the Retool Embed SDK directly in your HTML file like this:

<script src="https://releases.retool.com/embed.js"></script>

Hosting the SDK Locally

If you'd prefer to host the SDK yourself (e.g., if you can't use the CDN for any reason), follow these steps:

  1. Download the SDK Script:
  • Visit the Retool Embed GitHub repository and download the embed.js file.
  • Alternatively, you can fetch the https://releases.retool.com/embed.js script directly using curl or wget:
curl -O https://releases.retool.com/embed.js

Host the File:

  • Place the downloaded embed.js file on your server or in your project's public assets directory
    You may also prefer this Retool Documentation Embed web apps | Retool Docs
3 Likes

Cool! Exactly what I need!
Thank you so much!

Unfortunately this requires login. It's not public.
https://releases.retool.com/embed.js

Hello @Vadim,

If the Retool Embed SDK requires login when you attempt to fetch it via curl or download it directly, you won’t be able to retrieve it anonymously. In such cases, the easiest workaround is to use the provided CDN link directly in your <script> tag.

If you still prefer to host the SDK locally Check Retool's Documentation or Support:

  • Retool might provide a way to download the SDK from your account dashboard or a protected area of their site.
3 Likes

Thanks for reply. I ended up hosting it by myself. Thanks!

1 Like