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 🙏

© 2025 – Pkg Stats / Ryan Hefner

sweetistics

v0.10.3

Published

CLI tool for Twitter analytics and archive management - AI-powered insights for your Twitter data

Downloads

27

Readme

Sweetistics CLI

Twitter/X archive analysis, timeline insights, and AI chat automation straight from your terminal.

Install

  • Stable release (bundled runtime):
    npm install -g sweetistics
    # or
    pnpm add -g sweetistics
  • One-off execution without installing:
    pnpm dlx sweetistics@latest --help
    npx sweetistics@latest timeline list --json

Quick Start

# Launch the interactive import & setup wizard
sweetistics

# Authenticate or inspect your stored credentials
sweetistics login
sweetistics whoami

# Import a downloaded Twitter archive ZIP
sweetistics import ~/Downloads/twitter-archive.zip

# Review cached timeline summaries or export tweets
sweetistics timeline summary --limit 1 --json
sweetistics timeline fetch --limit 200 --format csv

# Chat against your archive or live data
sweetistics chat send --archive "Surface my 2024 highlights"

Global Flags

| Flag | Description | | --- | --- | | --env <prod|dev|local> | Switch between hosted Sweetistics and http://localhost:3000. | | --api-base <url> | Override the API origin (takes precedence over --env). | | --verbose | Emit diagnostic logs for debugging and QA. |

Most commands also accept --timeout <ms> and --json for automation pipelines.

Command Map

| Area | Command | Highlights | | --- | --- | --- | | Auth | login, logout, whoami | Device auth with secure key storage. | | Archives | analyze, import, validate | Inspect, stage, and upload Twitter archive ZIPs with batching + retries. | | Timelines | timeline list|fetch|run|summary|snapshot | Stream fresh analyses, export cached tweets (CSV/JSON/Markdown), or force-refresh snapshots. | | Pulse | pulse list|refresh|settings | Track follow/unfollow deltas and delivery preferences. | | Insights | insights show | Summaries of top authors and engagement patterns. | | Arena | arena analyze|get|list|delete | Run multi-profile comparisons with AI scoring. | | User | user run|list | Generate long-form user analyses with realtime streaming support. | | Chat | chat, chat send, chat models | Conversational tooling for archives or live data (supports JSON output and tracing). |

Publishing Checklist

The npm package bundles every internal @sweetistics/* module into dist/vendor/**, so no extra installs are required. Before publishing:

  1. pnpm run build:packages
  2. pnpm --filter ./packages/cli run build
  3. pnpm --filter ./packages/cli exec npm pack
  4. Smoke test the tarball from a clean directory:
    TMPDIR=$(mktemp -d)
    cp packages/cli/sweetistics-*.tgz "$TMPDIR"/
    (cd "$TMPDIR" && npm init -y >/dev/null \
      && npm install ./sweetistics-*.tgz \
      && npx sweetistics --help)

Need the full surface area? See docs/cli.md in the Sweetistics repo for exhaustive command reference and advanced workflows.