Official components
Where the official components come from, how they are versioned and how to read this catalogue.
On this page
The official components are the building blocks that Total.js publishes for Flow. This section lists every component of the official catalogue, grouped as the Download components window groups them.
Where the components come from
Each component is one HTML file in the GitHub repository totaljs/flowstreamcomponents, in the components folder. The file holds the code that runs on the server, the settings form, the look of the node and the readme.
The repository also holds db.json, the catalogue: one entry for each component with its name, group, version, author, icon, readme and the address of its file. The files and the catalogue are published at:
https://cdn.totaljs.com/flowstream/webcomponents/db.jsonFlow reads this address from Main components in the Settings screen. Your browser downloads the catalogue when you open the Download components window, so you need internet access to use it.
Add a component to a FlowStream
Components belong to one FlowStream. To add one, open the designer, select Add (plus), then Download components, and select the component. The steps are in Download components.
In that window:
- Green components are already installed in this FlowStream.
- A component with an update badge has a newer version in the catalogue than the one you installed. Select it to install the new version.
- A component with a Community badge has an author other than Total.js.
- Read me shows the readme of the component, the same text as in this section.
Versions
Every component has its own version number. It belongs to the component, not to Flow, and it goes up when the component changes. Each entry in this section shows the file name and the version of the component in the repository.
The catalogue and the repository are published separately, so at times the Download components window shows an older version number, or a component that the repository does not hold yet.
How to read an entry
| Part | What it tells you |
|---|---|
| Name and file | The name in the designer, the file in the repository and its version. |
| Inputs and outputs | The connection points of the node: the id in code and the name on the node. |
| Notes | npm packages that Flow installs for the component, and whether a FlowStream can hold only one node of it. |
| Readme | The description from the author. |
| Parameters | The main settings of the node: the key in the configuration, its default value and the label in the settings form. |
Some components work with an external service, such as a database server, an MQTT broker, Total.js API or an AI model. You need your own server or account for them, and their settings ask for its address or token.
Write your own
To build components of your own, or to offer a catalogue to your team, see Develop components.