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

@robinpath/screen

v0.1.2

Published

Screen capture and OCR: screenshots, region capture, window capture, and text extraction

Readme

@robinpath/screen

Screen capture and OCR: take screenshots (full, region, window), extract text from images with tesseract.js, list displays, and compare images

Category Functions Auth License

Why use this module?

The screen module lets you:

  • Take a full screenshot and save to file
  • Capture a specific rectangular region of the screen
  • Capture a specific window by its title (falls back to full screen if not found)
  • Extract text from an image using OCR (tesseract.js)
  • Extract text from a rectangular region of an image

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/screen

Quick Start

No credentials needed — start using it right away:

screen.captureRegion "./region.png" 100 100 400 300

Available Functions

| Function | Description | |----------|-------------| | screen.capture | Take a full screenshot and save to file | | screen.captureRegion | Capture a specific rectangular region of the screen | | screen.captureWindow | Capture a specific window by its title (falls back to full screen if not found) | | screen.ocr | Extract text from an image using OCR (tesseract.js) | | screen.ocrRegion | Extract text from a rectangular region of an image | | screen.setLanguage | Set the default OCR language (eng, rus, deu, fra, spa, chi_sim, jpn, kor, ron, etc.) | | screen.listDisplays | List all available displays/monitors | | screen.compare | Compare two images byte-by-byte to check if they are identical |

Examples

Capture a specific rectangular region of the screen

screen.captureRegion "./region.png" 100 100 400 300

Capture a specific window by its title (falls back to full screen if not found)

screen.captureWindow "./notepad.png" "Untitled - Notepad"

Extract text from an image using OCR (tesseract.js)

screen.ocr "./screenshot.png"

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/screen";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  screen.captureRegion "./region.png" 100 100 400 300
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT