Widgets & SDKs
Your widget runs on pages you don’t control, for people who could become competitors.
Every other kind of JavaScript is read by strangers who stumbled across it. An embeddable widget is handed deliberately to the companies closest to your market — integrators, agencies, and the customer who is quietly evaluating whether to build it themselves. It is also the one script whose size, CSP behavior and failure modes are judged by someone else’s standards.
Reality Check
<script src="https://javascriptobfuscator.com//cdn.acme.io/widget.js">
One URL, cached by every customer, readable by all of them, and impossible to recall once copied.
Domain lockA copied file refuses to run on an origin you did not authorise.
WatermarkA signed marker proves which build a stray file came from.
Reserved surfaceYour documented API is a contract with code you cannot see.