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

@fullalien/scry

v0.1.2

Published

Mirror Android device screens in the browser via a bundled [scrcpy-server](https://github.com/Genymobile/scrcpy) runtime.

Readme

scry

Mirror Android device screens in the browser via a bundled scrcpy-server runtime.

scry runs a local web server that streams your Android device's screen over WebSocket, rendered on an HTML canvas with touch and keyboard input forwarding. It depends on the bundled scrcpy-server jar and does not require installing the scrcpy desktop app on your machine.

Features

  • Browser-based screen mirroring — no desktop client required
  • Multi-device support — list and open any connected ADB device
  • Touch & keyboard input forwarding — interact with the device from the browser
  • Background daemon — start once, access from any browser tab
  • Configurable — tune video bitrate, resolution cap, FPS, and server address

Requirements

  • Node.js >= 20
  • adb (Android Debug Bridge) in your PATH

Installation

npm install -g @fullalien/scry

Quick Start

  1. Connect an Android device via USB (USB debugging must be enabled).
  2. Start the server:
scry start
  1. Open http://127.0.0.1:8080 in your browser.
  2. Click Open next to a device to start mirroring.

CLI

scry <command> [options]
# Start server (background daemon by default)
scry start

# Start server in foreground and override bind address/port
scry start --foreground --host 127.0.0.1 --port 8080

# Stop running server
scry stop

# Show server status (PID/address/start time)
scry status

# List connected adb devices
scry devices

# Check environment (adb + port availability)
scry doctor

Configuration

On first run, scry uses built-in defaults. To customise behaviour, create ~/.scry/config.json (JSON5 syntax is supported).

{
  server: {
    host: '127.0.0.1', // Interface to bind
    port: 8080, // Port to listen on
  },
  adb: {
    path: 'adb', // Path to the adb binary
  },
  scrcpy: {
    videoBitRate: 4000000, // Video bit rate in bps (default 4 Mbps)
    maxSize: 0, // Limit the longest dimension (0 = no limit)
    maxFps: 60, // Cap frame rate (optional)
  },
}

Environment Variables

| Variable | Description | | --------------------- | ---------------------------------- | | SCRCPY_WEB_HOST | Override server.host from config | | SCRCPY_WEB_PORT | Override server.port from config | | SCRCPY_WEB_ADB_PATH | Override adb.path from config |

Development

# Install dependencies
npm install

# Rebuild backend (TypeScript watch) and frontend bundle (Vite watch)
npm run dev

# In another terminal, start the local CLI/server
npm run start

# Type-check
npm run typecheck

# Build for production
npm run build

# Format code
npm run format

Useful dev commands

# List devices using the local source
npm run dev:devices

# Run doctor checks using the local source
npm run dev:doctor

License

Apache-2.0