AI Briefing
KO

Cherri - A Programming Language for Writing Apple Shortcuts as Code

·2026.04.21 09:31

Key point

It's a DSL that lets you write Apple Shortcuts as text code and compiles them into executable files.

Details

Cherri is a domain-specific language that lets you write Siri Shortcuts as text code and compiles them directly into executable Shortcut files.

  • Each action maps 1:1 to a Shortcuts app action, so compiled results can be debugged directly in the Shortcuts app.
  • Inspired by Go and Ruby syntax, it offers a CLI, VSCode extension, macOS app, and web Playground.
  • It has a built-in type system and type inference, supporting language-level action definitions like enums, optionals, and default values.
  • It includes a remote Git repository-based package manager that handles automatic package inclusion and updates.
  • File includes, function definitions, and Raw Actions help modularize large Shortcut projects and support long-term maintenance.
  • Runtime memory optimization is applied to generate Shortcuts as small as possible.
  • Existing Shortcuts can be converted into Cherri code from an iCloud link using the --import= option.
  • macOS signing support is included, with HubSign or shortcut-signing-server available as alternatives.
  • Installation is available via brew install electrikmilk/cherri/cherri, Nix, or GitHub Releases; it's implemented in Go and licensed under GPL-2.0.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.