Access to UXP APIs varies depending on the specific API. Some global APIs are available immediately without any import, such as the Crypto API for generating UUIDs or the Document API for manipulating the HTML DOM. Module-based APIs require importing via require() , such as require("uxp") , require("fs") , or require("os") .
Before diving deeper, let's address the elephant in the room. CEP plugins run in a Chromium Embedded Framework (CEF) browser, which is heavy and memory-intensive. UXP, by contrast, is a native, lightweight rendering engine built specifically for Adobe hosts. UXP tools allow for (no restarting Photoshop), better memory management, and support for modern JavaScript (ES2020+).
Security is built into the API model through permission-based access. Any plugin that accesses the file system or makes network requests must declare the appropriate permissions in its manifest.json file. This explicit permission model gives users confidence in the plugins they install.
While the UXP Developer Tool is central, a modern developer needs a complete environment.
Manually reloading a plugin after every code change slows down momentum. UDT solves this with the command. In UDT, click the actions menu and select Watch .
When you open UDT, click on the button. The tool will prompt you for fundamental metadata: Plugin Name: The display name of your extension.
Use the "Watch" feature to automatically reload your plugin in the host application whenever you save changes in your code editor.
Inspect the DOM, debug JavaScript using breakpoints, analyze network requests, and view console logs exactly like standard web development.
Let's explore the specific functionalities of each tool in the suite.
Use the application-specific APIs (like require('photoshop').app or require('indesign') ) strictly to execute commands on the active document. Packaging and Distribution
: Automatically refresh your plugin within the host application (like Photoshop) as soon as you save changes to your source code.
A Chrome-like debugging environment where you can inspect HTML/CSS, set breakpoints, and watch variables.
UXP includes Spectrum UXP , a set of native user interface components that automatically match the theme, styling, and contrast of Adobe applications. Introducing Adobe UXP Developer Tools (UDT)
How to do component creation with Adobe XD Plugin Development?
Once your plugin is created, add it to your UDT workspace workspace list. Ensure your target Adobe host application is running.