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

supertwee

v0.1.1

Published

CLI for syncing, ranking, and exploring your X feed locally.

Readme

supertwee

supertwee is a local-first cli for exploring your x feed.

it syncs your home timeline, saves it to disk, finds repeated topics, and ranks the tweets your feed is rewarding hardest.

why people use it

  • see what your feed is actually amplifying
  • catch repeat themes before they feel obvious
  • find high-signal tweets without scrolling for hours
  • keep your archive and analysis on your own machine

what it does

  • sync fetches pages from the x web timeline using the same internal graphql pattern the web app uses
  • trends extracts recurring topics, phrases, domains, hashtags, and standout tweets
  • export writes filtered local archive exports as jsonl and markdown
  • ui opens an interactive command hub in the terminal
  • doctor shows which auth path supertwee can use on this machine

quick start

git clone https://github.com/Nainish-Rai/supertwee.git
cd supertwee
npm install
npm link
supertwee doctor
supertwee sync --pages 5 --count 40
supertwee trends
supertwee export --since 2026-04-01 --format jsonl,md
supertwee ui

if you do not want to use npm link, run the cli directly:

node ./bin/supertwee.mjs doctor
node ./bin/supertwee.mjs sync --pages 5 --count 40
node ./bin/supertwee.mjs trends
node ./bin/supertwee.mjs export --limit 100
node ./bin/supertwee.mjs ui

how it works

  1. sync reads your logged-in x browser session or manual cookies.
  2. it fetches timeline pages and stores normalized tweet records in ./data.
  3. trends scores repeated patterns across the saved archive.
  4. export writes filtered slices as reusable jsonl plus a readable markdown report.
  5. trends highlights both topic momentum and top-performing tweets.

commands

supertwee doctor
supertwee sync
supertwee sync --pages 5 --count 40
supertwee sync --ranking
supertwee sync --browser chrome
supertwee sync --browser firefox
supertwee trends
supertwee trends --json
supertwee export
supertwee export --since 2026-04-01 --until 2026-04-15 --limit 200
supertwee export --format md --out-dir ./tmp/export
supertwee ui

auth

supertwee tries browser-session auth first.

supported paths:

  • chrome-family browser cookie extraction
  • firefox cookie extraction
  • manual cookie override
  • manual env var override

examples:

supertwee sync --browser chrome
supertwee sync --browser firefox
supertwee sync --chrome-profile-directory "Profile 1"
supertwee sync --firefox-profile-dir "/absolute/profile/path"
supertwee sync --cookies <ct0> <auth_token>

manual env vars also work:

export X_AUTH_TOKEN='...'
export X_CT0='...'

output

by default, supertwee writes local data to:

./data

override it with:

export SUPERTWEE_DATA_DIR=/absolute/path

exports are written to ./data/exports/<timestamp>/ unless --out-dir is provided.

supertwee ui opens a dependency-free interactive menu for sync, trends, export, and doctor.

what makes a topic trend

supertwee looks for repeated signal, not just one loud tweet.

it weights:

  • recurring phrases
  • hashtags and cashtags
  • repeated high-signal terms
  • repeated domains
  • cross-tweet topic overlap

what makes a tweet a banger

supertwee ranks tweets using engagement and reach signals, including:

  • views
  • likes
  • reposts
  • replies
  • quotes
  • bookmarks
  • author follower count

when enough original tweets exist, retweets are pushed down so the list stays useful.

query id override

x rotates internal graphql query ids sometimes.

if sync starts failing after a web app change, override the current homelatesttimeline query id:

export SUPERTWEE_HOME_LATEST_QUERY_ID='CRprHpVA12yhsub-KRERIg'

privacy

  • your feed archive stays local
  • supertwee does not need a hosted backend
  • analysis runs on saved data, not a remote dashboard

who this is for

supertwee is for people who spend serious time on x and want a faster way to answer:

  • what topics are taking over my feed
  • which tweets are breaking out
  • what kinds of posts keep getting rewarded

development

npm test
node ./bin/supertwee.mjs doctor

license

mit