npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

element-status

v0.0.8

Published

An electron based status bar

Readme

Element

This is a cross platform status bar built on electron.

Installation

# Install element-status
[sudo] npm i -g element-status

# Start the status bar
element

Screenshot

Configuration

~/.config/element/
├── config.yml   # Window and widget configuration
├── stylesheets/ # Custom styles using .less
└── widgets/     # Custom widgets for displaying various information

Example config.yaml

config.yml should be placed into your element configuration folder.

Stylesheets

~/.config/element/stylesheets/
├── main.less
└── widget.less

All .less stylesheets in this directory will be loaded in the status bar alphabetically. Widgets are added to the .bar div element. To get a view of the markup you can run element dev to start element with the devTools (chrome console) open.

Widgets

~/.config/element/widgets/
└── date.coffee

All widgets added to the widgets directory will be available to element. Widget files will not be executed until they are added to the elements array in config.yml

To learn how to create widgets, we'll walk through an example:

# date.coffee
# The Widget parent class is included in all widgets.
Widget = requireCoffee("#{widgets}/widget.coffee")

# require whatever modules your widget might need.
#   modules from your home directory can be required with:
#     module = require("#{@homePath}/node_modules/module")
#   modules from your `~/.config/element/` directory can be required with:
#     module = require("#{@configPath}/node_modules/module")
$ = require("jquery")
strftime = require('strftime')

module.exports =
class BarDate extends Widget

  # required
  constructor: ->
    # The string passed to super must match the name of your widget in the
    # config.yml. This will make your widget's config available in @config.
    # The window configuration from config.yml will be available in @window
    super("date")

  # This method will be called once immediately, and once after every
  # @config.refresh milliseconds
  update: =>
    super("date")
    $(".date").html @date()

  # required
  # This is the markup for your widget. The constructor will ensure that this
  # element gets appended to the .bar element
  element: =>
    """
    <div class="date" style="#{@style()}"></div>
    """

  # In this example, style is a css string that will be loaded as an inline
  # style for the .date element.
  style: =>
    """
    height: #{@window.size.height}px !important;
    line-height: #{@window.size.height}px !important;
    """

  # Method for retrieving/formatting the date.
  date: ->
    strftime(@config.format, new Date())