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

@pundima-lakshan/bpmn-form-extended

v0.1.18

Published

An extension library for @bpmn.io/form-js that provides custom form editor functionalities

Readme

Acknowledgments

This is a fork from EinArlyn/bpmn-form-extended library to be used in my own project

bpmn-form-extended

The library is intended to expand the bpmn-js component base. Allows you to add custom components to the bpmn-js model.

Project structure

assets

  • css - folder with css files
  • fonts - font folder
  • js - folder with js files
  • svg - folder with svg files

custom components

  • components - folder with custom components
  • properties-panel - folder with custom property panels
  • index.js - file for importing all custom components

form-js - overriding form-js library functions

  • base-form.js - overriding the basic functions of the form-js library
  • form-editor.js - description and configuration of the form editor
  • form-viewer.js - description and settings for viewing forms

How to add your own component

  1. Create a component folder in the components folder
  2. Create a file index.js in the component folder
  3. Implement the component in the index.js file
  4. Import the component into the index.js file in the custom/components folder
  5. Add a component class and register it
  6. Add a new component to RenderExtension

How to add your own properties panel

  1. Create a properties panel folder in the properties-panel folder
  2. Create a file index.js in the properties panel folder
  3. Implement the properties panel in the index.js file
  4. Import the properties panel into the index.js file in the custom/properties-panel folder
  5. Add a property panel class and register it
  6. Add a new property panel to PropertiesPanelExtension

How to add a library to a React + Vite project

  1. Install the library using npm
npm install @einarlyn/bpmn-form-extended
  1. Importing css styles in a folder of your choice (example: main.js)
import "@einarlyn/bpmn-form-extended/dist/assets/css/styles.css";
  1. Along the path src/plugins we create a file minifyBundles.ts and place the following code in it
import { minify } from "terser";

const minifyBundles = () => {
  return {
    name: "minifyBundles",
    async generateBundle(_options: any, bundle: any) {
      for (const key in bundle) {
        if (bundle[key].type === "chunk" && !key.includes("customFormEditor")) {
          const minifyCode = await minify(bundle[key].code, {
            sourceMap: false,
          });
          bundle[key].code = minifyCode.code;
        } else if (
          bundle[key].type === "chunk" &&
          key.includes("customFormEditor")
        ) {
          bundle[key].code = bundle[key].code.replaceAll(
            "formFields2",
            "formFields"
          );

          const minifyCode = await minify(bundle[key].code, {
            mangle: {
              reserved: ["RangeField", "formFields.register", "formFields"],
            },
            sourceMap: false,
          });
          bundle[key].code = minifyCode.code;
        }
      }
      return bundle;
    },
  };
};

export default minifyBundles;
  1. In the vite.config.ts file we add the property optimizeDeps
optimizeDeps: {
    exclude: [
      '@einarlyn/bpmn-form-extended',
    ],
  },
  1. In the vite.config.ts file add the minifyBundles plugin
build: {
    rollupOptions: {
      output: {
        manualChunks(id) {
          if (id.includes('bpmn-form-extended')) {
            return 'customFormEditor';
          }

          return 'app';
        },
      },
      plugins: [minifyBundles()],
    },
    minify: false,
  },
  1. Create type declarations in decs.d.ts to stop typescript from complaining
declare module "@einarlyn/bpmn-form-extended";
  1. Usage in React project
...
 const formEditor = new FormEditor({
      container: editorContainerRef.current,
      // additionalModules: [RangeField, FileEditorField, RangeFieldPropertiesProvider],
    }).customForm;
...

Extended components and properties

Range

New range component

File Editor

Extend file input enabling to view uploaded files

Events

fileEditor.open - click on file editor icon

Input Field - custom property

Add option to include auto initialize options