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

@mjoellnier/dot-menu

v1.3.1

Published

A ReactJS UI framework to generate a dotted menu on the side

Readme

Dot-menu

This is a ReactJS plugin to create a Dot-menu for your pages. It is highly customizable and tries to expose as many options as possible.

It is still under construction (besides the fact that this is my very first npm plugin). So PRs and feedback are highly welcomed!

What is this all about?

Dot Menu example gif

This plugin creates the menu on the left side (optionally also on the right side). The pages content you create will be window filling (100vw width and 100vh heigth).

Installation

npm install @mjoellnier/dot-menu --save

Example Usage

import DotMenu, { DotMenuPage } from "@mjoellnier/dot-menu";
import React from "react";
import testImage from "./testImage.jpg";

const App = () => {
  return (
    <DotMenu>
      <DotMenuPage backgroundColor={"RANDOM"} title={"Page 1"}>
        Hello 1
      </DotMenuPage>
      <DotMenuPage backgroundColor={"RANDOM"} title={"Page 2"}>
        Hello 2
      </DotMenuPage>
      <DotMenuPage backgroundColor={"RANDOM"} title={"Page 3"}>
        Hello 3
      </DotMenuPage>
      <DotMenuPage backgroundImage={testImage} title={"Page 4"}>
        Hello 4
      </DotMenuPage>
    </DotMenu>
  );
};

export default App;

Properties

DotMenu properties

| Name | Values | Default | Description | | ---------------------- | ----------- | -------- | --------------------------------------------------------------------------------- | | dotFilling | string | darkgray | Determines the color of the nav dots filling. Give it a normal HEX/color string | | dotBorder | string | gray | Determines the color of the nav dots border. Give it a normal HEX/color string | | hideDots | true|false | false | Determines if the nav dots are hidden | | hidePath | true|false | false | Determines if the progress path is hidden | | pathColor | string | black | Determines the color of the propress path. Give it a normal HEX/color string | | pathWidth | string | "2" | Determines the width of the progress path. Give it an integer wrapped as string | | right | true|false | false | Determines if the menu is rendered on the right or left | | showMenuOnSmallScreens | true|false | false | Determines if the menu is shown on small displays | | windowScrolling | true|false | false | Determines if the DotMenuPage elements are scrolled as a hole |

DotMenuPage properties

| Name | Values | Default | Description | | --------------- | ------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | backgroundColor | string | "RANDOM" | none | The page background color. Give it a normal HEX/color string or the string RANDOM when you love surprises! | | backgroundImage | string | "RANDOM" | none | The background image for the page. It is rendered fullscreen and resizes with the window/screen size. Use RANDOM to get a surprise image from Unsplash. Check the code example above to see how to add a local image. | | style | Object | none | A styling object that is handed through to the page element. With it you can override every styling item! | | title | string | none | The title to be rendered in the mouse over box |

Changelog

| Version | Changes | | ------- | --------------------------------------------------------------- | | 1.0.0 | Initial Release | | 1.0.1 | Adding smooth scrolling to page on nav dot click | | 1.1.0 | Adding DotMenuPage element scrolling and more properties | | 1.2.0 | Adding background image and styling feature to pages | | 1.2.1 | Code cleaning and smaller fixes | | 1.3.0 | Dot Menu is hidden on small screens (can be shown via property) |

Todo

  • Write tests!
  • Improve performance for scrolling!
  • ~~Hide menu dots (smoothly) on mobile~~
  • ~~Implement scrolling when pressing on a nav dot~~
  • Experiment with mobile
  • Publish example project