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

manako

v0.2.0

Published

CLI for Manako - all-in-one monitoring dashboard

Downloads

3

Readme

manako

Manako のオールインワン監視ダッシュボード用 CLI ツール。

ターミナルからモニター、インシデント、サービスなどを管理できます。

English

インストール

npm install -g manako

Node.js >= 20 が必要です。

セットアップ

ブラウザログイン (推奨)

manako login

ブラウザが開き、OAuth 認証を行います。API キーが自動生成され ~/.manako.json に保存されます。

API キーで直接ログイン

manako login --api-key mk_xxxxx

API キーはダッシュボードから発行できます。

使い方

ステータス概要

manako status

全モニターの現在の状態を一覧表示します。

Monitors (3)

  ● api.example.com (http, 300s)
  ● db.example.com (tcp, 60s)
  ○ backup.example.com (http, 600s)

モニター

# 一覧
manako monitors list

# 詳細取得
manako monitors get <id>

# 追加
manako monitors add https://example.com                      # HTTP (デフォルト)
manako monitors add example.com:5432 -t tcp                  # TCP
manako monitors add example.com -t ping                      # Ping

# オプション
manako monitors add https://example.com -n "My API" -i 60    # 名前と間隔を指定
manako monitors add https://example.com -c '{"url":"https://example.com","method":"POST","expectedStatus":201,"timeoutMs":5000}'

# 更新
manako monitors update <id> --name "New Name"
manako monitors update <id> --interval 120
manako monitors update <id> --pause                          # 一時停止
manako monitors update <id> --resume                         # 再開

# 即時チェック実行
manako monitors check <id>

# 削除
manako monitors rm <id>

# 統計リセット
manako monitors stats-reset <id>
manako monitors stats-reset <id> --before 2025-01-01

メンテナンスウィンドウ

# メンテナンス開始 (デフォルト: 60分)
manako monitors maintenance <id>
manako monitors maintenance <id> -d 120                  # 120分間
manako monitors maintenance <id> -u "2025-12-31T23:59"   # 指定日時まで

# 一括メンテナンス
manako monitors maintenance --ids id1,id2,id3
manako monitors maintenance --all

# メンテナンス終了
manako monitors maintenance <id> --end
manako monitors maintenance --all --end

# 通知付きでメンテナンス開始/終了
manako monitors maintenance <id> --notify
manako monitors maintenance <id> --end --notify

インシデント

# 一覧
manako incidents list
manako incidents list -s ongoing                         # 進行中のみ
manako incidents list -s resolved                        # 解決済みのみ

# 手動インシデント作成
manako incidents create -t "API degradation" -c "High latency on DB"
manako incidents create -t "Service outage" --service-id <id>

# 更新
manako incidents update <id> -t "Updated title" -c "Root cause identified"

# 確認済み / 解決
manako incidents ack <id>
manako incidents resolve <id>
manako incidents resolve <id> -c "Deployed hotfix v1.2.3"

# 削除
manako incidents delete <id>

サービス

# 一覧
manako services list

# 統計リセット
manako services stats-reset <id>
manako services stats-reset <id> --before 2025-01-01

通知チャネル

# テスト通知送信
manako notification-channels test <id>

監査ログ

# 最近のログを表示
manako audit-logs list

# フィルタ (アクション、リソース種別、ユーザー、日付範囲)
manako audit-logs list -a monitor.created
manako audit-logs list -t monitor -u <userId>
manako audit-logs list -f 2025-01-01 --to 2025-01-31
manako audit-logs list -l 20

# JSON 出力
manako audit-logs list --json

管理者コマンド

注意: 管理者コマンドはサービス全体のデータにアクセスします。Admin API キーが必要です。

プロジェクトルートの .envMANAKO_ADMIN_API_KEY を設定してから実行してください:

MANAKO_ADMIN_API_KEY=your_admin_key_here

CLI は .env を自動でロードするため、export は不要です。

# システム全体の統計 (チーム数・ユーザー数・モニター数)
manako admin stats

# チーム一覧 (名前はマスク)
manako admin teams
manako admin teams -q "keyword"   # 名前で検索

# ユーザー一覧 (メール・名前はマスク)
manako admin users
manako admin users -q "@gmail.com"

# 成長指標 (登録数・プラン分布・解約リクエスト数)
manako admin analytics growth
manako admin analytics growth --period 90d

# アクティビティ指標 (DAU/WAU/MAU・アクティブチーム)
manako admin analytics activity
manako admin analytics activity --period 30d

# 機能利用状況 (モニタータイプ別・通知チャンネル別)
manako admin analytics features

# 全インシデント
manako admin incidents
manako admin incidents -s ongoing    # 進行中のみ
manako admin incidents -s resolved

# パフォーマンス指標
manako admin performance workers --period 24h
manako admin performance system --period 24h

# アップタイム・応答時間レポート
manako admin reports uptime
manako admin reports response-times

# 削除保留中アカウント (メール・名前はマスク、daysRemaining で残り猶予日数確認)
manako admin deletion-requests

# 問い合わせ一覧 (メール・名前はマスク、メッセージは先頭120文字)
manako admin inquiries
manako admin inquiries -s open
manako admin inquiries -s in_progress
manako admin inquiries -c bug         # カテゴリ絞り込み

全コマンドの出力は JSON 形式です。Claude Code のスキル admin-review と組み合わせてサービスの定期健全性レビューを自動化できます。

設定

CLI の設定は ~/.manako.json に保存されます:

{
  "apiUrl": "https://api.manako.dev",
  "apiKey": "mk_xxxxx"
}

ログアウト

manako logout

設定ファイルを削除します。

言語

CLI の表示言語は MANAKO_LANG または LANG 環境変数で決まります。デフォルトは英語です。

MANAKO_LANG=ja manako status    # 日本語で表示

リンク

ライセンス

MIT