ShortcutsJS
Published in

ShortcutsJS

Creating iOS 12 Shortcuts with JavaScript and Shortcuts JS 🧞‍

TL;DR

A simple Shortcut, built with Shortcuts JS

Why Build This?

Why can’t I just cut out the middleman and write the code myself?

Reverse Engineering a Shortcut

A .shortcut file, opened in VSCode
A .bplist file, opened in XCode
A Shortcut’s WFWorkflowActions array, formatted as JSON

Shortcuts JS

A shortcut to calculate 1 + 2, formatted as JSON
The generated Shortcut, successfully imported into the Shortcuts app
  • It should expose a very simple API.
  • It should be easy, if not trivial, to add additional actions.
A simple Shortcuts JS example

What Now?

--

--

Build Apple Shortcuts using JavaScript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Josh Farrant

Full stack JavaScript developer based in Birmingham, UK. 👨🏻‍💻🧞‍👨🏻‍✈️⛷