{"id":24756862,"url":"https://github.com/qazcetelic/home-watcher","last_synced_at":"2025-09-06T15:40:19.330Z","repository":{"id":274303639,"uuid":"922489479","full_name":"QazCetelic/home-watcher","owner":"QazCetelic","description":"Find out which programs are creating those random files in your home directory","archived":false,"fork":false,"pushed_at":"2025-02-03T09:48:36.000Z","size":57,"stargazers_count":56,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-17T01:43:36.169Z","etag":null,"topics":["linux","rust","xdg-compliance"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QazCetelic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-26T11:04:22.000Z","updated_at":"2025-07-16T16:03:36.000Z","dependencies_parsed_at":"2025-01-26T13:25:00.979Z","dependency_job_id":"2f3665c7-0fbf-4010-be99-1e108eeffd33","html_url":"https://github.com/QazCetelic/home-watcher","commit_stats":null,"previous_names":["qazcetelic/home-watcher"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/QazCetelic/home-watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QazCetelic%2Fhome-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QazCetelic%2Fhome-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QazCetelic%2Fhome-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QazCetelic%2Fhome-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QazCetelic","download_url":"https://codeload.github.com/QazCetelic/home-watcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QazCetelic%2Fhome-watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273926572,"owners_count":25192318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","rust","xdg-compliance"],"created_at":"2025-01-28T14:21:09.826Z","updated_at":"2025-09-06T15:40:19.303Z","avatar_url":"https://github.com/QazCetelic.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `home-watcher`\n\n`home-watcher` is a Linux utility that monitors your home directory for file creation activities outside of the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/latest/) and logs these interactions into an SQLite database.\nIt's useful for finding out which applications keep creating random files with such incredibly descriptive names such as `-6000.`, `.swo`, and `.serverauth.11972` 🤔.\n\n## Usage\n\nHome Watcher will need to run as root to access the Linux Audit system, but does not need any arguments.\n```sh\nsudo home-watcher\n```\n\n### Options\n| Option                         | Description                                                                                  | Default                         |\n|--------------------------------|----------------------------------------------------------------------------------------------|---------------------------------|\n| `-d`, `--excluded-dirs`        | Specify additional directories to exclude from monitoring (relative to your home directory). | None                            |\n| `-e`, `--excluded-executables` | Specify executables to exclude from monitoring                                               | None                            |\n| `-l`, `--log-file`             | Path to the SQLite database file for logging.                                                | `XDG_DATA_HOME/home-watcher.db` |\n| `-i`, `--interval`             | Interval (in milliseconds) to check audit logs.                                              | 1500                            |\n| `-u`, `--user`                 | The user to watch the home directory of.                                                     | Executing user                  |\n| `-h`, `--help`                 | Display the help message with usage details.                                                 |                                 |\n| `-V`, `--version`              | Display the current version of `home-watcher`.                                               |                                 |\n\nNote: Common user directories like `Documents`, `Downloads`, `Pictures`, `Videos`, `Desktop`, and `Music` are excluded by default.\n\n## Installation\n\n1. **Build from source**  \n   Clone the repository and compile the Rust project:\n   ```bash\n   git clone https://github.com/QazCetelic/home-watcher.git\n   cd home-watcher\n   cargo build --release\n   ```\n   The compiled binary will be available in the `target/release` directory.\n\n2. **Install the binary**  \n   Move the binary to a directory in your `PATH`, such as `/usr/local/bin`:\n   ```bash\n   sudo mv target/release/home-watcher /usr/local/bin/\n   ```\n   \n3. **(Optional) Install the systemd service**  \n   Make sure to change `\u003cUSER\u003e` in `home-watcher.service`\n   ```bash\n   sudo cp ./home-watcher.service /etc/systemd/system/home-watcher.service\n   sudo systemctl enable home-watcher.service --now\n   ```\n\n## Database\nThe database contains an `files` table with the following data:\n\n| **Name**         | **Column**      | **Description**                                                          |\n|------------------|-----------------|--------------------------------------------------------------------------|\n| **File**         | `file` 🔑       | The location of the modified file or directory                           |\n| **Executable**   | `executable` 🔑 | The path of the program responsible for modifying the file               |\n| **Time added**   | `added_at`      | When the file - executable entry was first added                         |\n| **Time changed** | `changed_at`    | When the file - executable entry was last changed                        |\n| **Total count**  | `count`         | The total amount of times the executable was detected modifying the file |\n\n## Contributing\n\nIf you find bugs, have suggestions, or want to contribute features, feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqazcetelic%2Fhome-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqazcetelic%2Fhome-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqazcetelic%2Fhome-watcher/lists"}