Skip to content

devord/steward-data-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Steward

Your data repo — Steward stores nothing itself; everything it knows lives here.

Layout

  • data/routines.yaml — what runs, and when.
  • data/dashboards/<slug>.yaml — one grid layout per board (main is the default).
  • data/repo.yaml — optional rail display name and section order.
  • data/triggers/<slug>.json — API-trigger token for a manual cloud routine.
  • templates/routines/<id>.md — routine templates, shown in the app's picker.
  • artifacts branch — published widgets, written via publish-widget.

Edit in the Steward app or by hand — it's plain YAML, validated on load.

Enacting schedules & triggers

Run the steward CLI (published to npm) and point it at this repo — no checkout needed; it manages its own clone:

npx @devord/steward sync --repo <owner>/<name>            # dry-run plan
npx @devord/steward sync --repo <owner>/<name> --apply

Scheduled-local routines (launchd) want a stable install — npm i -g @devord/steward, then steward sync …. The app's per-widget setup cards print these lines pre-filled.

Bootstrapping the artifacts branch

The first publish-widget run creates the artifacts orphan branch automatically. To hand-publish a sample before any routine exists:

git checkout --orphan artifacts && git rm -rf .
mkdir -p w/my-widget
# author w/my-widget/index.html per the widget standard
git add w && git commit -m "publish: my-widget (sample)" && git push -u origin artifacts

Contributors