{"id":13511957,"url":"https://github.com/makaroni4/youtube_time_tracker","last_synced_at":"2026-01-24T09:35:07.760Z","repository":{"id":53458833,"uuid":"165413282","full_name":"makaroni4/youtube_time_tracker","owner":"makaroni4","description":"Chrome Extension that tracks time you spent on Youtube.","archived":false,"fork":false,"pushed_at":"2022-11-30T18:50:23.000Z","size":164,"stargazers_count":115,"open_issues_count":7,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-20T01:38:40.362Z","etag":null,"topics":["chrome-extension","productivity","time-tracker","youtube"],"latest_commit_sha":null,"homepage":"https://chrome.google.com/webstore/detail/youtube-time-tracker/gadnhdhegigkbjiebmcceodbablkdjmo","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makaroni4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-12T17:03:43.000Z","updated_at":"2025-12-30T20:29:28.000Z","dependencies_parsed_at":"2023-01-23T14:00:16.838Z","dependency_job_id":null,"html_url":"https://github.com/makaroni4/youtube_time_tracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/makaroni4/youtube_time_tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makaroni4%2Fyoutube_time_tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makaroni4%2Fyoutube_time_tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makaroni4%2Fyoutube_time_tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makaroni4%2Fyoutube_time_tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makaroni4","download_url":"https://codeload.github.com/makaroni4/youtube_time_tracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makaroni4%2Fyoutube_time_tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28723362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chrome-extension","productivity","time-tracker","youtube"],"created_at":"2024-08-01T03:01:21.441Z","updated_at":"2026-01-24T09:35:07.745Z","avatar_url":"https://github.com/makaroni4.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# YouTube™ Time Tracker [![Build Status](https://travis-ci.org/makaroni4/youtube_time_tracker.svg?branch=master)](https://travis-ci.org/makaroni4/youtube_time_tracker) [![Add to Chrome](https://user-images.githubusercontent.com/768070/51865757-87d45300-2347-11e9-84fd-bafff5b036b2.png)](https://chrome.google.com/webstore/detail/youtube-time-tracker/gadnhdhegigkbjiebmcceodbablkdjmo)\n\nYouTube™ Time Tracker is a Chrome Extension that tracks time you spent on YouTube. It's important to notice that it uses only local [chrome.storage API](https://developer.chrome.com/apps/storage) to store data and it __**does't send  data anywhere**__ :warning:.\n\n![YouTube™ Time Tracker screenshots](https://user-images.githubusercontent.com/768070/51443822-ed449600-1cee-11e9-90d9-40a597ef512a.jpg)\n\n## Stored data format\n\nAlthough local chrome.storage allows us to store [up to 5 Mb of data](https://developer.chrome.com/apps/storage#property-local) extension keeps its data very simple, just JSON with 8 keys for current/previous time periods:\n\n```js\n{\n  \"2019\": 110.2, // year\n  \"jan-2019\": 110.2, // month\n  \"2-2019\": 110.2, // week (0-52)\n  \"2019-01-13\": 110.2, // today\n  \"2018\": 10294, // previous year\n  \"dec-2018\": 1248, // previous month\n  \"1-2019\": 159, // previous week\n  \"2019-01-12\": 91 // yesterday,\n  \"time_watched\": 10404.2 // total time watched,\n  \"installed_at\": \"2019-01-01\" // when extension was installed\n}\n```\n\n## Development\n\nUse `npm install` to install needed packages (there are just a bunch: webpack, babel, jest and timekeeer for testing).\n\nThen run `npm start` for Webpack to watch and compile JS files.\n\nLoad [extension folder](https://github.com/makaroni4/youtube_time_tracker/tree/master/extension) to [chrome://extensions/](chrome://extensions/) via \"Load unpacked\":\n\n![Loading extension in Chrome for development](https://user-images.githubusercontent.com/768070/51443928-e3bc2d80-1cf0-11e9-9389-08887d88015f.png).\n\n:warning: You'll need to update extension every time you changed CSS/JS files. :warning: Webpack will watch JS files and compile app.js file in `extension` folder.\n\n## Testing\n\nTo run tests use `npm test`.\n\nTests are written with [jest](https://jestjs.io/) with [a bunch of custom matchers](https://github.com/makaroni4/youtube_time_tracker/tree/master/test/custom_matchers) and [custom helper functions](https://github.com/makaroni4/youtube_time_tracker/tree/master/test/support).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakaroni4%2Fyoutube_time_tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakaroni4%2Fyoutube_time_tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakaroni4%2Fyoutube_time_tracker/lists"}