Templates
Using Templates

Templates

Templates are specialized JSON formats that define the structure of asset types and tags. These templates enable the sharing of Panthora use-case structures in a standardized manner, facilitating collaboration and reuse.

Examples

  1. Home Library - Managing a Home Library with Panthora

Writing a Template

Templates are crafted in JSON format. To begin, create a new JSON file, with the following structure:

book-library.json
{
  "$schema": "https://panthora.app/import-0.2.0.schema.json",
  "name": "Book Library",
  "version": "1.0",
  "description": "A concise description of the template's purpose.",
  "author": "Your Name",
  "tags": [],
  "assetTypes": []
}

Utilizing an editor like VSCode (opens in a new tab) enhances the experience by offering code completion guided by the $schema, aiding in the accurate development of the template.

To populate the template, add tags and asset types as needed. Refer to the example templates for inspiration and guidance on potential configurations.

Leveraging AI for Panthora Structure Generation

For those seeking a more streamlined approach, the AI-powered generator simplifies the template creation process. By providing a brief description of the intended Panthora use-case, the AI generates a bespoke template that can be directly imported into Panthora, eliminating the need for manual JSON composition.

Access the AI generator here: Panthora AI (opens in a new tab)

Importing Template

To integrate a template into Panthora, follow these steps:

  1. Open Panthora.
  2. Press Command + K (or Ctrl + K on Windows) to open the command palette.
  3. Type import and select Import Template.
  4. Insert the JSON of your template and select Import to complete the process.

Contribute

Please open Pull Requests that add more examples to showcase what you do with Panthora!