惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
MyScale Blog
MyScale Blog
Jina AI
Jina AI
爱范儿
爱范儿
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
I
Intezer
The Cloudflare Blog
T
Threat Research - Cisco Blogs
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
AI
AI
Scott Helme
Scott Helme
Attack and Defense Labs
Attack and Defense Labs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
Hugging Face - Blog
Hugging Face - Blog
W
WeLiveSecurity
Last Week in AI
Last Week in AI
Security Archives - TechRepublic
Security Archives - TechRepublic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
S
Securelist
S
Security Affairs
Project Zero
Project Zero
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
T
Tor Project blog
A
About on SuperTechFans
V2EX - 技术
V2EX - 技术
宝玉的分享
宝玉的分享
T
Tenable Blog
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
Simon Willison's Weblog
Simon Willison's Weblog
Forbes - Security
Forbes - Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
V2EX
AWS News Blog
AWS News Blog
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Privacy & Cybersecurity Law Blog
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hacker News: Front Page
美团技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
htop for Your Git History
Wes · 2026-04-20 · via DEV Community

You clone a repo you've never seen before and you want to understand it. Not the code, not yet. The shape of the project. Who's been working on it? How often? Is it one person pushing daily or three people who show up once a month? Are there stale branches? When was the last release? What files change the most?

Git has answers to all of this, scattered across a dozen commands. git log --format with the right incantation gives you commit frequency. git shortlog -sn gives you contributor rankings. git branch -v shows branches but not staleness. git tag gives you release names but not cadence. None of it is visual. None of it is fast. And none of it lives in one place.

gittop puts it in one place.

What Is gittop?

gittop is a terminal UI for git repository statistics, built in Go by hjr265 (Mahmud Ridwan). You run gittop in a repo and it scans the commit history, then drops you into a seven-tab dashboard: Summary, Activity, Contributors, Branches, Files, Releases, and Commits. Each tab is a different lens on the same data. Switch tabs with number keys, zoom time ranges with +/-, filter by author or path or branch with a query language, and navigate everything with vim keys.

The whole thing is about 6,500 lines of Go, a month old, and sitting at 119 stars. The author wrote a blog post about building it with agentic coding tools, which makes the project an interesting artifact on two levels: it's a useful tool, and it's a case study in what agent-assisted development produces.

The Snapshot

Project gittop
Stars ~119 at time of writing
Maintainer Solo, merges PRs within hours
Code health Clean architecture, good deps, almost no tests
Docs Strong README with screenshots and keybind tables
Contributor UX Small codebase, flat layout, easy to navigate
Worth using Yes, if you work in terminals

Under the Hood

gittop is built on the charmbracelet stack: bubbletea for the TUI framework, bubbles for input widgets, lipgloss for styling. The Elm-style Model/Update/View architecture is clean and consistent across all seven tabs. Each tab implements a Page interface with Init, Update, and View methods, and the main model dispatches messages to the active page. If you've built anything with bubbletea before, the code will feel immediately familiar.

The other major dependency is go-git, which gives gittop pure-Go access to the git object store. No shelling out to git log, no parsing CLI output. The repository is opened once, commits are walked once at startup, and everything else (branches, tags, file health) loads lazily when you switch to the relevant tab. That lazy-loading design keeps startup fast even on large repos.

The surprise is the filter system. gittop ships a full query language built with participle, a parser-combinator library. You can type author:"alice" and path:*.go and branch:main into the filter bar and it compiles that into an AST, evaluates it against every commit, and recomputes all the statistics in real time. Boolean operators, parenthetical grouping, negation, glob patterns on file paths. For a one-month-old side project, that's a lot of parser.

The rendering is thoughtful too. Area charts use braille characters by default, packing two data points per terminal cell with sub-cell precision. The code maps values to braille dot patterns directly: left-column pins for odd indices, right-column for even, bottom to top. Each chart row gets a gradient color from the active theme. There's a block-character fallback for terminals that don't render braille well, and the horizontal bar charts in the Activity and Contributors tabs use fractional block characters for smooth sub-character precision. You can toggle rendering modes in the options menu. The whole thing respects your terminal's color profile (ANSI256 vs truecolor) and persists your preferences to ~/.config/gittop/config.toml.

The dependency story is clean. Six direct dependencies: the three charmbracelet packages, go-git plus go-billy for filesystem abstraction, and participle for the filter parser. That's it. No framework bloat, no utility grab-bags. The go.sum is mostly transitive deps from go-git's crypto and SSH support.

The rough edge is testing. Before our contribution, the project had two test files: filter_test.go (72 lines testing the parser) and mailmap_test.go (54 lines testing .mailmap resolution). That's it. The core data pipeline in stats.go, which handles commit aggregation, time bucketing, health data computation, and date range filtering, had zero coverage. For a project built with agentic tools, this tracks: agents are good at producing working code, less good at producing tested code.

The Contribution

The obvious gap was test coverage, so that's what we went after. stats.go is 548 lines of pure data functions: CommitsToDailyStats aggregates commits into daily counts and fills date gaps, AggregateStats buckets daily data into weekly/monthly/yearly periods, bucketKey handles the calendar math for each granularity, BuildHealthData combines file line counts with commit-derived churn and author data. All pure functions, all taking structs and returning structs, all testable without touching a git repository.

We wrote 22 test cases covering seven functions. The AggregateStats tests verify that weekly bucketing groups by Monday (with Sunday correctly mapping to the previous week), monthly by the first of the month, and yearly by January 1st. The BuildHealthData tests verify both filtered and unfiltered modes, checking that churn counts, author counts, and last-changed dates are computed correctly, and that empty inputs produce the right zero values. The CommitsToDailyStats tests verify gap-filling (days with no commits still appear with count zero) and edge cases like empty input.

One thing we caught during review: CommitsToDailyStats fills from the earliest commit to time.Now(), so the output length of any test grows by one entry per day. You can't pin the exact output without injecting a clock, and refactoring the function signature felt out of scope for a tests-only PR. We noted it in a comment on the PR. The proper fix would be a small production code change, which is the kind of thing a second PR could handle if the maintainer is interested.

Getting into the codebase was fast. The flat file layout means every source file is in the root directory. There's no cmd/ or internal/ to navigate. Open stats.go, read the types, read the functions, write tests. The existing test files established a clear convention: table-driven tests with the standard testing package, no external assertion libraries. We matched that style.

PR #6 is open. Based on the maintainer's track record (all four prior issues resolved same-day, external PRs merged within hours), we expect a quick turnaround.

The Verdict

gittop is for anyone who wants to understand a git repository's history without memorizing a dozen git log format strings. If you review a lot of repos, onboard to new codebases regularly, or just like seeing your own commit patterns visualized, this does the job in a single command.

The project is a month old and moving fast. Five releases in three weeks, responsive maintainer, external contributions already landing. The agentic origin is interesting but not a limitation: the code is clean, the architecture is sound, and the filter system shows real design ambition. What it needs now is the kind of test coverage that makes future contributors confident they aren't breaking things.

If gittop hits a Homebrew core formula and a few more people write about it, this is a 1,000-star project by the end of the year. It solves a real problem, it looks good doing it, and the maintainer clearly cares.

Go Look At This

Run go install github.com/hjr265/gittop@latest, point it at your biggest repo, and flip through the tabs. The Activity heatmap alone is worth the install.

Star the repo. If you want to contribute, the codebase is small enough to read in a sitting. Here's our test coverage PR if you want to see what getting into the code looks like.

This is Review Bomb, a series where I find under-the-radar projects on GitHub, read the code, contribute something, and write it up. If you know a project that deserves more eyeballs, drop it in the comments.


This post was originally published at wshoffner.dev/blog. If you liked it, the Review Bomb series lives there too.