Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CotraxNew to Visual Studio Code? Get it now.
Cotrax

Cotrax

Cotrax

|
3 installs
| (1) | Free
a code tracker that flex your code time
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cotrax Logo

Cotrax

Cotrax is a Visual Studio Code extension designed to automatically track the time you spend on each project and file, similar to Steam's Playtime feature. This project consists of two main parts:

  1. VS Code Extension (Frontend): Runs in your editor, detects activity, and displays a dashboard.
  2. Go API (Backend): A powerful backend server for storing, managing, and presenting your time data in a structured manner.

Features

  • Automatic Tracking: Time is recorded automatically while you’re active inside VS Code.
  • Visual Dashboard: View detailed stats of your coding time with a dashboard that shows project lists and a pie chart.
  • Backend System with Databases: Save and Log your coding acitivties to the databases

Technologies Used

Frontend (VS Code Extension)

  • TypeScript
  • SQLite3 (for initial/demo local storage)

Backend (API)

  • Go
  • Chi (Router)
  • PostgreSQL (via Supabase)
  • golang-migrate

Other Tools

  • Postman (for API testing)

How To Install

There are two ways to use this extension:

  1. Install via VS Code Extension: Marketplace and the extension will run immediately.

  2. Install manually via local.

For the steps to install via local, see below.


Requirements

  1. Install Node.js, then install the global depedency for extention development
npm install -g yo generator-code
  1. Clone the repository
git clone https://github.com/Myriadn/Cotrax.git
cd Cotrax
  1. Install all the requirement depedency
npm install
  1. Setup Backend until it runs

  2. Run or test the Extension by pressing F5


Known Issues

You can use this extension with our built-in backend, or run the backend locally on your machine. You can configure the API endpoint in the provided configuration file, and all available endpoints are already set up. But sometimes there is some issues like:

  • Axios timeout error (ECONNABORTED) When attempting to register a project or file with the Cotrax API, you may encounter the following error message:
AxiosError: timeout of 10000ms exceeded
code: 'ECONNABORTED'

This typically indicates that the request to the remote API endpoint failed to respond in time.

  • Failed to register project/file An error popup may appear:
Could not register project/file with Cotrax API.
Source: Cotrax

This issue is often related to network problems, unreachable API endpoint, or long response delays.

This error does not affect the extension’s functionality. It simply means that new data could not be inserted into the database because it already exists.


Release Notes

We only release on this Hackaton Fest. We dont know if we will continue this project in the future.

v0.0.1

Initial release of Cotrax


Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft