Chronos is a browser extension for recording & visualizing web browsing activity.
Not at all! All recorded web browsing activity is stored locally on your device. The application is not connected to any external services & no data will be transmitted out of your device.
Users have the ability to export all recorded data or import data (backed-up from a different browser or machine) via the application's settings page.
Here's the list of supported browsers:
- Brave & Chrome (Chrome Web Store)
- Edge Chromium (Edge Extension Store)
- Firefox (Firefox Add-ons)
- Opera (under Opera Add-ons review)
The application consists of two main components:
- Background Page: A script (a.k.a
ActivityLogger
) that runs in the background & listens to browser tab events to record web browsing activity into the browser's client-side storage (IndexedDB). - Extension Page: A web application that visualizes the user's web browsing activity by using the data stored in IndexedDB by the background page.
The recommended way to develop the application is to temporarily install the extension on your browser with the following steps:
-
Start the application's
webpack-dev-server
:yarn start
-
Go to the browser's extension management page:
- Brave: brave://extensions
- Chrome: chrome://extensions
- Firefox: about:debugging#/runtime/this-firefox
- Opera: opera://extensions
-
Temporarily install the extension (select
manifest.json
found in/build
):NOTE: Depending on the browser platform, you might be required to enable "Developer mode".
- Brave/Chrome/Opera: Click on the "Load Unpacked" button located at the top of the page
- Firefox: Click on the "Load Temporary Add-on..." button located at the top of the page
-
Once installed successfully, you should see the
chronos
's icon in your browser's navigation bar. Click on it to navigate tochronos
's extension page. -
You can start modifying the codebase & observe the changes right away without having to reinstall the extension (i.e. hot-reloading should work out of the box).
-
Go to the browser's extension management page
-
To open the DevTools panel of the extension's background page:
- Brave/Chrome/Opera: Click on "index.html" link located on the extension's details card
- Firefox: Click on "Inspect" button located on the extension's details card
To get development tools such as react-devtools & redux-devtools to work against a temporarily installed extension, start the application's webpack-dev-server
in remote debug mode:
yarn start:remote-debug
-
Start
react-devtools
server onhttp://localhost:8097
(you should observe thereact-devtools
UI being opened in a new window)yarn react-devtools
-
Reload the extension page, the application should automatically connect to the
react-devtools
server & UI.
-
Start
redux-devtools
server onhttp://localhost:8098
yarn redux-devtools
-
Open the Remote
redux-devtools
UI by clicking on theredux-devtools
extension icon in your browser window & selecting the "Open Remote DevTools" option on the dropdown -
If this is your first time using the tool, go to the
redux-devtools
UI settings & ensure that:- "Use custom (local) server" is checked
- "Host name" & "Port" field is set to
locahost
&8098
respectively - "Use secure connection" option is unchecked
-
Reload the extension page, the application should automatically connect to the
redux-devtools
server & UI.
Run tsc
, ESLint, stylelint & Prettier
yarn run check
Fix ESLint all fixable errors & warnings
yarn lint:fix
Fix stylelint all fixable errors & warnings
yarn stylelint:fix
Fix Prettier all fixable errors & warnings
yarn prettier:fix
Run all unit tests & watch for changes
yarn test
Run all unit tests & enable Node Debugger
yarn test:debug
Run all unit tests
yarn test:ci
Build the extension & output bundle into /build
& a zip file build-<GIT_COMMIT_SHA>.zip
which can be used across all supported browsers.
yarn build:extension
NOTE: Make sure you have created
.env
before proceeding
- see .env.example for list of environment variables to populate
For demo purposes, we can build the extension as a web application that has the extension's UI, populated with pre-generated web browsing activity data.
Build the extension as a demo web application & output bundle into /build
yarn build:demo
Chronos is MIT licensed.