New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/slinlee/bubbletea-heatmap

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/slinlee/bubbletea-heatmap

  • v0.0.0-20230310172837-61d072c347bc
  • Source
  • Go
  • Socket score

Version published
Created
Source

Heatmap component for Bubbletea TUI Apps

Heatmap demo

This is a work in progress. I'm building it to learn how to use Charm Bubbletea and I welcome any feedback/help/tips/PR/bug reports!

The input for this component is an array of CalDataPoints which is a { Date time.Time Value float64}.

You can have multiple entries for a day and they'll be summed together. The division between dates is always calculated using the users's Local (what time.Now() returns.

Current behavior/limitations

  • Shows the previous one year from today
    • For now this means the width is fixed.
  • Auto-normalizes the data for what is displayed
  • Colors borrow the dark theme from Github's Contribution Heatmap and are fixed.
  • View only. I'd like to be able to use this to select dates and perform actions in the app.
  • Keybindings are hjkl and up/down/left/right.

FAQs

Package last updated on 10 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc