The write-up
How Chintu is built
a Git desktop app that likes you back
systems · desktop
What
A desktop app that runs real git underneath and says it all in plain English, with not a terminal in sight.
Why
Developers have trusted git for decades, and its terminal keeps everyone else out. Chintu hands it to the people who make things.
How
A C++17 core answers the window over loopback HTTP behind a shared secret and drives the real git CLI, no libgit2. It will not rewind over unsaved work, and pushes a rewritten history only with a lease.
Built with
- C++17
- Electron 41
- React 18
- Vite 8
- CMake
- vcpkg
- libcurl
- cpp-httplib
- nlohmann/json
- SQLite
- Vitest
- electron-builder
By the numbers
- lines of source
- 127,717
- commits
- 883
- test cases
- 1,093
- local API routes
- 157
- IPC channels
- 72
- React components
- 145
- git commands
- 38
- GitHub endpoints
- 26
- UI themes
- 33
Languages
| JavaScript / JSX | 81,356 | 63.7% |
| CSS | 21,811 | 17.1% |
| C++ | 18,821 | 14.7% |
| Shell / PowerShell | 3,179 | 2.5% |
| Python | 2,550 | 2.0% |
On the wire
- HTTP / TCP
- 127.0.0.1:8765, UI to C++ core, shared secret
- IPC
- Electron: 60 invoke, 12 push channels
- HTTPS
- libcurl to GitHub REST and GraphQL
- OAuth
- GitHub device flow sign-in
- Process
- spawns the real git CLI, no libgit2
APIs
- GitHub REST
- GitHub GraphQL
- OAuth device flow
- GitHub Releases
Also
Windows and macOS. 9 CI workflows, CodeQL included. States like “dubious ownership” become one Mark folder safe button.