Skip to content

About

macOS screenshot annotator, a replacement for Yandex.Disk Screenshots

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

captureScreen

captureScreen is a small macOS screenshot helper. It watches a folder for new screenshots, opens them in a local browser editor, and lets you quickly annotate, crop, blur, copy, or save the result.

The app runs locally on your machine. Screenshots are served from the configured watch folder through a local HTTP server bound to 127.0.0.1.

screen

Features

  • Watches a screenshot folder and opens new image files automatically.
  • Browser-based editor for arrows, shapes, text, marker strokes, blur areas, and crop.
  • Copy the final image to the clipboard or save it as a PNG.
  • Undo and redo for committed edits.
  • Per-user macOS LaunchAgent installation.
  • No admin privileges required for the default install path.

Requirements

  • macOS
  • curl and tar for installing from GitHub releases
  • Go, only when installing from a local checkout or running tests locally
  • Node.js, only when running the Playwright test suite

Install From GitHub

Install the latest release:

curl -fsSL https://github.com/mikhail-angelov/captureScreen/releases/latest/download/install.sh \
  | sh -s -- --source github --watch-folder ~/Documents

Install a specific release:

curl -fsSL https://github.com/mikhail-angelov/captureScreen/releases/latest/download/install.sh \
  | sh -s -- --source github --version v0.1.0 --watch-folder ~/Documents

The installer downloads the correct macOS binary for your CPU architecture, copies it to ~/.local/bin/captureScreen, and registers a LaunchAgent at:

~/Library/LaunchAgents/com.mikhail-angelov.captureScreen.plist

Logs are written to:

~/Library/Logs/captureScreen.out.log
~/Library/Logs/captureScreen.err.log

Install From a Local Checkout

From the repository root:

./scripts/install.sh --source local --watch-folder ~/Documents

Install an existing binary:

./scripts/install.sh --source local --binary ./captureScreen --watch-folder ~/Documents

Use a custom port:

./scripts/install.sh --source local --watch-folder ~/Desktop --port 8091

Uninstall

Remove the LaunchAgent:

./scripts/install.sh --uninstall

Remove both the LaunchAgent and the installed binary:

./scripts/install.sh --uninstall --remove-binary

Run Manually

Run from source:

CAPTURE_SCREEN_WATCH_FOLDER=~/Documents CAPTURE_SCREEN_PORT=8090 go run .

Open the editor manually:

http://127.0.0.1:8090/

Open a specific file from the watch folder:

http://127.0.0.1:8090/?file=Screenshot.png

Configuration

The app uses these environment variables:

Variable Default Description
CAPTURE_SCREEN_WATCH_FOLDER ~/Documents Folder watched for new screenshot images.
CAPTURE_SCREEN_PORT 8090 Local HTTP server port.

The watch folder must exist and must not be a symlink.

Editor Shortcuts

Shortcut Action
Cmd+S Save PNG
Cmd+C Copy PNG
Cmd+Z Undo
Shift+Cmd+Z Redo
Delete or Backspace Delete selected annotation
0 Reset zoom to 100%
+ / - Zoom in / out
Cmd or Ctrl + mouse wheel Zoom

Development

Run Go tests:

go test ./...

Run Go lint checks used by CI:

test -z "$(gofmt -l main.go server)"
go vet ./...

Install browser test dependencies:

cd tests
npm ci
npx playwright install chromium

Run end-to-end tests:

cd tests
npm test

Release

Releases are published by GitHub Actions when a tag matching v* is pushed:

git tag v0.1.0
git push origin v0.1.0

The release workflow runs formatting checks, go vet, Go tests, Playwright tests, builds macOS amd64 and arm64 archives, and uploads checksums plus the install script to the GitHub release.

About

macOS screenshot annotator, a replacement for Yandex.Disk Screenshots

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages