Uplink Docs Get Uplink
Build a plugin

Try it in Developer mode

Load your plugin from a file, a link or the clipboard, try it on a text, reload it, and read what went wrong.

Developer mode loads a plugin you're making straight onto your own device, unreviewed, so you can try it, change it and load it again before anyone else sees it. Everything here is in Settings › Developer › Plugins in development, and on each plugin's own page there.

Developer mode

Turn it on with twelve taps on Settings › About › Version (how). Plugins in development load only in Developer mode, and run only while it's on: switch it off and they stop, switch it back on and they're there again. While one is on, the list of conversations says so in a quiet line: A plugin in development is on · Settings › Developer. They show in the Marketplace too, under Marketplace › In development and as In development · not reviewed on their pages, so one never looks like a reviewed plugin.

Tap a plugin's row in Settings › Developer for its page there: where this copy came from and when, its Problems, what it ran into Lately, Try it, its own settings once it's on, and Reload, Open in the Marketplace, Submit it to the Marketplace and Remove. Its page in the Marketplace leads back here, so changing it, reloading, trying it and reading what went wrong all happen in one place.

Three ways to load one

WayAndroid phoneMacWindows PCiPhone
Load a plugin from a fileYes, and a .uplinkplugin file shared into the app loads tooYesNoNo
Paste a plugin: its words, copied from anywhereYesYesYesYes
Load a plugin from a linkYesYesYesYes
python3 -m http.server 8080      # on your computer, in your plugin's folder
adb reverse tcp:8080 tcp:8080    # then load http://127.0.0.1:8080/yours.uplinkplugin on the phone

Try it, and the samples

A plugin's page in Settings › Developer has Try it, which runs it on words you type as if they'd come from a number not in your contacts. Nothing is sent, no text has to come, and it works on every platform, an iPhone's too.

SampleBills makes itParcels makes it
Your bill is ready. Amount due: $45.20 by 3 Dec. Pay at example.com/paybill: $45.20, Bills
EnergyCo: your statement is ready to view online.bill, Bills
Thank you for your payment of £30.00. It may take 2 days to show.paid, Receipts
Payment of €12,50 received. Ref 88213.paid: €12,50, Receipts
Reminder: minimum payment due on your card.bill, Bills
Your council tax is due next week.
Your parcel has shipped! Tracking number: 1Z999AA10123456784parcel, track: 1Z999AA10123456784, Parcels
Your order is out for delivery today.parcel, Parcels
We tried to deliver your parcel. Missed delivery, rebook at example.comparcel, Parcels
Good news, your order has been dispatched.
Your new blue parcel has shipped. Tracking no. JD014600006295117parcel, track: JD014600006295117, Parcels
Your code is 482913. Don’t share it with anyone.
Are we still on for dinner on Friday?
Your appointment is on March 5th at 3pm. Reply C to cancel.
Congratulations! You have won a $500 gift card. Claim now: http://prize.example/win
Vote YES on Measure 12 this Tuesday. Paid for by Friends of the Park.

Each sample is from 72975, with the plugin alone and its settings as they start. A blank is nothing: no tags, no tab.

Try it and Try the samples use the plugin's settings as they start, not what you've chosen on its page, and Every switch on turns its switches on, never a choice or words. So the council tax and dispatched samples come out blank here: Bills sorts the first only with council tax in More words for bills, and Parcels sorts the second only with What counts as a parcel on Anything about shipping. Try those on real texts once you've chosen them.

Reload

Reload, on a plugin's page, loads it again from where it came from: a link is fetched again, and a file loaded on a Mac is read again from where it is. A pasted plugin, or a file picked on Android, has no Reload: paste it or pick it again, and the new copy takes the old one's place.

Problems and errors

A plugin's page lists Problems, its newest copy's, each with its code, where it is in the file (rules.tags[0].any[2], or nothing for the whole file) and what's wrong in words, and Lately: what it ran into while running, newest first, such as a button the app refused. A load that isn't JSON, or has no id the app can use, adds no row at all: a sheet lists its problems, with Copy the problems.

Errors stop a plugin loading and being submitted, and its row counts them as problems. Warnings don't, and its row counts them apart (1 warning), but a reviewer sees them too:

WarningWhat it means
broad_phraseA phrase with no token that's one short word (four letters or fewer), or one like "your", "the" or "thanks": it matches far more texts than you mean.
description_linkThe description has a web address in it.
unused_tagA tag nothing uses: no condition, template or section reads it.
opens_linksIt opens its link when a button is pressed: check that's your own page.
ErrorWhat it means
too_largeThe file is over 262,144 bytes.
too_deepIt's nested more than 8 deep.
bad_utf8, bad_jsonIt isn't UTF-8, or isn't JSON.
not_objectThe file, a rule, a setting or a condition isn't an object.
format_unknownformat is missing, or isn't ghost-plugin/1.
needs_newer_appminApp is newer than this app.
unknown_fieldA key the format doesn't have, anywhere (a row's title, a section's hidden and a condition's group among them).
missingA required field isn't there. To submit, that includes icon, developer and support.
wrong_typeA field is the wrong kind of JSON: a string where a list should be, say.
fractionA number with a fraction or an exponent.
bad_textWords that break the rules for words: a space at an end, a line break where there can't be one, an invisible character.
too_long, too_shortWords longer or shorter than they may be.
too_many, too_fewMore or fewer of something than allowed: labels, links, settings, rules.
duplicateThe same thing twice where each must be different: keys, ids, labels, permissions, links, screenshots, a choice's values.
bad_id, id_reservedThe plugin's id breaks its pattern, or is one the app keeps.
id_exampleA submission with an example's id: "That's the example's id: give your plugin an id of its own."
bad_versionversion or minApp isn't three numbers with dots between.
bad_hue, bad_shelf, bad_label, bad_permissionNot one of the words the format takes.
bad_icon_nameNot one of the app's icon names, or one kept for the app.
bad_iconThe icon isn't a square PNG of 64 to 512 pixels with only the chunks allowed, or is too large.
bad_url, bad_emailAn address the format doesn't take.
bad_shotA shots entry isn't 64 lower-case hex characters.
bad_developerdeveloper isn't a username, or has uplink, ghost, gogho, official, verified or support in it.
name_reservedThe name, or a section's label, is a built-in plugin's or one of their tabs' or kinds', even in look-alike letters, or has uplink, ghost or gogho in it.
bad_colorA face's colour isn't #RRGGBB.
bad_keyA setting's key, a section's key, a tag's name, an action's id or a choice's value breaks its pattern.
bad_slot, bad_verbNot a place a button can go, or not something a button can do.
verb_fieldsA button's fields are missing, or are ones its do doesn't take.
verb_not_hereA button in a place that can't take it: a write in the list's menu or on a row, a move in a message's menu or to a kind, a row's tap that isn't a copy.
unknown_setting, unknown_tag, unknown_section, unknown_actionA name for something the plugin doesn't have, or has of another kind. In a tag rule, a tag no earlier rule gives.
section_conditionsection in a condition that isn't a button's.
from_with_incomingfrom anywhere in a plugin with an incoming rule.
bad_link_whenfrom anywhere in a plugin with a link button: in a tag rule's, a section's or a button's condition.
needs_permission, permission_unusedA rule uses a permission the plugin doesn't list, or it lists one nothing uses.
link_not_declaredA link button's address isn't the plugin's one link.
incoming_needs_toggleAn incoming rule's setting isn't a switch that starts off.
takes_nothingA section's takes has neither tagged nor from.
tag_rule_no_triggerA tag rule with nothing to start it.
leaves_main_on_filterleavesMain on a kind.
choice_defaultA choice's default isn't one of its values.
header_full, slot_fullMore than one button in the header, or three lines in a menu.
bad_templateA placeholder where none may be, a brace where none may be, or a {…} that isn't {tag:name}.
too_many_phrases, too_many_anchorlessOver 200 phrases, or over 8 without an anchor, in the plugin; or over 1,600 phrases in all of this device's plugins.
phrase_bad_text, phrase_bad_token, phrase_tokens_touch, phrase_token_touches_word, phrase_words_edge, phrase_url_followed, phrase_too_many_tokens, phrase_too_shortA phrase breaks one of its rules.
empty_packNo tag rule and no section.
too_many_issuesA hundred problems or more: the first 99 are listed, and this one says how many more. Fix those and check it again.
not_canonicalOnly from the Marketplace: the file wasn't sent the way the app sends it.

Loading can be refused for reasons outside the file too: too_many_packs (sixteen plugins on the device already), id_installed (the Marketplace's copy of that id is here), id_changed (a reload with another id), bad_link and fetch_failed (a link that isn't allowed, or didn't answer), and dev_mode_off.

From your computer, through the API

With the phone plugged in by USB and Settings › API › Serve the API on (Developer API), a script can load, try and remove plugins in development:

adb forward tcp:8765 tcp:8765

# Load it: the file's JSON as "pack" (or its words as a string, "text")
printf '{"pack": %s}' "$(cat bills.uplinkplugin)" | curl -s http://localhost:8765/api/plugins.devInstall \
  -H 'Authorization: Bearer <token>' --data-binary @-

# Only check it, loading nothing
printf '{"dryRun": true, "pack": %s}' "$(cat bills.uplinkplugin)" | curl -s http://localhost:8765/api/plugins.devInstall \
  -H 'Authorization: Bearer <token>' --data-binary @-

# What the phone's plugins that are on make of a text
curl -s http://localhost:8765/api/filters.classify -H 'Authorization: Bearer <token>' \
  -d '{"text": "Your bill is ready. Amount due: $45.20 by 3 Dec."}'

# Remove it
curl -s http://localhost:8765/api/plugins.devRemove -H 'Authorization: Bearer <token>' -d '{"id": "bills"}'

Which texts a plugin sees

A plugin sees only texts from one person not in your contacts, in words known to be theirs, not sent with Uplink's encryption, and never chats on other networks, circles or spaces (all of it). When you test on real texts:

Testing the next version of a listed plugin

Your copy in development and the Marketplace's copy of the same plugin can't both be on one device. To try your next version:

  1. Remove the Marketplace's copy

    On its page in the Marketplace, tap Remove. Your choices for it are kept.

  2. Load yours

    Load your new version in Settings › Developer › Plugins in development, and try it as above.

  3. Then put things back

    When you're done, remove your copy there, and add the Marketplace's again from its page. Once your new version is approved, it's an update like anyone else's.

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