atomic-data-docs icon indicating copy to clipboard operation
atomic-data-docs copied to clipboard

Templates - Generate pre-filled groups of resources

Open joepio opened this issue 2 years ago • 0 comments

Being able to create a bunch of resources in one go can be really useful. In tools like Notion, Monday and Airtable we've got things like templates that do this. They create a structure and often a small amount of demo data to help users get started. You can make very domain-specific templates that demonstrate various use-cases, such as CRM, Blog CMS, todo-list, zettelkasten, etc.

Using JSON-AD with local-id + the Importer could be a nice way of actually implementing this, as it can describe a hierarchical structure of data anywhere.

The biggest challenge is actually creating the JSON-AD. I'm looking for a good way of doing that.

Some ideas:

  • Write a simple template-generation library / function / app thing. Probably in typescript.
  • Use nested JSON objects to denote parent - child relationships. We can infer the parent ID by going to the parent in the JSON.
  • Convert an existing structure into a template. For example: select a parent, find all children, output all as JSON-AD, conver the @id into a simpler local-id, voila!

joepio avatar Feb 14 '23 23:02 joepio