[data-reveal]{opacity:1!important;transform:none!important}
DocumentationModule development

Module development

Build a module, expose its contract, test its behavior, and make it discoverable.

Build and test a module locally before you publish it. A module can consume existing interfaces without declaring an interface of its own.

From local code to a reusable module

  1. Create and load it. Scaffold a module, configure its build command, and watch its lifecycle in a project.
  2. Define its boundary. Export an interface only for the behavior that other modules need to call.
  3. Check the contract. Test through the public interface, and load each provider of an external dependency explicitly.
  4. Make it discoverable. Publish the package. If you want the CLI to find it, add registry metadata. The registry does not host code.

Development reference

Creating a module

Create a module from a template, read its directory structure, configure the entry point, and register it in your project.

Exporting interfaces

Define interface contracts with InterfaceFunction, EventProxy, and RegisteringProxy, then connect them to implementations.

Testing

Run module tests, configure the test environment, and write isolated tests against interface contracts.

Interface registry

List interfaces and implementations in the interface registry so the CLI can find them.