/open_tab_tracker

This tool tracks open Firefox tabs and plots them on a graph

Primary LanguagePythonMIT LicenseMIT

Open Tab Tracker

This tool tracks the count of open tabs you have, and plots them over time.

When I'm working on a problem, or exploring a new idea, I'll open a new browser window and start searching. I'll discover related ideas that I should look into, new things to learn, and often, more problems to work on. I thought it would be neat to be able to display this data visually.

This is what my open tab chart looked like while I was working on this project. You can see the points in time where I solved a problem I was working on (sharp decrease in open tabs), and the points where I discovered new problems to solve (sharp increase in open tabs).

Installation

This package has been released on pypi.

$ pipx install open-tab-tracker
$ open-tab-tracker --install

Usage

$ open-tab-tracker --help
Usage: open-tab-tracker [OPTIONS]

  Open Tab Tracker

Options:
  -a, --add-datapoint  Add a datapoint
  -i, --install        Install in crontab to run at startup
  --drop-database      Drop the database
  --graph              Opens the graph in a browser
  --print-db           Print the database
  --uninstall          Uninstall from crontab
  -v, --version        Print the version
  -h, -help, --help    Show this message and exit.

  See the project homepage for more details:
  https://github.com/alichtman/open_tab_tracker

Support

OS Firefox Chrome / Chromium Safari
Linux
macOS
Windows

Technical Details

  • Data is stored in a sqlite3 database at $XDG_DATA_HOME/open_tab_tracker.db.
  • Firefox tab counts are derived from your firefox profile session backup recovery files. You can read the implementation details in browsers/firefox.py.