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

@serverlessworkflow/diagram-editor

v0.0.0

Published

React serverless workflow diagram component

Readme

serverless-workflow-diagram-editor

Serverless Workflow Diagram Editor React component / npm package

Building the Component

# Go to serverless-workflow-diagram-editor package
cd ./packages/serverless-workflow-diagram-editor

# Install dependencies
pnpm install

# Build package (development)
pnpm run build:dev

# Or build package (production)
pnpm run build:prod

# Build storybook static content for publishing (documentation and demo)
pnpm run build:storybook

# Run storybook (test and development / debugging)
pnpm run start

shadcn/ui

This package uses shadcn/ui for UI primitives. Configuration lives in components.json at the package root.

Key settings

  • Style: new-york — compact spacing and sharper corners
  • Tailwind prefix: dec: — all generated classes are prefixed to avoid conflicts with host applications
  • CSS target: src/components/ui/shadcn.css — where shadcn injects its CSS variables
  • Path aliases: @/components, @/lib, @/hooks — resolved via tsconfig.json paths and Vite's tsconfigPaths
  • Icon library: lucide (generates lucide-react imports)

Adding a new shadcn component

The shadcn CLI doesn't understand pnpm catalogs, so adding a component requires a manual step.

  1. Generate the component

    cd packages/serverless-workflow-diagram-editor
    pnpm dlx shadcn@latest add <component>

    This creates the component in src/components/ui/ and adds any new dependencies (e.g. @radix-ui/*) to package.json with a pinned version.

  2. Move the dependency to the pnpm catalog

    The CLI writes something like "@radix-ui/react-tooltip": "^1.2.3" directly into package.json. To follow the workspace convention:

    • Add the package and version to the catalog: section in the root pnpm-workspace.yaml
    • Replace the pinned version in the editor's package.json with "catalog:"
  3. Verify consistency

    # From the repo root
    pnpm dependencies:check

    This runs syncpack to confirm all workspace packages use the catalog. If you missed a dependency, run pnpm dependencies:fix.

  4. Install

    pnpm install

Package Structure

serverless-workflow-diagram-editor/
├── src/
│   ├── core/                   # SDK abstraction layer
│   ├── diagram-editor/         # Main DiagramEditor component
│   ├── i18n/locales/           # Locale string definitions (en, fr)
│   ├── react-flow/diagram/     # @xyflow/react diagram rendering
│   └── store/                  # React Context state management
├── tests/
│   ├── core/                   # SDK integration tests
│   ├── diagram-editor/         # DiagramEditor component tests
│   ├── react-flow/diagram/     # Diagram rendering tests
│   ├── store/                  # Context provider tests
│   └── fixtures/               # Shared test fixtures (workflow YAML/JSON)
├── stories/                    # Storybook stories and demo components
├── vitest.config.ts            # Unit test config
├── tsconfig.json               # TypeScript config
└── tsconfig.test.json          # TypeScript config for tests