@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.
Key Features
Section titled “Key Features”- 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
Application Architecture
Section titled “Application Architecture”Applications are composed of vertices - the fundamental building blocks that define tasks. Each vertex consists of:
Executor (Required)
Section titled “Executor (Required)”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
Configurator (Optional)
Section titled “Configurator (Optional)”Provides UI for customising executor behaviour on the mochabug Adapt platform.
Installation
Section titled “Installation”npm install -g @mochabug/adaptkitCommands
Section titled “Commands”Initialize an Application Project
Section titled “Initialize an Application Project”adaptkit initCreates a new application with manifest.json, executor/configurator templates, and schema files.
Add Vertices to Your Application
Section titled “Add Vertices to Your Application”adaptkit addInteractively adds new vertices to your existing application project.
Emulate Application Locally
Section titled “Emulate Application Locally”adaptkit emulateTest your application in a local environment. Requires the mochabug Adapt sandbox:
docker run --rm -it -p 51001:51001 -p 51002:51002 -p 51003:51003 -p 51004:51004 -p 51005:51005 mochabug/adaptsandbox:latestThe 5 ports simulate different vertex types, the graphical interface, and the adaptkit publish endpoint.
Publish to mochabug Adapt
Section titled “Publish to mochabug Adapt”adaptkit publishPublish your application to the mochabug Adapt platform for production use.
Version Management
Section titled “Version Management”adaptkit version --patch # Increment patch versionadaptkit version --minor # Increment minor versionadaptkit version --major # Increment major versionUpdates the semantic version in your application’s manifest.json.
Node.js 24 Compatibility
Section titled “Node.js 24 Compatibility”Adaptkit is built with full Node.js 24 support, leveraging modern JavaScript features and native ES modules for optimal performance and compatibility.
Application examples
Section titled “Application examples”For application examples see our repo mochabug/adapt-plugins