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

pentrado

v0.1.1

Published

Pentrado — a layered 2D image editor engine: real layers, masks, selections, vector shapes, adjustment layers, PSD import/export.

Readme

Pentrado

▶ Try it in your browser: pentrado.com — no install, your document persists locally.

A layered raster/vector image editor for the web — the class of tool occupied by GIMP, Photoshop and Photopea, built as an embeddable library. Pentrado is developed alongside ComfyTV (where it powers the Layer Editor and Storyboard stages) but has no dependency on ComfyUI or ComfyTV: everything the editor needs from its surroundings goes through the PentradoHost interface.

Pentrado editor

Installation

npm i pentrado

Two entry points:

import { useLayerEditorStage, LayerEditorCanvas, messages } from 'pentrado'
import 'pentrado/style.css'

The full surface — Vue 3 components, composables, host contract, PSD import/export, filters, locales. Requires the vue, vue-i18n and reka-ui peers (and ag-psd if you use PSD import/export).

import { walk, findNode, renderDocument } from 'pentrado/engine'

The pure-TypeScript core — document model, commands, history, tools, painting, compositor. No framework peers needed; importable without vue installed.

Layout

  • src/engine/ — pure TypeScript core: scene-graph document model (raster / text / vector / adjustment / fill / group nodes, masks), command-based undo history, selection model, tools, painting, WebGL compositor with full blend mode set, non-destructive layer fx, PSD-grade adjustment math.
  • src/ui/ — Vue 3 components and composables: canvas viewport, tool bar and tool strip, layer panel, text editing popup, hotkeys.
  • src/primitives/ — self-contained form controls used by the UI (select, slider with gradient track, curves editor).
  • src/host.ts — the embedding contract. Uploads, downloads, notifications, i18n, font resources, media-library export and asset picking are all provided by the host. Every hook is optional; built-in fallbacks (object-URL uploads, English strings, plain file drop) keep the editor fully functional standalone.
  • src/locales/ — UI strings (pentrado.* namespace) for en/zh, exported for merging into a host vue-i18n instance.
  • PSD import/export (psdImport.ts / psdExport.ts), text shaping via a vendored Typr (vendor/typr), font store, filters, pan/zoom.

Embedding sketch

import {
  useLayerEditorStage, providePentradoHost,
  LayerEditorCanvas, LayerEditorToolBar, LayerListPanel,
  type PentradoHost, type LayerEditorStorage,
} from 'pentrado'

const host: PentradoHost = { uploadBlob, notify, t, /* … */ }
const storage: LayerEditorStorage = { /* persist document JSON somewhere */ }

providePentradoHost(host)
const editor = useLayerEditorStage({ storage, host })
// render <LayerEditorCanvas :editor="editor" /> etc.

The i18n contract: templates use $t('pentrado.…'), so the host app installs vue-i18n and merges messages from pentrado.

Repository layout & workflow

This repo is the source of truth for Pentrado. src/ is the engine + UI (with its tests), site/ is pentrado.com (the standalone editor with IndexedDB persistence).

  • npm run dev — local editor at the vite dev URL
  • npm test / npm run typecheck — engine + UI suites
  • npm run build — build the npm package to dist/
  • npm run build:site / npm run deploy — build dist-site/ and publish to Cloudflare Pages (production)

ComfyTV consumes a synced copy: in the ComfyTV repo, npm run pentrado:sync mirrors this repo's src/ into packages/pentrado/src, then run ComfyTV's own typecheck/tests/build to confirm nothing downstream broke.