Nest Engineering Docs
PackagesPackages

Desktop screenshots (screenshot_desktop)

Pure Dart screenshot capture library for Raven

screenshot_desktop is a pure Dart package for capturing monitor and window screenshots on macOS and Windows. It is used by the Raven desktop app for OCR and screen automation flows.

Package profile

FieldValue
Locationpackages/flutter/screenshot_desktop/
TypePure Dart package (FFI)
Version1.1.0
PlatformsmacOS, Windows
Primary consumerapps/raven/

Responsibilities

  • Enumerate available monitors and windows.
  • Capture high-resolution screenshots for a specific monitor or window.
  • Return raw image bytes for downstream OCR or processing.

Usage in this repo

  • Referenced via a path dependency in apps/raven/pubspec.yaml.
  • Can be used from Dart or Flutter code via ScreenshotDesktop.instance.

Local development

  • Update code under packages/flutter/screenshot_desktop/.
  • Run flutter pub get in apps/raven/ after changing the package.
  • Run dart test from the package to validate changes.

Notes

  • This package does not depend on Flutter and can run in pure Dart contexts.

Last updated on