Source code of shcuts.app, a web app to preview workflows created in Shortcuts on iOS.
This is just a toy project so things might not be implemented the best way possible or work as expected.
src/
Frontend part, responsible for presenting the plist file of each shared shortcut with an (almost) user friendly UI.server/
Server side logic. Downloads the plists from iCloud, converts them from their binary representation into an XML, saves it in a local database. Saved plists are then exposed via a couple of endpoints to the frontend.
npm install
# to build and bug
npm run serve
# to build for production
npm run build
Compile
make
Run
# connection string for the pgsql database
export PG_CONNECTION_STRING="postgresql://pNre:@localhost:5432/pNre"
# run the server serving the static content in the `../dist` folder
./bin/shortcuts ../dist