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

joget-plugin-cli

v1.0.2

Published

A command-line tool for scaffolding and initializing Joget plugins with ease.

Readme

Joget Plugin CLI

A command-line tool for scaffolding and initializing Joget plugins with ease.

Installation

Install globally via npm:

npm install -g joget-plugin

Or install locally in your project:

npm install joget-plugin

Usage

Initialize a New Plugin

Create a new Joget plugin with an interactive setup wizard:

joget-plugin init

The CLI will prompt you for:

  1. Package name - The Java package name for your plugin (e.g., com.example.myplugin)
  2. Plugin folder name - The directory name for your new plugin project
  3. Joget dependency version - The Joget platform version to target (default: 8.0-SNAPSHOT)
  4. Plugin type - The type of plugin you want to create

Supported Plugin Types

Note: Currently, templates are available for Datalist Action Plugin, Form Field Element Plugin, and Web Service Plugin. Templates for other plugin types will be provided in future releases.

  • Audit Trail Plugin
  • Create App Option
  • Custom Builder Plugin
  • Datalist Action Plugin
  • Datalist Binder Plugin
  • Datalist Column Formatter Plugin
  • Deadline Plugin
  • Decision Tool Plugin
  • Directory Manager Plugin
  • Form Field Element Plugin
  • Form Load/Options/Store Binder Plugin
  • Form Validator Plugin
  • Generator Plugin
  • Hash Variable Plugin
  • List Filter Type Plugin
  • Multi Factor Authenticator Plugin
  • Process Form Modifier Plugin
  • Process Participant Plugin
  • Process Tool & Post Form Submission Processing Plugin
  • Tensorflow Helper Plugin
  • Userview Menu Plugin
  • Userview Permission/ Form Permission Plugin
  • Userview Theme Plugin
  • Web Service Plugin

What Gets Created

After running init, the CLI will:

  1. Execute the Joget create-plugin.bat script to generate the Maven/Gradle project structure
  2. Apply a plugin-type-specific template with boilerplate code
  3. Initialize a Git repository for version control
  4. Make an initial commit

The generated plugin project will include:

  • Main plugin class (Activator.java)
  • Plugin implementation class (CLASS_NAME.java)
  • Resource files (properties, messages, templates)
  • Build configuration (Maven/Gradle)

Prerequisites

  • Node.js (v14 or higher)
  • Java Development Kit (JDK) (Java 8 or higher, depending on Joget version)
  • Maven or Gradle for building the plugin
  • create-plugin.bat (provided by Joget) - The CLI will prompt for its location if not found in PATH

Example Workflow

# Install globally
npm install -g joget-plugin

# Create a new plugin
joget-plugin init

# Follow the interactive prompts:
# Package name: com.example.myplugin
# Plugin folder name: my-datalist-plugin
# Joget dependency version: 8.0-SNAPSHOT
# Plugin type: Datalist Action Plugin

# Navigate to your new plugin
cd my-datalist-plugin

# Build the plugin
mvn clean package

# Deploy to your Joget instance

Development

Project Structure

├── bin/                     # CLI entry point
├── commands/                # Command implementations
├── templates/               # Plugin type templates
├── utils/                   # Utility functions
└── package.json            # Project metadata

Dependencies

  • commander - CLI framework
  • inquirer - Interactive prompts
  • fs-extra - File system utilities
  • execa - Process execution

Building from Source

# Clone the repository
git clone <repository-url>
cd joget-plugin-cli

# Install dependencies
npm install

# Link for local testing
npm link

# Run the CLI
joget-plugin init

Troubleshooting

create-plugin.bat not found

The CLI will prompt you for the path to create-plugin.bat if it's not found in your system PATH. This is typically located in your Joget installation directory.

Permission Denied (Linux/macOS)

If you encounter permission issues, try:

chmod +x bin/joget-plugin.js

Plugin Template Not Applied

Ensure your Joget dependency version matches the available templates. Check the templates/ folder for supported plugin types.

Contributing

Contributions are welcome! Please submit issues and pull requests to improve the Joget Plugin CLI.

License

This project is part of the Joget ecosystem. Please refer to the main Joget project for licensing information.

Support

For issues, questions, or feature requests, please visit the Joget Community.