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

@affeisme/openclaw-ios-screenshot-plugin

v0.1.0

Published

Authenticated iOS screenshot upload plugin for OpenClaw

Readme

OpenClaw iOS Screenshot Plugin

This repository contains a reusable OpenClaw plugin that exposes an authenticated HTTP endpoint for screenshot uploads. It accepts image files plus an optional text description, then stores each upload under the OpenClaw workspace.

What it does

  • Registers a plugin-owned HTTP route on the OpenClaw gateway
  • Accepts multipart/form-data uploads from apps and services
  • Also accepts application/json with base64-encoded files
  • Verifies a shared token before accepting uploads
  • Stores files under <configured OpenClaw workspace>/<destinationDir>/<uploadId>/
  • Writes an upload.json sidecar with description and metadata

Install

From npm:

openclaw plugins install @affeisme/openclaw-ios-screenshot-plugin
openclaw plugins enable openclaw-ios-screenshot-plugin

From a local checkout during development:

openclaw plugins install ./openclaw-ios-screenshot-plugin
openclaw plugins enable openclaw-ios-screenshot-plugin

Configure

Add plugin config to your OpenClaw config file:

plugins:
  entries:
    openclaw-ios-screenshot-plugin:
      enabled: true
      config:
        authToken: "replace-with-a-long-random-secret"
        routePath: "/plugins/openclaw-ios-screenshot-plugin/upload"
        destinationDir: "screenshots/inbox"
        maxPayloadBytes: 26214400
        allowedMimeTypes:
          - "image/png"
          - "image/jpeg"
          - "image/webp"
          - "image/heic"
          - "image/heif"

Restart the OpenClaw gateway after config changes.

Publish

npm login
npm pack --dry-run
npm publish --access public

Usage

Multipart upload

curl \
  -X POST "http://localhost:3100/plugins/openclaw-ios-screenshot-plugin/upload" \
  -H "Authorization: Bearer replace-with-a-long-random-secret" \
  -F "description=Quarterly sales dashboard capture" \
  -F "file=@/path/to/screenshot.png;type=image/png"

JSON upload

curl \
  -X POST "http://localhost:3100/plugins/openclaw-ios-screenshot-plugin/upload" \
  -H "Content-Type: application/json" \
  -H "X-OpenClaw-Token: replace-with-a-long-random-secret" \
  -d '{
    "description": "Captured from automation",
    "files": [
      {
        "filename": "capture.png",
        "contentType": "image/png",
        "dataBase64": "iVBORw0KGgoAAAANSUhEUgAA..."
      }
    ]
  }'

Stored layout

Each upload gets a unique folder:

<workspace>/screenshots/inbox/<upload-id>/
  01-screenshot.png
  upload.json

upload.json includes:

  • upload ID
  • timestamp
  • description text
  • client IP and user agent when available
  • stored file names, MIME types, byte sizes, and relative paths

Notes

  • The route is plugin-authenticated, not gateway-authenticated.
  • Authorization: Bearer <token> and X-OpenClaw-Token: <token> are both supported.
  • The plugin rejects non-image MIME types unless you expand allowedMimeTypes.