Skip to main content
This procedure creates a Projects module with one object, one view and one sidebar item. The module is a manifest only: it has no server code and no React.
  1. Create the package. Make a folder for it under modules/, with a package.json that exports the manifest:
  2. Generate ids. Everything in a module needs an id, and an id is a uuid. Ask the CLI for as many as are needed:
    If @devias/cli is installed in the project, the command is devias id 6. Put the output in one ids.ts file, so the rest of the module refers to the ids by name:
    src/manifest/ids.ts
    Use newly generated ids: an id is made once and never changes, and two modules must never share one.
  3. Write the manifest. Declare the object, its fields, a view and a sidebar item:
    src/manifest/index.ts
  4. Register the module. Add the package to the root package.json as a workspace dependency, then list it in devias.config.ts:
  5. Install the module. Start the app, open Settings → Modules, choose Projects, review the plan and apply it. Expected result: a Projects item appears in the sidebar and opens a table with the columns Name and Status.

Change the module after installing

Edit the manifest and reload the studio. In development, changes that do not delete anything are applied automatically. A change that would remove something is shown for review first, so data is not lost by accident. From the terminal, devias plan shows what would change and devias apply applies it. See Plan and apply.