https://github.com/thin-edge/tedge-sparkplug
WIP: Sparkplug B flows
https://github.com/thin-edge/tedge-sparkplug
Last synced: 7 days ago
JSON representation
WIP: Sparkplug B flows
- Host: GitHub
- URL: https://github.com/thin-edge/tedge-sparkplug
- Owner: thin-edge
- License: apache-2.0
- Created: 2026-05-05T10:06:19.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-11T22:02:19.000Z (about 1 month ago)
- Last Synced: 2026-05-11T23:35:13.457Z (about 1 month ago)
- Language: TypeScript
- Size: 12.1 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tedge-flows-examples
Experimental repository to exchange examples which use the upcoming tedge-flows feature.
## Building locally
You can build the flows locally with the following steps which requires nodejs >= 20.
1. Install the dependencies (using `npm ci` instead of `npm install` to install the exact versions defined in the package-lock.json file)
```sh
npm ci
```
2. Build all the flows
```sh
npm run build-all
```
Each bundled flow is stored under the `lib/main.js` of its flows directory. For example, for the `uptime` flow, the bundled file can be found under:
```sh
ls -l flows/uptime/lib/main.js
```
## Adding a new flow to the workspace
You can create a new flow (from a template) using the following command:
```sh
npm run generate-flow myflow1
```