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

tweet-counter

v0.0.8

Published

Counts tweets by a user in a timespan

Downloads

20

Readme

Tweet Counter

by Mark Smith

Returns the total number of tweets (including retweets) by a user in a specified span of time.

See it live at tweet-counter.com.

Contribute on GitHub.

FAQ

  • How do I use Tweet Counter?

    • Tweet Counter is designed to be as user-friendly as possible. Simply type in the Twitter screen name of the person whose tweets you want to count, then select the start date and end date for your count. Hit Count Tweets and watch the magic happen!
  • What happens if I get my start and end dates mixed up?

    • Never fear! Tweet Counter's author did this many times while developing the app, so he implemented a feature that checks the dates and swaps them if they're mixed up.
  • What if I select an end date that's in the future? Won't that mess up my total days and tweets per day results?

    • Nope! Tweet Counter checks if the end date is in the future, and uses now as the end date if it is.
  • How many tweets can Tweet Counter count?

    • Tweet Counter uses the Twitter API 1.1, which can only retrieve about 3200 of a user's most recent tweets.
  • Is there any way to get a count without retweets?

    • Not at this time. The Twitter API includes retweets by default. The author may implement a retweet filter in the future if there's demand for it. If you want it, let him know!

    • Alternatively, since Tweet Counter is open source, you can contribute whatever features you'd like!

  • What time of day does Tweet Counter count to/from? Can I specify the time?

    • Currently, Tweet Counter converts all dates to noon Eastern Time, and accounts for daylight saving time.

    • The author may implement a time selection option in the future. Again, feel free to request it or contribute it yourself.

  • What does "x% available" mean?

    • Tweet Counter currently uses a single Twitter API Application Authorization, which means it is limited to 1500 requests in a 15 minute window. More can be added, if necessary.
  • What is a "request"?

    • A request is a call to the Twitter API, which returns up to 200 tweets at a time. That means a single run of Count Tweets can be anywhere from 1 to 17 requests.
  • 17 requests? I thought you said the API can only retrieve 3200 tweets. Are you bad at math?

    • Sometimes! But not in this case. Tweet Counter sends one last request to make sure it got all the tweets it can. This is especially useful when counting tweets from a new account: if you select a date before they started tweeting, it stops counting when it gets an empty response.
  • How do I know Tweet Counter is accurate?

    • Try it yourself! While the author cannot guarantee the count accuracy, you can easily test independently. Find a user with less than 3200 tweets, and use Tweet Counter to count their tweets. Then compare with the number on their actual Twitter dashboard. Feel free to yell at us if it's wrong. (No really, it'd be super helpful if you told us about any inaccuracies.)
  • I'm too lazy to find a user with less than 3200 tweets. Could you just point me to one?

    • Well if you're that lazy, you'll probably appreciate the length of his screen name, too: vp. Ask Tweet Counter to count from any date before 1/20/2017 to tomorrow and you can compare for yourself.
  • What language is Tweet Counter written in?

    • Tweet Counter is a Node.js app, utilizing Expressjs and Pug, in addition to a number of other dependencies. Get the full list from NPM.
  • What development environment did you use to develop Tweet Counter?

    • Tweet Counter was developed on Glitch. Glitch is the friendly commmunity where you'll build the app of your dreams. Glitch lets you instantly create, remix, edit, and host an app, bot or site, and you can invite collaborators or helpers to simultaneously edit code with you.

    • Find out more about Glitch.