MCPcopy Index your code
hub / github.com/0PandaDEV/Ziit

github.com/0PandaDEV/Ziit @v1.1.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.3 ↗ · + Follow
120 symbols 421 edges 45 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The Swiss army knife of code time tracking.

<a href="https://docs.ziit.app">Docs</a>
<span>  •  </span>
<a href="https://ziit.app/stats">Stats</a>
<span>  •  </span>
<a href="https://ziit.app/leaderboard">Leaderboard</a>
<span>  •  </span>
<a href="https://discord.gg/Y7SbYphVw9">Discord</a>

Better Stack Badge ziit

[!IMPORTANT] Upvote Ziit on AlternativeTo, ProductHunt, PeerPush to help me promote it.

Star History

  <img width="100%" src="https://starchart.cc/0PandaDEV/ziit.svg?variant=adaptive">

What is Ziit?

Ziit (pronounced 'tseet') is an open-source, self-hostable alternative to WakaTime. It provides a clean, minimal, and fast dashboard for displaying coding statistics, while ensuring privacy by keeping all data on your own server. Ziit tracks coding activity such as projects, languages, editors, files, branches, operating systems, and time spent coding all presented in a familiar interface inspired by Plausible Analytics.

Ziit

Features

  • Time tracking directly from VS Code to your Ziit instance of choice.
  • Filtering using different time ranges.
  • Clean & Minimal dashboard showing only the information needed.
  • Login with GitHub or Email and Password.
  • Import Data from Wakatime or a WakAPI Instance.
  • Saves data about your current project, OS, editor, file, language and git branch.
  • Badges to embed coding time for a project into a README.
  • Public stats page to see information from the whole Ziit instance.
  • Public leaderboard to see who has the most coding hours.
  • More to come...

How to use Ziit

First setup an instance or sign up on the public one https://ziit.app then install the extension by searching for "Ziit" in your favorite IDE.

Supported IDE's:

For more details on how to setup the IDE extensions checkout the docs.

Development

Prerequisites

Setup

  1. Install dependencies:

bash bun i

  1. Database Migrations: Apply database schema changes.

bash bunx prisma migrate dev

  1. Set the environment variables: It is imporatnt that you make a .env using the .env.example as a template and set the correct values. All the instructions needed are in the example file.

  2. Run the development server: The server will start on http://localhost:3000.

bash bun dev

Extension points exported contracts — how you extend this code

ImportJob (Interface)
(no doc)
types/import.ts
Heartbeat (Interface)
(no doc)
app/composables/useStats.ts
WakApiHeartbeat (Interface)
(no doc)
server/utils/wakapi.ts
StatsResult (Interface)
(no doc)
server/api/public/[...badge].get.ts
QueueJob (Interface)
(no doc)
types/import.ts
Toast (Interface)
(no doc)
app/composables/useToast.ts
WakatimeHeartbeat (Interface)
(no doc)
server/utils/wakatime.ts
StatsWithProject (Interface)
(no doc)
server/api/public/[...badge].get.ts

Core symbols most depended-on inside this repo

handleApiError
called by 85
server/utils/logging.ts
handleLog
called by 57
server/utils/logging.ts
updateJob
called by 36
server/utils/import-queue.ts
processHeartbeatsByDate
called by 7
server/utils/summarize.ts
getLogPrefix
called by 5
server/utils/import-queue.ts
getOrCreateJob
called by 5
server/utils/import-queue.ts
mapHeartbeat
called by 4
server/utils/wakatime.ts
parseUserAgent
called by 4
server/utils/wakatime.ts

Shape

Function 76
Method 23
Interface 17
Class 2
Enum 2

Languages

TypeScript100%

Modules by API surface

server/utils/import-queue.ts39 symbols
server/utils/wakatime.ts15 symbols
app/composables/useStats.ts15 symbols
server/utils/wakapi.ts7 symbols
server/utils/summarize.ts7 symbols
app/composables/useToast.ts7 symbols
server/api/import/index.post.ts6 symbols
types/import.ts5 symbols
server/api/import/status.get.ts4 symbols
server/utils/logging.ts3 symbols
server/api/auth/github/callback.get.ts3 symbols
server/utils/stats.ts2 symbols

Datastores touched

placeholderDatabase · 1 repos
ziitDatabase · 1 repos

For agents

$ claude mcp add Ziit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact