{"repo":"sindresorhus/alfy","free":true,"listed":false,"github":"https://github.com/sindresorhus/alfy","clone":"git clone https://github.com/sindresorhus/alfy.git","description":"Create Alfred workflows with ease","language":"JavaScript","stars":2652,"topics":["macos","alfy","alfred","alfred-workflow","alfred3-workflow","framework","nodejs","javascript","workflow"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Create Alfred workflows with ease Highlights - Easy input↔output. - Config and cache handling built-in. - Fetching remote files with optional caching. - Publish your workflow to npm. - Automatic update notifications. - Easily testable workflows. - Finds the node binary. - Support for top-level await . - Presents uncaught exceptions and unhandled Promise rejections to the user.\\ No need to manually .catch() top-level promises. Prerequisites You need Node.js 18+ and Alfred 4 or later with the paid Powerpack upgrade. Install Usage IMPORTANT: Your script will be run as ESM. 1. Create a new blank Alfred workflow. 2. Add a Script Filter (right-click the canvas → Inputs → Script Filter ), set Language to /bin/bash , and add the following script: We can't call node directly as GUI apps on macOS doesn't inherit the $PATH. Tip: You can use generator-alfred to scaffold out an alfy based workflow. If so, you can skip the rest of the steps, go straight to the index.js and do your thing. 3. Set the Keyword by which you want to invoke your workflow. 4. Go to your new workflow directory (right-click on the workflow in the sidebar → Open in Finder ). 5. Initialize a repo with npm init . 6. Add \"type\": \"module\" to package.json. 7. Install Alfy with npm install alfy . 8. In the workflow directory, create a index.js file, import alfy , and do your thing. Example Here we fetch some JSON from a placeholder API and present matching items to the user: More Some example usage in the wild: alfred-npms","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/alfy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}