Preloaded JS to use cloudinary JS SDK

I want to preload cloudinary js sdk to upload files and manage assets, the exiting integration with cloudinary is not fine grained enough.
I dont see the Preloaded JS UI section in the app settings.

Ive tried to
1.Open the App Settings: In Retool, open the app you’re working on.|

2.Left Panel Navigation: On the left panel, there should be a settings icon (usually represented by a gear or three dots). Make sure you’re in the “App Settings” section.|
3.Look for Preloaded JS

maybe I need some another plan or setup?
Thanks!

Hello @noamovich Welcome to the Retool Community,

Go to the app settings, where you'll find an option for Preloaded JS. You can use your preloaded Cloudinary JS there—refer to the screenshot for guidance. You may also check the Retool documentation for further details Preload custom JavaScript code and libraries | Retool Docs.

4 Likes

Thanks!
can I run npm install to get the cloudinary sdk?

No, you can’t run npm install directly in Retool because Retool apps don’t have access to a package manager like npm or yarn. Retool runs in a browser-like environment, so you can't install Node modules directly.

  • Alternative Approaches:
  1. Use a CDN to Load Cloudinary
  2. If you need to customize file uploads or manage assets – use the REST API approach
4 Likes

Let us know if you have any additional questions about this, @noamovich! It looks like @WidleStudioLLP has put you on the right path, though. :+1:

1 Like

Specifically, @noamovich, you should be able to load the cloudinary SDK via the "Libraries" menu.

I hope that helps!