npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

alfred-open-in-cursor

v1.0.0

Published

Alfred workflow to open in Cursor

Readme

Alfred Open in Cursor

npm version npm downloads

Alfred workflow to quickly open projects in Cursor.

Fork notice: This project is a fork of vivaxy/alfred-open-in-vscode, originally created by vivaxy. It has been updated to work with Cursor, including opening projects in classic editor mode via the --classic flag.

Features

  • Fuzzy search projects from a configurable glob pattern
  • Open the selected project in Cursor (classic editor, new window)
  • Open the current Finder folder in Cursor
  • Project list refreshes automatically while you type

Requirements

  • Alfred 4 or 5 with Powerpack
  • Cursor for macOS
  • Node.js 22 or later (used by the workflow script filter)

Installation

Install from npm (recommended)

Requires Node.js and Alfred with Powerpack.

npm i -g alfred-open-in-cursor

This installs the workflow globally and links it into Alfred via Alfy.

Then configure it in Alfred:

  1. Open Alfred → Workflows

  2. Select Open in Cursor

  3. Click the [x] configuration button

  4. Set Project directories to a glob pattern for your projects, for example:

    /Users/me/Developer/*
  5. Optionally set Cursor CLI path if auto-detection does not work on your machine

Try it: type cursor followed by a space in Alfred to search for a project.

To update later:

npm update -g alfred-open-in-cursor

To uninstall:

npm uninstall -g alfred-open-in-cursor

npm deprecation warnings

npm i -g alfred-open-in-cursor may print deprecation warnings for packages such as xmldom, rimraf, glob, and inflight. These come from older transitive dependencies in Alfy and its bundled alfred-link / alfred-notifier packages. They are install-time notices only and do not affect the workflow after installation. The warnings should disappear once upstream merges dependency updates.

Install from source

For local development or contributing:

git clone https://github.com/nlivingstone/alfred-open-in-cursor.git
cd alfred-open-in-cursor
npm install
npm i -g .

A global install (npm i -g .) is required; a local-only npm install does not link the workflow to Alfred.

Configuration

Open Alfred → Workflows → Open in Cursor and click the [x] configuration button.

Set Project directories to a glob pattern that matches your project folders, for example:

/Users/me/Developer/*

That would match projects like /Users/me/Developer/alfred-open-in-cursor and /Users/me/Developer/my-app.

Optionally set Cursor CLI path if Cursor is installed in a non-standard location. Leave it blank to auto-detect from:

  • /Applications/Cursor.app
  • ~/Applications/Cursor.app
  • cursor on your PATH (for example /usr/local/bin/cursor)

Usage

| Trigger | Action | | --- | --- | | cursor + space | Search projects and press Return to open the selected project in Cursor | | cursor (no space) | Open the frontmost Finder window folder in Cursor |

Projects are opened with:

cursor --classic -n /path/to/project

This opens a new classic editor window rather than focusing an existing Cursor window.

Troubleshooting

  • Type cursor DEBUG in the script filter to show debug info (Node version, etc.).

  • If the script filter returns no results, confirm Project directories is set in the workflow configuration.

  • If projects do not open in Cursor, verify the CLI is installed in Cursor with Shell Command: Install "cursor" command in PATH, or set Cursor CLI path manually in the workflow configuration.

  • Test Cursor detection from the terminal:

    ./bin/find-cursor-cli.sh
    ./open-project.sh /path/to/project
  • After editing workflow files locally, reload the workflow in Alfred (right-click → Reload).

  • To reinstall from npm:

    npm i -g alfred-open-in-cursor

Development

npm install
npm test

Test opening a project from the terminal:

./open-project.sh /path/to/project

See the Releasing wiki page for version bumps, GitHub releases, and npm publishing.

Related

License

GPL-3.0-or-later. See LICENSE and NOTICE.

This project is a modified work based on alfred-open-in-vscode by vivaxy. The original work is copyright vivaxy; modifications are copyright Neil Livingstone.