Cherri (pronounced cherry) is a Shortcuts programming language, that compiles directly to a valid runnable Shortcut.
The main goal is to make it trivial and practical to create large Shortcut projects (within the limits of Shortcuts) and maintain them long-term.
- π₯οΈ Laptop/Desktop based development (CLI, VSCode extension, macOS app)
- π Easy to learn and syntax similar to other languages
- π 1-1 translation to Shortcut actions as much as possible to make debugging easier
- πͺ No magic variables syntax, they're constants instead
- πͺΆ Optimized to create as small as possible Shortcuts and reduces memory usage at runtime
- #οΈβ£ Include files within others for large Shortcut projects
- π§ Define custom actions
- π Copy-paste actions automatically
- π₯© Enter actions raw with custom identifier and parameters
- β Define import questions
- π Generate VCards for menus
- π Embed files in base64
- π’ Type system and type inference
- π Cherri VSCode Extension
- π Playground - Try out Cherri on any platform, preview the result, and export signed Shortcuts
- π₯οΈ macOS IDE - Defines Cherri file type, write and build Shortcuts on Mac with a GUI
- π Documentation - Learn Cherri or how to contribute
- π Glyph Search - Search glyphs you can use in Cherri!
- π§βπ» Code Tour
- πΊοΈ Idealistic roadmap
- β FAQ
This project has not yet reached a stable version. It is under heavy development and backward incompatible changes may be made.
cherri file.cherri
Run cherri
without any arguments to see all options and usage. For development, use the --debug
(or -d
) option to print
stack traces, debug information, and output a .plist
file.
Generating valid Shortcuts is only possible on macOS. However, there is a Cherri Playground that outputs valid Shortcuts on any platform with a web browser.
As it stands, I don't want someone to get confused and think Shortcuts compiled using Cherri on other platforms will run on their Mac or iOS device. However, you can build the compiler for your platform, it will just skip signing the compiled Shortcut, so it will not run on iOS 15+ or macOS 12+. Also, note that the compiler is primarily developed and tested on Unix-like systems.
Because it's fun :)
Some languages have been abandoned, don't work very well, or no longer work. I don't want Shortcuts languages to die. There should be more, not less.
Plus, some stability comes with this project being on macOS and not iOS, and I'm not aware of another Shortcuts language with macOS as its platform other than Buttermilk.
- zachary7829/Shortcuts File Format Documentation
- sebj/iOS-Shortcuts-Reference
- [Tip] Reducing memory usage of repeat loops
- Go syntax
- Ruby syntax
- ScPL
- Buttermilk
- Jelly
The original Workflow app assigned a code name to each release. Cherri is named after the second to last update "Cherries" (also cherry is one of my favorite flavors).
This project started on Oct 5, 2022.