↓ Skip to main content
A mosaic of small tiles forming five large blocks in the centre, two medium blocks beside them, and a border of small ones

Overview of the @maximo Packages

Your First Maximo Mobile App - This article is part of a series.
Part 4: This Article
Your first build log names a dozen packages under @maximo, and nothing tells you which ones matter. Five of them matter for every app. Two more matter when you need a map or a shared lookup. The rest belong to the platform, and you will meet them in a log long before you need them. This is the map.

MAS 9.2 series framework 3.2.8xx

This is the fourth post of the starting series. Understanding Your First Maximo Mobile App showed the files, and MAML Basics showed the language. This post shows the libraries the language compiles against. We went through the package.json of every app that ships with the 9.2 series and ordered the packages by how many apps depend on each. The order is the durable part, and the versions move with every release.

The five no app builds without
#

Nearly every shipped app declares the same five packages, and your app will too, because the build scripts call them by name. They split into three that run inside the app and two that run on your machine.

d2 diagram d2 diagram

Three tiers, where the top one is in every app, the middle one is added by hand, and the bottom one is the container and the shell.

  • @maximo/app-processor turns your MAML into React. It reads app.xml, checks every element against the registry, and writes one React component per page plus the application bootstrap. When a build says an element is unknown or an attribute is deprecated, this is the package talking. You never call it; the CLI does. It is the reason MAML is a closed vocabulary.
  • @maximo/maximo-js-api is the framework under everything. Datasources, the application and page objects, the REST connection, the session, the data formatters, and the whole offline stack live here. Every this.app, every datasource.load(), every app.setCurrentPage() in a controller is a call into this package. It has no UI in it at all, which is why the same package runs in a browser tab and inside the mobile container. When a datasource misbehaves, the answer is in here.
  • @maximo/react-components is the elements. Every <box>, <label>, <data-list> and <smart-input> you write compiles to a component in this package, built on IBM’s Carbon design system. Its element registry is the one the app-processor checks against. When an element renders in a way the reference did not promise, this is where the behaviour lives.
  • @maximo/graphite-cli is the developer’s daily tool. dev starts the development server, build compiles, test runs the suite, preview serves a build, proxy stands a Maximo proxy up, and upgrade moves a project to a newer framework. It is the command the npm scripts in every app call.
  • @maximo/maxdev-cli is the other tool, for the app’s lifecycle. localize generates the label file and package-app zips the app. upload-app and download-app move it to and from a server, and object-structure inspects a Maximo object structure. gen-xsd writes a schema for editor support, and setup-proxy writes the proxy config. It handles what the framework build does not.

Together those five are the whole toolchain, which is two CLIs to drive it, one compiler, one framework and one component library.

You can check this on your own app. Here is the manifest of our Starter app, FSSTARTM, as the server handed it over after the duplicate, with only the @maximo names printed:

jq -r '(.dependencies + .devDependencies) | keys[] | select(startswith("@maximo/"))' package.json
@maximo/app-processor
@maximo/graphite-cli
@maximo/map-component
@maximo/maxdev-cli
@maximo/maximo-js-api
@maximo/maximo-library
@maximo/react-components

Five of the seven are the tier above. The other two, maximo-library and map-component, are the tier below. Our app is a copy of SRMOBILE, and its manifest lists the same seven packages as SRMOBILE’s.

The two you add when you need them
#

  • @maximo/maximo-library is the shared MAML. It holds the datasources, lookups and templates that more than one app needs: the location hierarchy, the asset hierarchy, the person lookup, meter readings, ALN domains. An app pulls one in with a maximo: prefix in a file attribute, and the prefix resolves into this package through graphite.sharedResources in package.json. Many of the shipped apps declare it. The moment you write a location lookup, you want it.
  • @maximo/map-component is the map. Every map an app shows, with OpenLayers and ArcGIS adapters, offline map areas and the Maximo map layers, comes from here. Some of the shipped apps declare it, and it is the largest package in the set by file count. Leave it out until a page needs a map, because it is heavy.

The rest of the container
#

You will not add these to an app, and you will meet them anyway, in a build log, in a stack trace, or in the container’s node_modules. One line each is enough to place them.

PackageWhat it isWhen you meet it
config-serverthe server behind the Application Configuration app: storage, jobs, versionswhen a publish fails or a job hangs
graphite-commonthe HTTP connection, a hybrid data adapter, the simple API helpersin a stack trace under a network error
mas-commonthe MAS core pieces: login, password change, the MAS data adapteron the login screen and in the MAS user apps
mas-common-uia 9.2.x platform package that react-components depends onin the dependency list of the element library
graphite-common-solution-componentsimage maps, card sliders, galleries, the linear chartin a handful of specialised apps
treegridthe tree grid control the scheduling dashboards usein the planning and dispatching apps only
commonlibthe shared React runtime the container loads oncein the container, never in your app
eslint-plugin-graphitelint rules for controllers: no new Date(), no async lifecycle hookswhen the linter flags a controller

Three more names appear in shipped manifests and nowhere in the container: cypress-testing-library, semantic-release-config and lvc. The first two are IBM’s own build tooling. The third is the linear visual control that one app uses, and its elements are the ones the MAML reference cannot see, because the reference is generated from the container.

Which package to open
#

The fastest way to use this map is as a routing table, from the thing you are looking for to the package that holds it.

You are looking forOpen
why an element exists or what it rendersreact-components
why MAML fails to compileapp-processor
how a datasource, the session or offline worksmaximo-js-api
what a build or dev command doesgraphite-cli
what localize, package or upload doesmaxdev-cli
a shared lookup or datasourcemaximo-library
anything about a mapmap-component

Every one of these ships inside the Application Configuration container image. For the version on your own install, read package.json in any app your server holds.

What to read next#

Hello World in Maximo Mobile puts these packages to work in a first app. For the elements react-components provides, Maximo Mobile UI Components is the tour. For the language app-processor compiles, MAML Basics.


The framework’s own documentation ships with every MAS install. In the Application Configuration application, open the ? menu and choose Developer Documentation for the guides and Component Documentation for the element reference. Both are generated from the same packages named above.

Your First Maximo Mobile App - This article is part of a series.
Part 4: This Article