I Added Terminal Charts to My Dev.to CLI
说明与用途
devpub CLI 在终端中添加 Dev.to 分析图表,包括彩色渐变柱状图、火柴人图、趋势箭头和多周期拆分,无需额外依赖。
问题
Developers rely on the Dev.to browser dashboard for analytics, which interrupts workflow and requires a browser.
结果
The terminal chart displays 30‑day views with color‑gradient bars, a sparkline trend, average line, peak marker, and multi‑period breakdowns, all rendered in 0.3 s without external services.
工作流
- Install devpub v0.2.1 via pip
- Set DEVPUB_API_KEY environment variable
- Run
devpub stats --graphto view a 30‑day chart - Optionally use
-p 7d,-p 90d, etc. for different timeframes
证据
pip install devpub==0.2.1 → devpub stats --graph → color-gradient bar charts, sparklines, trend arrows, and multi-period breakdowns for your Dev.to analytics.
No browser needed. 257K total views, 24K followers, rendered in 0.3 seconds.
- 记录日期: 2026-09-02T14:27:46.663Z