npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@adobe-csc/photoshop

v0.0.1

Published

A collection of PSD Document Manifest operations thatprovide the ability to get relevant information about the document useful for automation tasks. This library is powered by [Jsonata](https://docs.jsonata.org/overview.html)

Readme

Photoshop Manifest Client

A collection of PSD Document Manifest operations thatprovide the ability to get relevant information about the document useful for automation tasks. This library is powered by Jsonata

READ FIRST

This library is developped based on a naming convention of the Adobe Photoshop layer names. All dynamic / replaceable layer names are expected to be in the following format:

{{layerName}}

The libray will treat all layers (text, smart objects, artboards, etc) that follow this naming convention as dynamic layers.

Using this library

  • Install the package using npm install @adobe-csc/photoshop
  • Create an instance of the manifest client by passing a valid Photoshop document manifest object to the constructor.

Get the PSD Document Manifest

Follow the steps documented in the Firefly Services PS API: https://developer.adobe.com/firefly-services/docs/photoshop/api/photoshop_getManifest/

Initialize the library using the following code snippet:

import { ManifestClient } from '@adobe-csc/photoshop';
const  manifest: DocumentManifest = {/* manifest object */}
const manifestClient = new ManifestClient(manifest);

Get all artboards

const artboards:Array<Layer> = await manifestClient.getArtboards();

Get all replaceable text layers

const layers:Array<Layer> = await manifestClient.getVariableTextLayers();

Replace text in all replaceable text layers

The JSON data is expected to be an Array<TextLayerContentReplacement>.

Here is an example:

const jsonData:Array<TextLayerContentReplacement> = [
    {
        "LayerName":{
            "text":{
                "contents:"new text"
            }
        }
    }
]

Then pass the JSON data to the replaceTextLayerContent method.

const layers:Array<Layer> = await manifestClient.replaceTextLayerContent(jsonData);

Get all replaceable smart objects

const layers:Array<Layer> = await manifestClient.getVariableSmartObjects();

Replace smart object with a presignedUrl

The JSON data is expected to be an Array<SmartObjectReplacement>.

Here is an example:

const jsonData:Array<SmartObjectReplacement> = [
    {
        background: {
            href: "https://example.com/image.jpg",
            storage: "external",
        }
    }
]

Then pass the JSON data to the replaceTextLayerContent method.

const layers:Array<Layer> = await manifestClient.replaceSmartObjects(jsonData);

Unit Testing

  • Run npm run test from the root of this package folder.

JSONATA Expressions

The jsonata expressions used in this library are available as text files here: ./src/jsonata

Local Development Setup

  • Clone the mono repo
  • Install the dependencies using npm install
  • Run the tests using npm test