A Rust terminal app that signs into Hackatime with OAuth PKCE and prints a simple stats summary.
- From crates.io:
cargo install hackatime - Then run:
hackatime - Enjoy :)
hackatimeshows the multi-range summary plus lifetime languageshackatime .shows stats for the current folder if it matches one of your Hackatime projectshackatime settingsshows the current saved settingshackatime settings coloropens an arrow-key color picker with the fetchhpreviewhackatime settings clear toggletoggles terminal clearing on or offhackatime settings clear on|offexplicitly enables or disables terminal clearingHACKATIME_CONFIG_DIR=/some/folder hackatime settings colorstores settings in a custom config directoryhackatime --lookup <username>shows another person's public Hackatime statshackatime --lookup <username> -gshows another person's graphhackatime --lookup <username> --projects --yearshows another person's top projects for that rangehackatime --fetch(-f) shows a neofetch-style overviewhackatime --graph(-g) shows a GitHub-style coding heatmap for the last 365 dayshackatime --projects(-p) shows your top projects with per-project language graphs and a keyhackatime --projects --week|--month|--yearscopes that projects view to a time rangehackatime --current(-c) shows the current project reporthackatime --today(-d) shows today's total plus today's languageshackatime --week(-w) shows this week's total plus this week's languageshackatime --month(-m) shows this month's total plus this month's languageshackatime --year(-y) shows this year's total plus this year's languageshackatime --lifetime(-l) shows lifetime total plus lifetime languageshackatime logoutclears your saved Hackatime login
- Browser-based OAuth login using PKCE
- Reuses your saved access token on later runs so you do not log in each time
- Saves your preferred fetch theme and terminal-clearing behavior
- Lets you change saved settings directly from the command line
- Supports a custom config directory with
HACKATIME_CONFIG_DIR - Can show the current folder as a project with
hackatime . - Lets you clear the saved token with
hackatime logout - Fetches your profile
- Prints a plain text stats summary and exits