Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Metadata

Filepack packages may contain metadata describing the package in metadata.filemeta. This metadata is stored as deco, which is not human readable or writable.

When authoring a package with filepack create, metadata is read from a template named filepack.yaml in the package root, as well as automatically extracted from files it references. This metadata is converted to deco and saved to metadata.filemeta.

See the schema of filepack.yaml in Metadata, and an example below.

The media field may optionally contain metadata describing the package media. Packages with media metadata are displayed by the Filepack server with the ability to browse and play the audio, image, or video items that they contain.

See Media for supported media types and file formats.

The unstable web media type may be used for packages containing web content, which is served from the static/ directory of the package, with the required entry point static/index.html.

# Path to cover art. Must be square.
artwork: cover.png

# Primary person or group who created the content.
creator: John Horace Tobin

# Single-line description of the content.
description: A compilation of supernatural occurrences, entities, and facts.

# Official homepage of the content.
homepage: https://tobin-society.org/spirit-guide

# Two-letter ISO 639-1 code of the content's primary language.
language: en

# Lint configuration.
lints:
  # Expected lints.
  expect:
    - media-missing

# Metadata describing the media content of the package.
media: ...

# Metadata describing the package itself, as opposed to its content.
package:
  # Path to a colophon describing the package.
  colophon: COLOPHON.md
  # Primary person or group who created the package.
  creator: Egon Spengler
  # Single-line description of the package.
  description: >-
    First edition on loan from NYPL Main Branch research stacks. Captured via
    Microtek MS-300A flatbed scanner.
  # Official homepage of the package.
  homepage: https://ghost-busters.net/~egon
  # URLs where the package's content was obtained.
  sources:
    - https://www.nypl.org/research/research-catalog/bib/b17337164
  # Time the package was created.
  time: 1984-07-08
  # Title of the package.
  title: Tobin's Spirit Guide - First Edition

# Primary publisher of the content.
publisher: Miskatonic University Press

# Path to a readme describing the content.
readme: README.md

# Rights statement for the content.
rights:
  # Reason the content is believed to have the stated status.
  basis: Published in 1929.
  # License of the content.
  license: CC-BY-4.0
  # Links supporting the rights statement.
  links:
    - https://tobin-society.org/spirit-guide/copyright
  # Notices required to accompany the content.
  notices:
    - Courtesy of the New York Public Library
  # Rights status of the content.
  status: licensed
  # Paths to license files.
  texts:
    - LICENSE.txt

# Time the content was created.
time: '1929'

# Title of the content.
title: Tobin's Spirit Guide

The homepage URLs are of course anachronistic, as the World Wide Web was created in 1989, some years after Egon first packaged Tobin’s Spirit Guide for Filepack.

media: audio

media:
  # Collection of audio items.
  type: audio
  # Metadata describing the audio items.
  items:
    - # Path to the audio file.
      path: foo.flac

media: image

media:
  # Collection of image items.
  type: image
  # Metadata describing the image items.
  items:
    - # Path to the image file.
      path: foo.png

media: video

media:
  # Collection of video items.
  type: video
  # Metadata describing the video items.
  items:
    - # Path to the video file.
      path: foo.mp4
      # Path to a placeholder image. Should have the same resolution as the
      # video file.
      placeholder: foo.png

media: web

media:
  # A web site, with `static/index.html` as its entry point.
  type: web