All experiments

Companion

Acme Workboard

Model a small workboard once in a root BlockML library, then derive a React companion and an Angular companion from that model.

  1. You

    Initialize the Project

    Start with an empty directory and initialize a new BlockML project for the Acme Workboard.

    terminal npx
    npx @blockml/cli init com.acme.workboard
    npm install
    npx blockml validate

    The init command creates a complete minimal Blockmaschine project, including:

    • a package.json
    • the BlockML CLI setup
    • a minimal com.acme.workboard BML library
    • its Library.bml and README

    The generated package.json references the root BML library:

    package.json json
    {
      "blockml": {
        "library": "./blocks/com/acme/workboard/Library.bml"
      }
    }

    After npx blockml validate completes successfully, the initial Blockmaschine project is ready.

    At this point the BML library is still intentionally minimal. It will become the authoritative Workboard SSOT in a later step.

    Next: Convert the project into a monorepo and add the React and Angular companions.

  2. Agent

    Convert to a companion monorepo

    Turn the initialized repository into an npm workspace and add empty React and Angular companion applications. Leave the root BlockML library where it is.

    Copy this prompt into a coding agent. Open it to read the full text.

    Agent prompt
  3. Agent

    Model the Workboard SSOT

    Turn the existing com.acme.workboard library into the authoritative Workboard model. Leave both companions untouched.

    Copy this prompt into a coding agent. Open it to read the full text.

    Agent prompt
  4. Agent

    Derive and render the React companion

    Derive a React-specific BlockML SSOT from the Workboard model, then render the React application from that derived model. Leave the Angular companion untouched.

    Copy this prompt into a coding agent. Open it to read the full text.

    Agent prompt
  5. Agent

    Derive and render the Angular companion

    Derive an Angular-specific BlockML SSOT from the Workboard model, then render the Angular application from that derived model. Leave the React companion untouched.

    Copy this prompt into a coding agent. Open it to read the full text.

    Agent prompt