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

zensla-cli

v1.0.8

Published

A CLI tool for managing Slack workspace operations using Playwright.

Readme

zensla-cli

このプロジェクトは、Slack ワークスペースを操作するためのCLIツールです。Playwright を使用してブラウザ操作を自動化し、チャンネル情報の取得やメッセージ数のカウントなどの機能を提供します。

必要要件

  • Node.js がインストールされていること
  • npm または pnpm がインストールされていること
  • Slack ワークスペースへのアクセス権

インストール

  1. npm または pnpm を使用してツールをインストールします。

    npm install -g zensla-cli

    または

    pnpm add -g zensla-cli
  2. インストール後、zensla コマンドが使用可能になります。

使用方法

認証を実行する

Slack にログインし、セッション情報を保存します。

zensla auth

セッション情報の保存先を指定する場合:

zensla auth --storageState custom/path/to/storageState.json
# または短縮形を使用
zensla auth -s custom/path/to/storageState.json

チャンネルリストを取得する

ワークスペースの URL を指定してチャンネルリストを取得します。

zensla channels https://your-workspace.slack.com

セッション情報の保存先を指定する場合:

zensla channels https://your-workspace.slack.com --storageState custom/path/to/storageState.json
# または短縮形を使用
zensla channels https://your-workspace.slack.com -s custom/path/to/storageState.json

出力先フォルダを指定する場合:

zensla channels https://your-workspace.slack.com --outDir custom/path/to/output
# または短縮形を使用
zensla channels https://your-workspace.slack.com -o custom/path/to/output

両方のオプションを組み合わせることもできます:

zensla channels https://your-workspace.slack.com -s custom/path/to/storageState.json -o custom/path/to/output

メッセージ数を取得する

ワークスペースの URL を指定してチャンネルごとのメッセージ数を取得します。

zensla message-counts https://your-workspace.slack.com

特定の日付のメッセージ数を取得する場合:

zensla message-counts https://your-workspace.slack.com --date 2024-03-20

出力先フォルダを指定する場合:

zensla message-counts https://your-workspace.slack.com --outDir custom/path/to/output
# または短縮形を使用
zensla message-counts https://your-workspace.slack.com -o custom/path/to/output

特定の日付のメッセージ数を取得し、出力先フォルダも指定する場合:

zensla message-counts https://your-workspace.slack.com --date 2024-03-20 --outDir custom/path/to/output
# または短縮形を使用
zensla message-counts https://your-workspace.slack.com --date 2024-03-20 -o custom/path/to/output

注: 日付を指定した場合、出力ファイルは <outDir>/history/<date>.json に保存されます。

注意事項

  • セッション情報には認証情報が含まれているため、慎重に取り扱ってください。
  • 出力先フォルダを指定しない場合、デフォルトで out ディレクトリに出力されます。
  • 出力先フォルダは --outDir または -o で指定できます。
  • セッション情報の保存先は --storageState または -s で指定できます。

コントリビューター向け

必要要件

  • Node.js (22.x 以上)
  • pnpm
  • Git

開発環境のセットアップ

  1. リポジトリをクローンします。

    git clone https://github.com/mktoho12/zensla-cli.git
    cd zensla-cli
  2. 必要な依存関係をインストールします。

    pnpm install
  3. 開発モードでスクリプトを実行します。

    pnpm dev auth

スクリプト

  • pnpm dev: 開発モードでスクリプトを実行します。
  • pnpm build: TypeScript をコンパイルします。
  • pnpm lint: ESLint を使用してコードを検証します。
  • pnpm lint:fix: ESLint の問題を自動修正します。
  • pnpm prettier: Prettier を使用してコードを整形します。

コントリビューションの方法

  1. 新しいブランチを作成します。

    git checkout -b feature/your-feature-name
  2. 変更を加え、コミットします。

    git add .
    git commit -m "Add your feature description"
  3. リモートリポジトリにプッシュします。

    git push origin feature/your-feature-name
  4. プルリクエストを作成します。

注意事項

  • コードスタイルを守るために、pnpm lintpnpm prettier を実行してください。
  • セッション情報や認証情報を含むファイルをコミットしないでください。

ライセンス

このプロジェクトは ISC ライセンス の下でライセンスされています。