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

timav-cli

v1.0.5

Published

cli tool and a library for working with time tracking data

Readme

timav

timav is a cli tool and a library for working with time tracking data kept in google calendar. For historical reference check out timav blog post.

This is personal software project, shared mainly as a reference point. I wont be fixing bugs that don't happen to me, or add functionalities I don't want/need.

Tracking

The system for describing logs looks like this:

[Project] @tag1 @tag2(subtag)
  • Project is optional, and allows me to group logs for given project, it's usually a client project I work on, or well-defined personal project
  • @tag is additional metadata that I can use to analyse the logs, I can add how many tags I want to a given event, but it's usually just a few; at the moment most often used ones are: @work, @personal, @code(...)
  • @tag(subtag) is a shorthand for having more data about a given tag, but allows me to still nest them under one bigger thing, this might be overly complex, but works for me — I use @code(js) when I'm writing JavaScript, @code(clj) for Clojure, @health(gym) for when I'm training and @health(walk) when strolling

Installation

  1. npm install -g timav-cli
  2. timav config, and set:
{
  "calendar": "Tracking" // the name of google calendar with tracking data
}
  1. DEBUG=* timav cache - first time should be run in interactive bash session, as it will lead you through the setup process
  2. ideally add timav cache as a cronjob - I run it every 15 minutes

Usage

  • timav cache - download/update cached events
  • timav stats - basic statistics
  • timav tags - top-used tags
    • timav tags -n 2 - specify how many tags to display
  • timav habit <query> - show habit-like chart for specified query, for example: timav habit @personal
  • timav projects [query] - show last projects, query is optional
    • timav projects @work -n 2 - show last two work projects

Library

In addition, timav-cli can be used as a library, example dashboard code used for the screenshot at the top of this file:

#!/usr/bin/env node

const habit = require("timav-cli/habit");
const projects = require("timav-cli/projects");
const stats = require("timav-cli/stats");
const tags = require("timav-cli/tags");
const { getParsedEvents } = require("timav-cli/utils/paths");
const { loadConfig } = require("timav-cli/utils/config");

const { calendar } = loadConfig();
const events = getParsedEvents({ calendar });

let result = "";

// basic stats
result += stats.render(stats.calculate({ events, calendar }));
result += "\n\n";

// my habits
result += ["@personal", "@research", "@work", "@health"]
  .map(query => habit.render(habit.calculate({ events, query })))
  .join("\n");

// top 6 tags
result += "\n\n";
result += tags.render(tags.calculate({ events, calendar, n: 6 }));

// last 6 personal projects
result += "\n\n";
result += projects.render(projects.calculate({ events, calendar, query: "@personal", n: 6 }));

console.log(result);