Choose your path
For: everyone.
By role
| Role | Does | Read, in order |
|---|---|---|
| Product owner | Decides whether the product fits | Overview, Widget catalog |
| Implementer | Builds dashboards in the UI | Build your first dashboard, Add saved queries, Add filters, Widget catalog |
| Developer | Embeds dashboards and runs the server | Quickstart, Embed a dashboard in a web page, Authenticate users, Configuration reference |
By setup
A setup is the application that hosts the dashboards.
| Setup | Choose it when | Sign-in | Data credentials | You build |
|---|---|---|---|---|
| ModularIoT setup | Your team uses the ModularIoT web app | ModularIoT | ModularIoT connections | Nothing |
| Standalone server + your app | You want dashboards inside your product | Your identity provider (JWT or ticket) | The server’s database, encrypted | The page that shows dashboards and, without React, the editing forms |
| Library in your Node.js backend | You already run a Node.js backend and want one process | Your code | Your code | Adapters for identity, storage and data |
ModularIoT setup
Dashboards is part of the web app. An administrator turns it on and people open Dashboards in the navigation. Data comes from the organization’s connections. BigQuery SQL queries are written in Settings › Connections › BigQuery.
- Implementers: Build your first dashboard.
- Operators: Deploy with ModularIoT.
Standalone server + your app
Run the server with npm, Docker or Helm. Your identity provider signs people in. The server validates the token or ticket and decides what each person can do. Your page draws dashboards with the UI library.
| Your app uses | How it draws the dashboard | Editing in the UI |
|---|---|---|
| React | Components from @microboxlabs/miot-dashboard-ui/react | The library provides the settings panel, the saved-query editor, the filter editor and the permission editor. You write the settings fields of each widget. |
| HTML or any framework | The Web Component or mountDashboard | You build all the editing forms |
| Phoenix LiveView | mountDashboard from a JavaScript hook. See Embed in Phoenix LiveView | You build the forms in LiveView |
- Try it with the Quickstart.
- Then follow Embed a dashboard in a web page.
- Set up sign-in with Authenticate users.
- Deploy with Docker or Kubernetes.
Library in your Node.js backend
Mount the server’s request handler in your backend, for example in a Next.js route. You implement a few interfaces: who is calling, which organizations and scopes they belong to, and where dashboards are stored. The access rules do not change.
- Read Server library.
What is the same in all of them
- The dashboard document is the same. A dashboard exported from one setup imports into another.
- Every request is checked in the same order: identity, organization, scope, then the action.
- The browser never receives a credential, a data URL or SQL.
Map, container and file upload widgets exist only in the ModularIoT setup. In the other setups, a document that uses them shows “unavailable” in their place.