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
PremiumTo try it in the app, or the free trial. And a GitHub account, to send it.
Three kinds
A template pack
Templates with blanks, in categories. A JSON file, data only, so teaching Keebo one never asks for trust.
A phrasebook
A field and its terms, given to the writing model so Keebo’s guesses use that field’s words. A JSON file.
An extension
A command, an action or a check. One JavaScript file, run in a sandbox with no files or keys.
A template pack, start to finish
Copy the sample
Start from thank-you.json in the community library. Give it an
idof your own, such asyourname.support, aversionof1.0.0, and thelanguageits templates are in.Write your templates
Each needs a new lowercase UUID as its
id, a shortcut as itstrigger, and its words intext, 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.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
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.
Send it to the community library
Put the file in
templates/, runpython3 scripts/build-extension-index.pyat 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 itsversion.
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.