Add one line. Once.

Paste it into your site, and every widget you publish appears there.

Your site’s lineGet your lineOpen your line
<script src="https://widgetjoy.com/s/your-site.js" async crossorigin></script>

Your Dashboard shows this line with your own site in it.

A guide for each platform

Browsers

Widgets are made for the last two years of Chrome, Edge, Firefox and Safari, on a computer or a phone, and for Safari 16.4 at the earliest. On an older browser a widget may not appear, and your page goes on as if it were not there.

What goes in your page

The line holds one thing, your Site’s public identifier. Anybody who views your page’s source can read it, and all it lets a browser do is load what you published: it cannot change a widget or read what you have received. Keep an agent token, and any other key that can change your widgets, out of your pages, out of front-end code (in Next.js, anything named NEXT_PUBLIC_…) and out of your repository.

Then add a widget

Building the site yourself?

For developers

What your page hears from a widget, how to open one from a button of your own, and what a Content-Security-Policy allows are on the page for developers.