Creating a UXP Photoshop plugin to sync a color library from an external database

Hi all,

I’m exploring the creation of a Photoshop plugin using UXP to retrieve a color library from an external database via REST API. The goal is to group colors into categories within Photoshop, with automatic updates whenever the database is refreshed.

Here’s the general approach and resources I’m considering:

  1. Data Fetching via REST API:
    Using XMLHttpRequest in UXP seems to be a suitable method for fetching the external data. Any tips on handling responses effectively in UXP?
  2. Authentication:
    I believe the plugin will need server-to-server authentication to interact with the external database. Here’s Adobe’s guide on server-to-server authentication, which seems relevant. If anyone has experience with this in UXP, guidance would be appreciated.
  3. Storing Fetched Data:
    To manage local storage for the color library, I plan to use UXP’s file and folder access to save the library periodically and refresh it upon updates.

I’m new to UXP and would appreciate any tips or resources you might recommend. Thanks in advance!