# @bubblydoo/uxp-toolkit

> [![NPM Version](https://img.shields.io/npm/v/@bubblydoo/uxp-toolkit)](https://www.npmjs.com/package/@bubblydoo/uxp-toolkit)

Latest version **0.0.22** (published 2026-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bubblydoo/uxp-toolkit
pnpm add @bubblydoo/uxp-toolkit
yarn add @bubblydoo/uxp-toolkit
bun add @bubblydoo/uxp-toolkit
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.22 |
| Published | 2026-09-24 |
| First published | 2026-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 3 |
| Unpacked size | 158 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Hans Otto Wirtz |
| Maintainers | hansottowirtz, krystianpiatkowski, leo-bubblydoo, jeremy_navarro |

## Links

- npm: https://www.npmjs.com/package/@bubblydoo/uxp-toolkit
- Repository: https://github.com/bubblydoo/uxp-toolkit
- Homepage: https://github.com/bubblydoo/uxp-toolkit/tree/main/packages/uxp-toolkit
- Issues: https://github.com/bubblydoo/uxp-toolkit/issues
- npm.io page: https://npm.io/package/@bubblydoo/uxp-toolkit

## Dependencies (3)

- [xmlbuilder2](https://npm.io/package/xmlbuilder2.md) ^4.0.3
- [error-stack-parser](https://npm.io/package/error-stack-parser.md) ^2.1.4
- [@jridgewell/trace-mapping](https://npm.io/package/@jridgewell/trace-mapping.md) ^0.3.31

## Recent versions

- 0.0.22 (latest) — 2026-09-24
- 0.0.21 — 2026-05-20
- 0.0.20 — 2026-05-20
- 0.0.19 — 2026-04-10
- 0.0.18 — 2026-04-09
- 0.0.17 — 2026-03-16
- 0.0.16 — 2026-02-17
- 0.0.15 — 2026-02-15
- 0.0.14 — 2026-02-11
- 0.0.13 — 2026-02-05
- 0.0.12 — 2026-02-05
- 0.0.11 — 2026-02-02
- 0.0.10 — 2026-01-31
- 0.0.9 — 2026-01-31
- 0.0.8 — 2026-01-30
- … 6 more at https://npm.io/package/@bubblydoo/uxp-toolkit/versions

## README

# @bubblydoo/uxp-toolkit

[![NPM Version](https://img.shields.io/npm/v/@bubblydoo/uxp-toolkit)](https://www.npmjs.com/package/@bubblydoo/uxp-toolkit)

Typed helpers for Adobe Photoshop UXP plugins: safer `batchPlay`, command builders, and utilities around layer/document workflows.

## Install

```bash
pnpm add @bubblydoo/uxp-toolkit
```

Optional type packages:

```bash
pnpm add -D @adobe-uxp-types/uxp @adobe-uxp-types/photoshop
```

## Usage

```ts
import { createCommand, batchPlayCommand } from '@bubblydoo/uxp-toolkit';
import { z } from 'zod';

const result = await batchPlayCommand(createCommand({
  modifying: false,
  descriptor: {
    _obj: 'get',
    _target: [{ _ref: 'layer', _id: 123 }],
  },
  schema: z.object({ name: z.string() }),
}));
```

## Unexpected but useful details

- The package is built around schema-validated command output, so `batchPlay` results become explicit types instead of ad-hoc `any`.
- `@bubblydoo/uxp-toolkit/commands` exposes prebuilt command descriptors for common Photoshop actions.
- Utilities such as layer-tree conversion and sourcemap parsing target practical pain points in large UXP plugins.

---
_Source: https://npm.io/package/@bubblydoo/uxp-toolkit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
