Your own catalogue
Publish your components in a catalogue file that appears in the Download components window next to the official components.
A catalogue is a JSON file that lists components and the addresses of their files. Flow shows the official catalogue in the Download components window, and it can show a second catalogue of your own next to it, so your team installs your components the same way as the official ones.

The catalogue file
The file is an array with one object for each component. It has the same structure as db.json in the official repository:
[
{
"id": "greeting",
"group": "Demo",
"name": "Greeting",
"url": "https://components.example.com/greeting.html",
"author": "Jane Doe",
"icon": "ti ti-comment",
"color": "",
"version": "1",
"kind": "",
"readme": "Greets the incoming name. The greeting can contain variables, for example `{welcome}`."
}
]| Field | What it does |
|---|---|
id | The id of the component. |
name | The name in the window. Flow also uses it to find out whether the component is installed. |
group | The heading in the window. Components without a group are listed first, without a heading. |
url | The address of the component file. Flow downloads it when the user selects the component. |
version | The version. When it is higher than the installed version, the window shows an update badge. |
author | The author. An author that does not contain Total.js gets a Community badge. |
icon | The icon in the window. |
color | A color for the icon, for example #7A5CFF. Empty uses the color of the group. |
kind | A label, such as trigger, action or output. |
readme | The text of Read me, in Markdown. |
Keep name, version and icon in the file equal to exports.name, exports.version and exports.icon of the component. Flow installs the component under the exports.id of the file.
Publish it
Put the catalogue and the component files on a web server. The browser of each user downloads them, so:
- the addresses must be reachable from the browsers of your users;
- on another domain than Flow, the server must allow cross-origin requests (CORS).
The public folder of Flow is one place for them: a file at public/catalogue/db.json is served at /catalogue/db.json by Flow itself.
Connect it to Flow
- Stop Flow.
- Add the address of your catalogue to the
configfile in the Flow folder:
components2 : https://flow.example.com/catalogue/db.json- Start Flow again.
Open the designer, select Add, then Download components. Your components appear in their groups next to the official ones. For the other keys of the file, see Configuration file.
Release a new version
- Change the component file and raise
exports.version, for example from1to2. - Raise
versionof the component in the catalogue to the same number.
In every FlowStream that has the old version, the window shows the update badge on the component. Selecting it installs the new file.