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

separateweb-capture

v1.1.2

Published

Website screenshot and UI crop extraction for Codex using Playwright and Sharp.

Readme

SeparateWeb Capture

Website screenshot, web page capture, and UI crop extraction for Codex.

SeparateWeb Capture is a Codex plugin that turns web pages into inspectable visual assets: full-page screenshots, grouped UI crops, and JSON manifests.

Use it when Codex needs real page evidence before implementing or reviewing UI.

Install As A Codex Plugin

In Codex, open Plugins, choose Add marketplace, then use:

Source:
https://github.com/AUN-PN/SeparateWeb.git

Git ref:
main

Sparse paths:

Leave Sparse paths empty.

The Codex marketplace metadata lives at:

.agents/plugins/marketplace.json
plugins/separateweb-capture/.codex-plugin/plugin.json
plugins/separateweb-capture/skills/separateweb-capture/SKILL.md

After adding the marketplace, install or enable SeparateWeb Capture from the Codex Plugins list.

Install As A Local Skill

Install the skill payload with npx:

npx separateweb-capture
npx separateweb-capture --target claude
npx separateweb-capture --target both

Default target is Codex. Use --target claude for Claude Code personal skills, or --target both for Codex and Claude.

Use

Set a default destination for future captures:

npx separateweb-capture patch /absolute/output/path

Capture one page:

npx separateweb-capture capture https://example.com --single

Capture a root URL and crawl same-origin pages:

npx separateweb-capture capture https://example.com

Supported command options:

--out <dir>
--width <px>
--height <px>
--max-pages <n>
--single
--all
--help

The package binaries are separateweb and separateweb-capture. Use npx separateweb-capture when the binary is not installed globally. Use separateweb after npm link or global install.

Example Capture

This example was captured from a local game UI page:

node scripts/capture.mjs capture 'file:///path/to/design-game/index.html' --single

Output:

Captured: captures/2026-05-18T21-39-53-265Z-index-html-4ed73889
Pages: 1
Succeeded: 1
Failed: 0
Blocks: 36

Detected item groups:

{
  "card-large": 4,
  "button": 7,
  "price": 8,
  "badge": 3,
  "icon": 3,
  "media": 3,
  "navigation": 1,
  "card": 4,
  "panel": 1,
  "stat": 2
}

Full-page capture:

Orbit Store full-page capture

Capture output now separates visual assets into two folders:

with-text/full-page.png
with-text/items/<kind>/*.png
without-text/full-page.png
without-text/items/<kind>/*.png

manifest.json keeps items[].image.path pointed at the current no-text crop, and adds items[].textImage.path for the matching with-text crop.

Extracted UI items:

| Kind | Example | |---|---| | card-large | Large card crop | | badge | Badge crop | | media | Transparent media crop |

What's Included

.codex-plugin/plugin.json           Codex plugin manifest
skills/separateweb-capture/SKILL.md Codex skill trigger and workflow
scripts/capture.mjs                 Capture script
assets/icon.png                     Composer icon
assets/logo.png                     Plugin logo
LICENSE                             MIT license

The required Codex entrypoint is .codex-plugin/plugin.json. The skill in skills/separateweb-capture/SKILL.md defines when Codex should use this plugin.

Use Cases

  • Website screenshot tool for frontend teams
  • Playwright screenshot capture for visual QA
  • UI crop extraction from live web pages
  • Web design asset capture for implementation references
  • AI coding agent visual context from real URLs
  • Codex plugin for webpage inspection

Codex Usage

Ask Codex:

separateweb capture https://example.com
separateweb capture https://example.com --single
separateweb capture https://example.com/docs
separateweb capture https://example.com/docs --all
separateweb patch /absolute/output/path

Codex should run the script from this plugin root:

node scripts/capture.mjs capture <url>
node scripts/capture.mjs patch <dir>

Commands

separateweb capture <url> [--out <dir>] [--width <px>] [--height <px>] [--max-pages <n>] [--single|--all]
separateweb patch <dir>
separateweb patch --clear
separateweb select <manifest.json>
separateweb create <manifest.json> --items <indexes> --path <dir>

Capture Rules

  • capture https://example.com crawls same-origin paths.
  • capture https://example.com/ crawls same-origin paths.
  • capture https://example.com --single captures only the root page.
  • capture https://example.com/docs captures only /docs.
  • capture https://example.com/docs --all crawls same-origin paths starting from /docs.
  • --max-pages accepts 1 to 200.

Troubleshooting

  • If capture fails, report the exact error from scripts/capture.mjs.
  • If output is missing, check the printed Manifest path first.
  • If selected items do not export, confirm the manifest path and --items indexes.

License

MIT License.