Skip to content

@mochabug/adaptkit

@mochabug/adaptkit is the official CLI tool for developing and managing applications for the mochabug Adapt platform. Built with Node.js 24 compatibility, adaptkit streamlines the entire application development workflow.

  • Create new application projects with scaffolding
  • Add vertices (tasks) to existing applications
  • Emulate applications locally for testing
  • Publish applications to the mochabug Adapt platform
  • Manage application versioning with semantic versioning

Applications are composed of vertices - the fundamental building blocks that define tasks. Each vertex consists of:

The core logic that performs tasks. Available types:

  • Action - Performs tasks without external system interactions
  • Cron Trigger - Executes tasks at scheduled intervals
  • External Trigger - Responds to external endpoint events
  • Browser - Runs tasks within a browser environment

Provides UI for customising executor behaviour on the mochabug Adapt platform.

Terminal window
npm install -g @mochabug/adaptkit
Terminal window
adaptkit init

Creates a new application with manifest.json, executor/configurator templates, and schema files.

Terminal window
adaptkit add

Interactively adds new vertices to your existing application project.

Terminal window
adaptkit emulate

Test your application in a local environment. Requires the mochabug Adapt sandbox:

Terminal window
docker run --rm -it -p 51001:51001 -p 51002:51002 -p 51003:51003 -p 51004:51004 -p 51005:51005 mochabug/adaptsandbox:latest

The 5 ports simulate different vertex types, the graphical interface, and the adaptkit publish endpoint.

Terminal window
adaptkit publish

Publish your application to the mochabug Adapt platform for production use.

Terminal window
adaptkit version --patch # Increment patch version
adaptkit version --minor # Increment minor version
adaptkit version --major # Increment major version

Updates the semantic version in your application’s manifest.json.

Adaptkit is built with full Node.js 24 support, leveraging modern JavaScript features and native ES modules for optimal performance and compatibility.

For application examples see our repo mochabug/adapt-plugins