Skip to content
rohitgupta.xyz

Projects

Open-source tools and interactive experiments I’ve built over the years.

Open source05

  • Go asciigraph ↗ A Go package to create lightweight ASCII line graphs in command-line apps, with no external dependencies. Example 1 ↗Example 2 ↗ ★ 3.1k

    Every earthquake on Earth in the last 24 hours, live from the US Geological Survey and drawn the way asciigraph draws.

    Draw it in your terminal
    install
    go install github.com/guptarohit/asciigraph/cmd/asciigraph@latest
    run
    curl -s https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson |
      jq '(now * 1000) as $t
        | reduce (.features[].properties | select(.type == "earthquake" and .mag)) as $q
            ([range(72) | 2]; (($q.time - $t) / 864e5 * 72 + 72 | floor) as $i
              | if $i >= 0 and $i < 72 then .[$i] = ([.[$i], $q.mag] | max) else . end)
        | .[]' |
      asciigraph -h 10 -lb 2 -ub 7 -p 1 -xmin -24 -xmax 0 -c "Earthquakes in the last 24 hours (0 is now)"

    No Go? Take a binary from the releases page instead. The run needs curl and jq too.

  • Python cryptoCMD ↗ A Python library to fetch historical cryptocurrency price data from CoinMarketCap. ★ 611
  • Rust mfp ↗ A Rust CLI tool for playing music mixes from musicforprogramming.net, designed for programming and focus. ★ 63
  • Python freshpaper ↗ A Python utility that sets your desktop wallpaper to the daily image from various sources. PyPI ↗ ★ 44
  • macOS dotfiles ↗ My personal dotfiles for macOS, featuring configurations for iterm2, git, vim, zsh, and stow. ★ 10

Interactive guides06

esc
↑ ↓ to move↵ to openesc to close