Skip to content

PowerSnap is a simple, lightweight, and easy to use screen capture tool. It can be used from the CLI or as an Alfred Workflow.

Notifications You must be signed in to change notification settings

michaelheckmann/power-snap

Repository files navigation

PowerSnap 📸💻

PowerSnap is a simple, lightweight, and easy to use screen capture tool. It is written in NodeJS using Node Canvas to create the image. The tool can be used from the command line or as an Alfred Workflow.

Before After
Before After

Installation

  1. Install the requirements for canvas
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
  1. Install the dependencies
npm install
  1. Try it out!
npm start

Build

You can build the project with this command:

npm run build

It uses Vercel's ncc to compile the project into a single file. Make sure to install it before running the build command.

npm i -g @vercel/ncc

Important: The build command will not package the Canvas dependencies. You will need to install them manually by running npm i canvas in the dist folder. This is necessary, because the ncc package does not support native modules.

Alfred Workflow

Grab the latest workflow from the Releases page and install it. You can then use the snap keyword to take a screenshot.

Todos

  • Allow users to modify the options from the command line
  • Allow users to modify the options from the Alfred command

About

PowerSnap is a simple, lightweight, and easy to use screen capture tool. It can be used from the CLI or as an Alfred Workflow.

Topics

Resources

Stars

Watchers

Forks