I Added Terminal Charts to My Dev.to CLI. Here’s What My Data Looks Like.
说明与用途
在 devpub CLI v0.2.1 中添加了终端图表:彩色渐变柱状图、火柴图、趋势箭头和多周期拆分,全部在终端渲染,无需额外依赖。
问题
Developers want quick, visual insights into their Dev.to analytics without leaving the terminal, but the browser dashboard is slow and interrupts workflow.
结果
The new graph feature delivers instant, color‑coded visual analytics in the terminal, enabling developers to monitor traffic trends, recoveries, and averages without leaving their workflow.
工作流
- Install devpub v0.2.1 via pip
- Set DEVPUB_API_KEY environment variable
- Run
devpub stats --graphto view the default 30‑day chart - Use
-pflag to change period (e.g.,-p 7d,-p 90d) - Interpret color‑gradient bars, average line, trend arrow, and period sparklines directly in the terminal
证据
Zero new dependencies. Works in 0.3 seconds.
Color gradient bars fade blue (low) → cyan → green → gold (peak).
- 记录日期: 2026-09-12T03:01:40.286Z