PROVIDER - Cross-Platform Text Expander

Espanso

Espanso is an open-source cross-platform text expander that turns short triggers into signatures, templates and canned replies, driven by local YAML rules with variables, forms and scripts.

Productivity Italy 2026.11.30 4 views
4pts
Advertisement

Service Overview

Espanso is an open-source cross-platform text expander: type a short trigger in any text field and it is replaced immediately with a prepared signature, email template, code snippet or canned reply. Rules live in local YAML files and can include variables, dates, clipboard content, pop-up forms and external scripts, so expansion works in browsers, mail clients, IDEs and chat apps alike.

The project is GPL-3.0 licensed with roughly 15,000 stars on GitHub, currently on the 2.4.x line, written in Rust, with installers for Windows, macOS and Linux. All matching happens on the machine, with no network call and no account.

Key Strengths

  • Behaviour is consistent across platforms, so one YAML configuration moves between Windows, macOS and Linux unchanged.
  • Expansion is instant, so signatures, ticket templates and canned replies are never copy-pasted twice.
  • Variables and forms let dates, clipboard content and dropdown choices be picked as the snippet expands.
  • External scripts can be called, wiring lookups and ID generation straight into the result.
  • Matching is local and GPL-3.0 keeps it free, so privacy is controllable with no subscription or seat cost.

Limitations

  • Rules are hand-written YAML, which is steeper than graphical commercial expanders for non-technical users.
  • Sharing rules across a team relies on a Git repo or sync drive, since there is no hosted admin console.
  • Expansion can fight with an application's own autocomplete, so a few clients need exclusions.
  • Pop-up forms and script expansion need desktop permissions and may be blocked by managed-device policy.
  • There is no equivalent on mobile, so rules only apply on the desktop.

Product Ecosystem

The keyboard is watched locally, and a matching rule expands into final text Type trigger In any text field Match rule YAML triggers, options Resolve vars Dates, forms, scripts Expand Write into the field Rule sources: global config · per-app match packs · a shared team YAML repo Matching and expansion run on the machine with no network hop (scope: official docs, 2026-11)
Figure 1: Trigger to output matching flow (scope: official documentation, 2026-11)

Espanso is built from triggers, variables and match rules: the trigger decides when it intervenes, the variables decide what gets produced, and match packs decide which applications are affected.

Triggers and Keywords

By default a trigger is a short word wrapped in colons, and it can be configured to fire only after specific keystrokes. Pick triggers that never appear in normal text, or unwanted replacements will follow.

Variables and Forms

Built-in variables supply dates, clipboard content and random values, while forms pop up before expansion so the user can choose. Menus and choice forms extend one rule into a small interaction, which suits ticket categories and greeting variants.

Scripts and External Data

Shell commands let a rule call local scripts, for example to look up a customer record or generate a serial number. The script output becomes the expanded text, and scripts should never print sensitive values.

Configuration Distribution and Debugging

Configuration sits in YAML files under the user directory and can be split into per-app match packs. Teams can keep them in a Git repo; the log window shows the matching process, and notification callbacks should follow webhook signature verification.

Use Cases

  • Good fit|Support and pre-sales replies: canned answers, refund policies and greetings expand in one keystroke.
  • Good fit|Developer typing: email addresses, boilerplate code, commands and ticket IDs fill in quickly.
  • Good fit|Multi-platform offices: one rule set is reusable across Windows and macOS machines.
  • Good fit|Organisations that need local processing: rules and content never leave the machine and work offline.
  • Evaluate first|Teams with no technical maintainer: YAML upkeep needs a named owner.
  • Evaluate first|Managed endpoint environments: security policy may restrict background key monitoring and scripts.
  • Evaluate first|Users who mostly type on phones: there is no desktop-equivalent option.

Open Source License & Deployment Cost

Item Billing Spec and usage Notes
Software license Free Unlimited devices and users GPL-3.0, free to use and modify; redistributed derivatives must stay open
Desktop install Free Windows, macOS and Linux Installers plus package-manager routes are provided
Configuration upkeep Team time YAML rules and match packs Keep them in Git with peer review
Script runtime Billed by environment Local shell or interpreter Complex rules need a scripting environment
Training One-time effort Trigger conventions and style guide Shared naming reduces collisions

The software is free; cost is mainly rule maintenance and initial training.

FAQ

  • Is typed content uploaded anywhere? Matching and expansion run locally, requiring neither a network connection nor an account, and rule files sit in the user directory. Requests only happen when a rule explicitly calls a script or the network, so sensitive settings should review scripts and avoid printing credentials in them.
  • How is it different from input-method shortcuts? Input-method shortcuts usually only substitute static text, whereas Espanso supports variables, forms and scripts and can build content from context. The trade-off is writing configuration and versioning it yourself. For shared team wording Espanso offers more control, provided someone owns review and updates.
  • How does a team share rules? Put the configuration directory in a Git repo or sync drive and split it into match packs by role. Reload Espanso after updates and treat the main branch as authoritative on conflicts. Fix a shared trigger prefix so colleagues do not shadow each other, and review customer-facing wording before merging.
  • What if nothing expands in one application? First check whether that application runs with administrator rights, since elevated windows may not deliver key events. Then check whether the app's own autocomplete intercepts the input. If it still fails, watch the log window for match records and enable or exclude the application per rule.

Integration and Code Examples

A minimal match pack

# match/base.yml: signature and ticket template
matches:
  - trigger: ":sig"
    replace: |
      Regards,
      Ops Team · support@example.com
  - trigger: ":ticket"
    replace: "Ticket {{form1.id}} received; expect an update before {{form1.eta}}."
    vars:
      - name: form1
        type: form
        params:
          fields:
            id:
              type: text
            eta:
              type: text

Calling a script for content

matches:
  - trigger: ":today"
    replace: "{{output}}"
    vars:
      - name: output
        type: shell
        params:
          cmd: "date +%Y-%m-%d"

Reload Espanso after editing the configuration, and give triggers a consistent prefix so they never collide with normal text.

Community and Resources

Visit Espanso Website → https://espanso.org/
Visit Website ↗