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

pstalker

v1.4.6

Published

pStalker is a CLI-only time tracking tool that monitors the time spent on desktop applications.

Downloads

630

Readme

About The Project

Product Name Screen Shot

Built With

JavaScript NodeJS Shell Script Python SQLite

Supported Operating Systems

| Operating System | Support Level | | ---------------------- | ------------------------------ | | Linux (X11) | Full Support ✅ | | Linux (GNOME) | Requires Extension ✅ | | Windows | Not Yet Supported ❌ | | macOS | Not Yet Supported ❌ |

Tested Distributions:

  • Manjaro GNOME Wayland: Tested and supported. ✅
  • Ubuntu 22 GNOME X11: Tested and supported. ✅

Getting Started

Follow the instructions below to set up pStalker on your local Linux machine.

Prerequisites

Ensure that you have the following installed on your system:

  • Python
  • Node.js

Installation

⚠️ Warning for Linux Users:

  • GNOME Users: You must install the Window Calls Extended extension for pStalker to function properly.
  • Autostart Configuration: Ensure your Linux distribution uses the ~/.config/autostart/ directory to run scripts on login; otherwise, pStalker won't work.
  • Privileges: You might need to use sudo to install pStalker.

Install pStalker globally using npm:

 npm install -g --foreground-scripts pstalker

Thats it, pStalker will automatically configures itself to start on boot by placing a script in the ~/.config/autostart/ directory.

🔒 Privacy Note: Rest assured, pStalker does not collect any type of user data. You can review the code to confirm our commitment to your privacy. :)

Usage

Run the tool with the following command:

pstalker

The following is a representation of the pStalker CLI menu and its options:

pStalker CLI
├── Main Menu
│   ├── Enable Tracking
│   │   └── Enables tracking both now and on boot. Re-runs the installer script; may require sudo.
│   ├── Disable Tracking
│   │   └── Disables tracking both now and on boot. Removes tool-related files; database remains unchanged; may require sudo.
│   │ 
│   ├── Show Apps Usage
│   │   ├── Show Today
│   │   │   └── Displays usage data for today.
│   │   ├── Show Last Week
│   │   │   └── Displays usage data for the last 7 days.
│   │   ├── Show Last Month
│   │   │   └── Displays usage data for the last 30 days.
│   │   ├── Show Last Year
│   │   │   └── Displays usage data for the last 365 days.
│   │   ├── Show Specific Date
│   │   │   └── Displays usage data for a specific day.
│   │   └── Show Date Range
│   │       └── Displays usage data for a specific date range.
│   │ 
│   ├── Manage Apps
│   │   ├── Show Apps List
│   │   │   └── Lists all apps detected at least once.
│   │   ├── Include Apps
│   │   │   └── Re-includes apps that were previously excluded.
│   │   ├── Exclude Apps
│   │   │   └── Excludes apps from tracking.
│   │   └── Delete Apps Usage History
│   │       └── Deletes usage history for one or more apps.
│   │ 
│   ├── Export Data
│   │   ├── Export to CSV
│   │   │   └── Exports usage data to a CSV file.
│   │   └── Export to JSON
│   │       └── Exports usage data to a JSON file.
│   │ 
│   ├── Backup & Restore
│   │   ├── Create Backup
│   │   │   └── Creates a backup of the current database.
│   │   └── Restore from Backup
│   │       └── Lists available backups and allows restoring from a selected backup file.
│   │ 
│   ├── Help
│   │   └── Displays the help menu for the current section.
│   └── Exit
│       └── Exits the tool.

Roadmap

  • [x] Enable selecting a specific day for generating reports
  • [x] Enable selecting a date range for generating reports
  • [x] Enable deleting all usage history for a specific app
  • [x] Allow exporting data to a CSV file
  • [x] Allow exporting data to a JSON file
  • [x] Enable importing and exporting database backups
  • [ ] Add support for Windows
  • [ ] Add automated tests
  • [ ] Develop a GUI using Electron for viewing data on Linux and Windows. (Once the Repository reaches 100 stars)

See the open issues for a full list of proposed features and known issues.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make pStalker better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Gianluca Iavicoli - Linkedin - [email protected]

Acknowledgments

Special thanks to the resources and tools that helped make this project possible: