Uplink Docs Get Uplink
Build a plugin

Your first plugin

Load the Bills plugin in Developer mode, try it on a text, then change it.

From nothing to a plugin of your own in a few minutes: load the example Bills plugin in Developer mode, try it on a text, switch it on, then change it and load it again. Trying it works on every platform; seeing it sort your texts needs an Android phone.

Turn on Developer mode

  1. Tap Version twelve times

    Open Settings › About and tap Version twelve times in a row. Taps more than two seconds apart start the count again, and from the eighth a note says how many are left. On a Mac or Windows PC, press Version in its Settings › About the same way.

    About
    Uplink
    Version0.10.1
    What's newWhat the last update brought.
  2. Settings › Developer appears

    Developer mode is on, and Settings › Developer is there now (on an Android phone, Settings › API too). The Developer mode switch at the top of Settings › Developer turns it off again; plugins in development stop while it's off, and come back when it's on.

Get the Bills plugin

In Settings › Developer › Plugins in development, tap Load a plugin from a link and give it this address:

https://gogho.st/docs/examples/bills.uplinkplugin

That works on every platform. Or copy the file's words from anywhere (it's plain text) and tap Paste a plugin.

What you see

Bills gets a row of its own, switched off until you agree to what it can do: its version, where it came from, and whether it's running.

Developer
Developer mode
Plugins in development
Load a plugin from a fileA .uplinkplugin file.
Paste a pluginIts words, copied from anywhere.
Load a plugin from a linkhttps, or http://127.0.0.1 with adb reverse. Reload fetches it again.
Bills1.0.0 · from a link · needs your OK
Submit a plugin to the Marketplace
How to build and test one

Load a plugin you're making to try it on this phone. It isn't reviewed, and runs only while Developer mode is on.

Settings › Developer, with Bills loaded from a link.

A plugin with problems or warnings says how many of each on its row. A warning doesn't stop it loading. Open it to read them: what each one means.

Try it on a text

Tap the Bills row to open its page. Under Try it, type this and tap Try it:

Your bill is ready. Amount due: $45.20 by 3 Dec.

No text needs to come and nothing is sent: it runs Bills on those words as if they came from a number not in your contacts. It says Bills tags the text bill with $45.20, puts it in its Bills tab with $45.20 on the row, and offers Copy the amount. That works on every platform, an iPhone's too.

Bills
Try it
Try it
Tagsbill: $45.20
Its tabBills
Its row$45.20 · A bill
Copy the amountOn its row, in the list's menu and in a message's menu
Try it, on a plugin's page in Settings › Developer.

Where a built-in plugin would take the text first in your app, Try it says so under its answer: here, In this app, Kinds of text › Payment reminders takes this text first. That's the next step's reason.

Switch it on

Back in Settings › Developer, switch Bills on. The first time, a sheet says what it can do, made from the file itself, and that nobody has reviewed it. Tap Switch it on.

Switch on Bills?
BillsBy @yourname

Not reviewed by anyone: switch this on only if you made it.

Reads texts from numbers not in your contactsTheir words and who they're from, on this phone, to sort them.
Sorts texts into its own tabs and kinds
Can mark texts as read
Copies to your clipboard when you ask
Can't reach the internet
Switch it on
Not now

On an Android phone, Kinds of text sorts bills before any plugin from another developer, into its Payment reminders. To see your Bills tab, open Marketplace › Kinds of text and switch off Payment reminders in its settings. Now a text like the one you tried goes to Bills:

MessagesCodesBills
72$45.2072975 · A bill
The Bills tab: the amount large on the row, and a press to copy it.

A conversation's row keeps its own name; Bills only adds the amount and its caption. While a plugin in development is on, the list says so in a quiet line, A plugin in development is on · Settings › Developer, because its rows look like any other plugin's.

Change it, and load it again

Save the file on your computer, change a phrase (add "your invoice is ready" to the first rule's any, say), and load your copy from a link your computer serves. With the phone plugged in by USB:

python3 -m http.server 8080        # in the folder with your bills.uplinkplugin
adb reverse tcp:8080 tcp:8080      # the phone's 127.0.0.1:8080 is now your computer's

Then, in Settings › Developer › Plugins in development, load a plugin from this link. With the same id, your copy takes the place of the one from gogho.st, switched on or off as that was:

http://127.0.0.1:8080/bills.uplinkplugin

From then on, each time you save the file, tap Reload on its page and try it again. Plain http works only to the device itself like this; anything else needs https. On a Mac or Windows PC there's no adb to it: serve the folder the same way and load http://localhost:8080/bills.uplinkplugin, or on a Mac load the file itself, which Reload reads again.

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