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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@jaebradley/wakatime-cli

v1.4.9

Published

CLI for the Wakatime Service

Downloads

26

Readme

Wakatime CLI npm npm

wakatime-cli

Introduction

waka-flocka-flame1

As a mega-nerd (proven by my use of the term, "mega-nerd"), I am a big fan of the WakaTime service for tracking my coding.

But I think it'd be pretty damn cool if I could see some of my stats in the Terminal via a CLI.

alt-text

Installation

npm install @jaebradley/wakatime-cli -g

Usage

Setup

waka setup

setup

The wakatimecli uses the WakaTime API to get data. One of the easiest ways to authenticate requests is by using your WakaTime API key, which can be retrieved by going to your WakaTime user profile.

Then, use the waka setup command to set your API key for the wakatimecli project, which will store your key using node-keytar (so in Keychain on OSX, for example).

Summary Options

Section Filters

There are a couple notable command line options for filtering summary data.

However, filtering only impacts the summary data for the given section. So filtering by a particular project name will only change the output data for the Projects section and won't impact the Editors or Languages section.

This is primarily due to the output from the Wakatime /summaries endpoint which doesn't return linked data across editors, projects, and languages.

  • -e <Some Editors Filter> - filters the editors in the Editors section
    • Supports regex, so -e /vs co.*/i, for example (which would match VS Code)
  • -l <Some Languages Filter> - filters the languages in the Languages section
    • Supports regex, so -l /java.*/i, for example (which would match Java and JavaScript)
  • -p <Some Projects Filter> - filters the projects in the Projects section
    • Supports regex, so -p /waka.*/i, for example (which would match wakatime-cli and wakatime-client)

Section Options

You might want to restrict the sections that are outputted (if you want to only see your language statistics, for example).

Here are the following ways to toggle specific sections. If no options are specified, all sections will be displayed.

  • -E - show the Editors section
  • -L - show the Languages section
  • -P - show the Projects section

If data is not available for a given section, it will not be displayed even if that option was specified.

Today's Summary

waka today

alt-text

Outputs the summary stats (total time recorded, editors, languages, and projects) for the current day using the summaries API.

waka yesterday

Like Today's Summary but, like, the day before.

Footnotes

1 Get it? Cause that's Waka Flocka Flame and I like bad jokes. You get it.