Make a pack, a phrasebook or an extension

Write one, try it in Little Keebo, and send it to the community library, where everyone with Little Keebo can find it.

You’ll need

Premium

To try it in the app, or the free trial. And a GitHub account, to send it.

Three kinds

A template pack, start to finish

  1. Copy the sample

    Start from thank-you.json in the community library. Give it an id of your own, such as yourname.support, a version of 1.0.0, and the language its templates are in.

  2. Write your templates

    Each needs a new lowercase UUID as its id, a shortcut as its trigger, and its words in text, with the blanks and fields it holds. Fields and blanks lists what a template can hold, and the pack format every rule a pack follows.

  3. Check it

    The community library checks every pack against the schema the app reads. Run the same check in your copy of it first, with Python 3 and jsonschema (pip install jsonschema):

    curl -O https://littlekeebo.app/schema/template-pack.schema.json
    python3 scripts/check-templates.py template-pack.schema.json templates/yours.json
  4. Try it in Little Keebo

    In the app, open Templates, choose Browse the library… in the sidebar, then Teach from File…, beside Refresh, and pick your pack. The app checks what the schema can’t, such as each blank a template describes being in its words, then opens the pack in Templates: Keebo knows it now. Type one of its shortcuts in Mail.

  5. Send it to the community library

    Put the file in templates/, run python3 scripts/build-extension-index.py at the top of the repository, and open a pull request. It runs the same check. Once it’s merged, the pack is published to the community shelf the app lists. A version is published once, so to change it later, raise its version.

A phrasebook or an extension

The same way, from cooking.json or wordcount.js. The extension guide has both formats, and every function a script can call. Try a phrasebook with Add from File…, on the Phrasebooks page, and an extension with Teach from File…, on the Extensions page. Send either as you would a pack, from its own folder:phrases/ or extensions/.

The files, for your tools

/schema/template-pack.schema.json
The pack format as JSON Schema, at the address its $id names.
/schema/fields.json
Every field, its options, and an example of each.
/schema/template-pack.fixtures.json
Packs the app must read, and packs it must refuse.
/schema/snippet-cases.json
Template words, and what each types for the sample writer.

Found a problem?

With a package from the community library, tell its author on the community library’s issues ↗. With Little Keebo itself,write to us.