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

meagain

v1.2.0

Published

track activity on your computer, optionally save to your AWS account (an S3 bucket you control)

Downloads

6

Readme

Table of Contents

meagain

track activity on your computer, optionally save to your AWS account (an S3 bucket you control)

Why?

To analyze your life, you need data. You don't have it, and if you do, you don't own it. Apps like RescueTime store your data in their cloud. Apps like Timing store data locally...but what if they don't really? I mean I'm sure they do...but what if they don't?

What?

currently tracked:

  • foreground application
  • system idle time.

Event Stream Sample

[
  // ...
  {
    "app": "Sublime Text",
    "time": 1533746158318,
    "duration": 1040
  },
  {
    "app": "Google Chrome",
    "type": "browser",
    "activeTab": {
      "title": "Inbox (1,431) - [email protected]",
      "url": "https://mail.google.com/mail/u/0/#inbox"
    },
    "time": 1533746159358,
    "duration": 980
  },
  {
    "app": "WhatsApp",
    "time": 1533746160338,
    "duration": 5048
  },
  {
    "app": "AdobeReader",
    "time": 1533746165386,
    "duration": 1028
  },
  // ...
]

The steps involved

  1. track foreground application / idle time
  2. store locally to an append-only log (~/.meagain/log.db)
  3. periodically consume the log and sync to S3
  4. TODO: analyze

Install

npm i -g meagain

Usage

Command Line

# configure your storage options
meagain configure

# start tracking your activity
meagain start

Use as a Module

See lib/cli/track.js for an example of how to set up tracking

Todo

Soon

  • implement web app (ignore the mess in app/ for now)
  • support data queries
    • get activity breakdown during a time period (today, this month)
    • search content of visited browser pages (later)
  • improve run-as-a-service mode:
    • enable start on system start

Eventually

  • deploy as serverless
    • serve web app from s3 bucket
    • do all processing in lambda