Build your own pack

A pack is a single JSON file. Write it, put it online, paste the address into Motleo.

1. Start from this file

Copy it, or download starter-pack.json. Change the details and add as many tidbits as you like.

{
  "id": "my-first-pack",
  "name": "My first pack",
  "tidbits": [
    {
      "category": "Animals",
      "title": "Octopuses have three hearts",
      "text": "Two pump blood through the gills and one pumps it around the rest of the body.",
      "src": "https://en.wikipedia.org/wiki/Octopus",
      "srcLabel": "Wikipedia"
    },
    {
      "category": "Words",
      "title": "Petrichor",
      "text": "The earthy smell that rises when rain falls on dry ground."
    }
  ]
}

2. What goes in it

FieldRequiredNotes
idyes1 to 64 characters of a-z 0-9 . _ -. Must be unique across all the packs you load.
nameyesUp to 80 characters. Shown next to the category above each tidbit.
tidbits[].titleyesUp to 200 characters.
tidbits[].textyesUp to 2000 characters. Plain text only, no HTML or Markdown.
tidbits[].categorynoUp to 60 characters. A small label above the title.
tidbits[].srcnoA link to the source. Must start with https; other links are dropped.
tidbits[].srcLabelnoUp to 80 characters. The link text. Without it, Motleo makes one from the link.

A pack can hold up to 5000 tidbits and 1,000,000 characters in total. Tidbits without a title or text, and duplicate titles within a pack, are skipped.

3. Put it online

To share a pack, or to have Motleo refresh it for you, host it at an https address anywhere that serves the raw JSON:

Open the address in a browser first. You should see the JSON itself, not a page around it.

4. Add it to Motleo

From a file: you don't have to host anything to try a pack. On Motleo's options page, click Add from file… or drop your .json file onto the page. The file is read in your browser and never uploaded.

From a web address:

  1. Open a new tab and click Manage content packs.
  2. Paste the address of your file and add it.
  3. Your browser asks to let Motleo reach that site. Allow it. Motleo only downloads the pack when you add or refresh it, never in the background.

If something is wrong with the file, Motleo says what, for example that the id is not allowed or that no tidbit has both a title and text.

5. Keep it up to date

Edit the file. For a pack from a web address, use Refresh. For a pack loaded from a file, use Replace file and pick the file again, since the browser doesn't let Motleo re-read it on its own.

Ratings and view counts are tied to the pack id and each tidbit's title. Reordering or fixing a typo in the text keeps them. Changing a title or the pack id starts that tidbit, or the whole pack, from zero.

Tips for good tidbits

Ready? Back to Motleo.