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

plsr-pwdev

v0.1.0

Published

Playwright CLI wrapper for local development — headed, persistent sessions, trusted localhost

Readme

pwdev

Playwright CLI の開発者向けラッパー。AIエージェントによるブラウザ操作を開発用途に最適化する。

なぜ pwdev か

playwright-cli はデフォルトで毎回クリーンなセッションで起動する。開発中の反復作業では、ログインのやり直しや localhost の警告が頻発し、手間がかかる。

pwdev は以下を標準動作にする。

  • 常にブラウザを表示--headed を自動付与)
  • セッション永続化UserDataDir ベースのプロファイル管理)

インストール

npm install -g plsr-pwdev

前提: playwright-cli がグローバルインストールされていること。

npm install -g @playwright/cli   # または相当するパッケージ

使い方

ブラウザを開く

pwdev open https://example.com

--headed--profile ~/.pwdev/profiles/default が自動で付与される。

プロファイルを切り替える

pwdev --profile customer-a open https://example.com

プロファイルは ~/.pwdev/profiles/<name> に自動生成される。Cookie・LocalStorage・SSO 状態が維持される。

その他のコマンド

open 以外はすべて playwright-cli にそのまま委譲される。

pwdev snapshot
pwdev click e12
pwdev fill e34 "hello"
pwdev -s=mine screenshot --filename=result.png

playwright-cli --help のコマンドはすべて使用できる。

プロファイル

プロファイルは ~/.pwdev/profiles/ 以下に保存される。

~/.pwdev/
└── profiles/
    ├── default       # pwdev open のデフォルト
    ├── customer-a
    └── customer-b

指定なしの場合は default プロファイルが使われる。

開発

git clone https://github.com/your-org/pwdev
cd pwdev
npm install
npm run build
npm install -g .
npm run dev   # ウォッチビルド

AI エージェントへの伝え方

システムプロンプトに以下をそのまま貼り付けて使用できる。

## ブラウザ操作ツール: pwdev

`playwright-cli` の代わりに `pwdev` を使うこと。
- `pwdev open <url>` でブラウザを開く(headed・セッション永続化・localhost警告なし)
- セッション名は `-s=<name>` で指定(例: `pwdev -s=mine open https://...`)
- `open` 以外のコマンドは playwright-cli と同じ(snapshot, click, fill, eval 等)

例:
  pwdev -s=mine open https://localhost:3000
  pwdev -s=mine snapshot
  pwdev -s=mine click e12

ライセンス

MIT