@radjay/kit-analytics
v0.0.3
Published
CLI tool to pull Kit.com newsletter analytics via Kit API v4
Readme
@radjay/kit-analytics
CLI tool for pulling newsletter data from Kit.com via the Kit API v4.
Install
npm install -g @radjay/kit-analyticsConfiguration
Provide your Kit API key via any of these methods (in priority order):
--api-keyflag--api-key-cmdflag (shell command, e.g.--api-key-cmd "op read ...")KIT_API_KEYenvironment variable.envfile in the current directory~/.config/kit-analytics/config.json(api_keyfield)
Commands
| Command | Description |
|---|---|
| account | Display account info (name, plan, subscriber count) |
| subscribers | List subscribers with filtering by status, tag, date range |
| broadcasts | List sent emails with stats (open rate, click rate, etc.) |
| tags | List all tags with subscriber counts |
| forms | List all forms with subscriber counts |
| sequences | List all sequences with subscriber counts |
Examples
# Verify setup
kit-analytics account
# Active subscribers added this month
kit-analytics subscribers --status active --since 2025-02-01
# Broadcast performance
kit-analytics broadcasts --limit 10
# JSON output
kit-analytics tags --format jsonGlobal Options
--api-key <key>— Kit API key--api-key-cmd <cmd>— shell command to retrieve API key--format <json|table>— output format (default:table)--help— show help
