Uplink Docs Get Uplink
Build a plugin

Build a plugin

What a plugin of your own can do, what it is made of, and how it reaches the Marketplace.

A plugin of your own sorts texts the way you'd like them sorted: bills in a tab of their own with the amount on the row, a parcel's tracking number a press away, receipts marked read as they come. It's one file you write by hand that says what to look for in a text and what to do with it. You try it on your own device in Developer mode, then send it to the Marketplace, where it's reviewed before anyone else can add it.

What a plugin can do

What it can't do

One file: ghost-plugin/1

A plugin is one file, <id>.uplinkplugin, of JSON in the ghost-plugin/1 format: its name and description, its icon, what it may do, its settings, and its rules. It finds words in a text with phrases like amount due {amount}, never with code or regular expressions, so no plugin can hang the app, and one that's slow is paused. Every field is on The plugin file.

{
  "format": "ghost-plugin/1",
  "id": "mybills",
  "version": "1.0.0",
  "name": "My bills",
  "tagline": "Bills in a tab of their own",
  "description": "Texts that say a bill is ready go to a Bills tab, with the amount on the row.",
  "symbol": "calculator",
  "hue": "amber",
  "shelf": "organise",
  "labels": ["bills"],
  "permissions": ["sort"],
  "rules": {
    "tags": [{"tag": "bill", "any": ["your bill is ready", "amount due {amount}"], "detail": {"from": "token"}}],
    "sections": [{"key": "bills", "label": "Bills", "icon": "calculator", "kind": "tab", "takes": {"tagged": ["bill"]}, "row": {"value": "{tag:bill}"}}]
  }
}

That's a whole plugin, as small as one can be: Developer mode loads it as it is. To submit it, it also needs an icon, your username and a help address (the whole Bills file has them).

Where it runs

From an idea to the Marketplace

  1. Write it

    Start from one of the examples below and change it, or write one from nothing with The plugin file beside you. Any text editor will do.

  2. Try it in Developer mode

    Load it in Settings › Developer › Plugins in development from a file, a link or the clipboard, then try it on a text without waiting for one to come. Change it, press Reload, try it again. Your first plugin walks through it.

  3. Submit it

    Marketplace › Submit a plugin: the plugin, its icon, description and tags, a screenshot or two, and a note for the reviewer. Submit it to the Marketplace.

  4. Review

    A person at Uplink reads the whole file, tries it, and approves it, asks for changes or turns it down. Marketplace › My submissions shows where it stands, and the app tells you when that changes.

  5. Listed

    Approved, it's in Discover for everyone with the Reviewed mark, under your username. People see what it can do before they add it, and can report it from its page.

The examples

Two complete plugins to start from, each one file:

ExampleWhat it shows
BillsAn amount found in a text and shown large on its row, a tab and a kind, a setting of the person's own words, and marking receipts read behind a switch.
ParcelsWords between words, tracking codes, a choice setting, a reply to send, a link, moving a conversation back to Messages, and silencing behind a switch.

They're on this site at https://gogho.st/docs/examples/bills.uplinkplugin and https://gogho.st/docs/examples/parcels.uplinkplugin, which Developer mode can load as they are, and in the app's repository in examples/plugins on GitHub, with a note on each. Their ids, bills and parcels, can't be submitted: give yours an id of its own.

Something wrong or missing here? Tell us in the Alpha testers circle, or at the app's GitHub.