this is something I feel like we've been exploring with the scuttle-*
+ ssb-schema-*
patterns
e.g. ssb-schema-poll
is all schema associated with the domain of polls (namely poll
and position
messages)
meanwhile scuttle-poll
is the high level helper methods for common database actions (writing, queries).
When @piet and I started scuttle-poll these two were in one place but things got very unwieldy with the logic of handling versions of polls, so we split it out. I'm really happy with the split in this place.
I've also been thinking about how to register things with scuttle-shell
, but more like sets of ssb-*
scuttlebot plugins that apps you want to run require. Then scuttle-shell finds the minimal set and starts you up.