Gyroscope is an OWOX Data Marts plugin that answers one question first: are we on track for the goal in the project description? It draws the project's ontology: one model of business classes, the same for every member of the project.
- With no date range, the default, the canvas is the ontology view. The class that owns the goal sits in the center, with 3 to 7 core dictionary classes (Customers, Users, Products) around it. Cards show class names only.
- With a date range, the canvas is the flow view. Each card shows one key metric against plan, with a trend, and with a forecast when the range ends in the future. Classes connected to the core ones appear below them.
The shared ontology spec describes both views.
- The project description has a Metrics table with a Critical number row that links to a Data Mart field. That field is the goal.
- An AI Credential is mapped when the plugin is installed. Gyroscope uses it to build the model of classes and metrics.
- Calculated fields in your Data Marts reference other Data Marts. Gyroscope draws a connection for each reference.
- A project with a 0.3 model is migrated on the first admin open, with no AI build, and members see the model right away. Only a project with no model needs an admin to build one; until then, members see "An admin hasn't set up Gyroscope yet".
- Describe the business model in the project description: what is sold, to whom, and through which channels. The first build takes the core classes from it. Calculated-field references are still what draws connections.
Settings has three tabs. General holds your view and, for admins, the project threshold. Metrics edits the model: classes, metrics, plans and forecasts, with a Data Mart icon before each title. Checkup is the setup page: it sets a project up from scratch or adjusts an existing one. Its sections (critical number, core classes, contexts, connections, metrics, housekeeping) show blockers, warnings and recommendations with tooltips. A check that isn't filled asks a question, suggests an answer, and an admin applies it with one click.
npm install
npm test
npm run typecheck
npm run buildThe plugin platform does not support a local preview. Test Gyroscope as an installed plugin.
- Push to
main. GitHub Pages deploysdist/to the folder of the compatibility line:v4/for 0.4.x. Installs of 0.2 keep loading the root. - A new compatibility line (0.5) needs
plugin.jsondelivery.urlmoved to its folder (/v5/); a test fails until it is. - Check the plugin with
owox-ctl plugins check OWOX/gyroscope --ref main. - Create a release with
gh release create v0.4.0 --target <full commit SHA> --generate-notes. - In OWOX, open Plugins, then Publish Plugin, and choose "Only me" for testing.
The design spec has the details. Each step below maps to a section.
- Build the ontology model: Gyroscope turns Data Marts, references and contexts into classes, connections and metrics, and takes the goal class and core classes, with key metrics (spec section 5).
- Date ranges: presets, the fact window, the forecast window and the comparison window, all in UTC (section 6).
- Metrics: one query per metric, a forecast, plan values and statuses (section 7).
- Canvas and card: layout by reference distance, context filters, and the metric card (section 8).
- States: blocked, failed and loading screens, each with a fix or a retry (section 9).
- Cache: the canvas reads cached results, and a refresh runs when the data is stale (section 10).
The shared ontology spec covers the shared model, core classes, the two views and Checkup.