Skip to main content

whydatApp

PyPI Python License

whydatApp (why?)

Ever install something, then months later wonder why it's on your machine?

why? catches every package manager install (and supported uninstalls) (brew, npm, pip, cargo, apt, …) right as it happens via a lightweight shell hook, then prompts you to jot down what the tool is for, which project needed it, whether it's worth keeping, and what to do with it later. It also captures a short command-history snippet for context (redacted for secrets) so you can reconstruct what led up to an install. Everything stays in a local SQLite database — nothing is sent anywhere. Browse, search, filter, and export your install history through a built-in web UI, or right from the terminal.

What you can answer with why?:

  • What do I have installed? — Full inventory across all package managers in one place
  • Why did I install this? — Context captured at install time, while you remember
  • Which project needed it? — Auto-inferred from your working directory
  • Is this still useful? — Mark tools as experimental, for removal, or permanent docs
  • What's taking up space? — See resolved install paths and identify candidates to uninstall
  • Did I ever install X? — Search by name, command, or description — find it instantly
  • Did I ever remove X? — Uninstalls are captured too; removed entries stay in your history
  • What led up to this install? — See the recent commands that ran before it (with secret redaction)
  • What should I clean up? — Review queue surfaces incomplete entries and stale experimental installs
  • How do I set up this project elsewhere? — Export your setup dependencies to Markdown or JSON
  • Which managers do I use most? — Dashboard shows install trends by manager, project, and month

Screenshots

Browse and filter your full install history in the web UI:

Web UI — Installs list with filters and purpose badges

The dashboard shows installs by purpose, manager, project, and trend over time:

Web UI — Dashboard with stats, breakdowns, and installs-per-month chart

More screenshots — edit modal, purposes, CLI

Edit any entry directly in the web UI:

Web UI — Edit install modal

Customize or add your own purpose categories:

Web UI — Purpose categories management

why show — full details for a single install:

why show — full details for a single install

Install

From PyPI (recommended):

uv tool install 'why-cli[web]'   # or: pipx install 'why-cli[web]'
why init                          # interactive setup; edits your shell rc

From source (for development or pre-release):

git clone https://github.com/Nostoi/whydatapp.git
cd whydatapp
uv tool install --editable '.[web]'
why init

Restart your shell, then try brew install ripgrep (or any tracked manager).

To upgrade:

uv tool upgrade why-cli          # or: pipx upgrade why-cli

That's it. Schema migrations, new config keys, and the shell hook in ~/.why/ all catch up on their own the next time you run any why command. If the hook was refreshed you'll be told to start a new shell — nothing is restarted for you.

Full install instructions, including building from a wheel: Install guide.

Quick reference

Command What it does
why init Interactive first-run setup
why Show help and the available subcommands
why log -- <cmd> Manually log an install
why review Drain the skipped/incomplete review queue
why list Print installs as a table
why show <id> Show full details for one entry
why follow Record a terminal task transcript
why recall Save recent command history as a transcript
why sessions View transcripts and manually summarize them
why llm Configure optional LLM task recaps
why delete <id> Soft-delete an entry
why export Export to Markdown or JSON
why purposes Manage purpose categories
why serve Open the local web UI at 127.0.0.1:7873
why uninstall Remove the hook (and optionally the data)

Detailed usage with examples: Usage guide.

Documentation

  • Install — Requirements, install paths (PyPI / source / wheel), what why init does, uninstall.
  • Usage — Every CLI subcommand with examples.
  • Web UI — Walkthrough of the local web interface.
  • Configuration~/.why/*.toml files, env vars, ignore rules.
  • Troubleshooting — Hook not firing, prompt missed, address-in-use, restoring data, filing bugs.
  • Development — Clone, set up, run tests, build the wheel, project layout, contribute.
  • Changelog — Release history.
  • Design spec — Architecture, data model, decisions, post-MVP roadmap.

Privacy

  • All data lives in ~/.why/data.db unless you explicitly run why sessions summarize or click Summarize in the web UI. Both surfaces enforce confirm_before_send: with the default remote policy, anything leaving the machine is confirmed first, and the web UI names the endpoint, model, and command count before you approve.
  • Recorded transcripts can be removed — why sessions delete <id> hides one, --purge erases it and its commands and summaries.
  • The web UI binds to 127.0.0.1 only.
  • All static assets vendored locally — no CDN, no Google Fonts, no analytics.
  • The shell hook ignores any install triggered by another tracked installer (no false positives from brew resolving deps).
  • LLM summaries are opt-in. Command text is redacted on a best-effort basis before storage and before LLM submission, but review payloads with why sessions summarize <id> --print-payload when privacy matters.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

why_cli-2.3.3.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

why_cli-2.3.3-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file why_cli-2.3.3.tar.gz.

File metadata

  • Download URL: why_cli-2.3.3.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for why_cli-2.3.3.tar.gz
Algorithm Hash digest
SHA256 c5c79a5bb22b3fa20873fbbd2e5da6fde97772246b95b146ac32da10d88a6034
MD5 4d56122c3ca6c7975c27676fadb224b3
BLAKE2b-256 7237cfe4b28b5698e4faab6787ca546d0890f00b3ec6ca487564b4dfcfde40b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for why_cli-2.3.3.tar.gz:

Publisher: release.yml on Nostoi/whydatapp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file why_cli-2.3.3-py3-none-any.whl.

File metadata

  • Download URL: why_cli-2.3.3-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for why_cli-2.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b763c723805a0a3788fd582de00adb21a3ab1f4ff29ffa2eb0cc86bd081b3ba3
MD5 cc139ec9544cffe28dbfb4b0c03e2e3b
BLAKE2b-256 237759e6e25ae40684a0fe0ad05e33e5e554083947f88c9624a42c262aae4f79

See more details on using hashes here.

Provenance

The following attestation bundles were made for why_cli-2.3.3-py3-none-any.whl:

Publisher: release.yml on Nostoi/whydatapp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2.3.9

2 files

2.3.8

2 files

2.3.7

2 files

2.3.6

2 files

2.3.4

2 files

This release

2.3.3 This release

2 files

2.2.1

2 files

2.2.0

2 files

2.0.3

2 files

2.0.1

2 files

2.0.0

2 files

1.3.3

2 files

1.3.1

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.5

2 files

1.0.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page