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

@tobidemski/circlejs

v0.1.3

Published

circle.js is a dependency-free JavaScript ES6 circle graph-like component.

Readme

circle.js

circle.js is a dependency-free JavaScript ES6 circle component. All items are aligned in a circle and can be rotated and resized. Optionally you can add a connection line to connect each item. A perfect module to highlight your key features.

Getting started

Pull-in a latest version with NPM ...

npm install @tobidemski/circlejs

... provide <link> to the required core stylesheet.

<!-- Required Core stylesheet -->
<link rel="stylesheet" href="node_modules/@tobidemski/circlejs/dist/css/circlejs.core.min.css">

... then, prepare a little bit of necessary markup ...

<div class="circle example-circle">
    <div class="circle__items">
        <div class="circle__item circle__item--center">
            Item 1
        </div>
        <div class="circle__item circle__item--center">
            Item 2
        </div>
        <div class="circle__item circle__item--center">
            Item 3
        </div>
    </div>
    <!-- Optionally if you want to connect each circle item with a line -->
    <div class="circle__connections"></div>
    <!-- Optionally if you want to have a circle background in the size of the diameter -->
    <div class="circle__background"></div>
</div>

... and finally, initialize circlejs.

import circle from '@tobidemski/circlejs'

new circle('.example-circle');

Advanced

import circle from '@tobidemski/circlejs'

let options = {
  startAngle: 'top',
  clockwise: false,
  center: 'full-center',
  enableRotation: true
}

let circle = new circle('.example-circle', options);

/**
 * Event which gets triggered if a new item is added.
 * @param {any} data
 * data.item: new added item
 * data.length: total items count
 */
circle.on('item.added', function (data) {
  data.item.textContent = `Item ${data.length}`;
});
        
circle.add(); // Adds a new circle item

See more in Wiki

Result

3 Items with connections

3 items result

4 Items with connections

4 items result

5 Items with connections

5 items result

Contributing

Feel free to contribute to this module.

Browser Support

  • Chrome
  • Edge
  • Firefox

Building

Build using NPM scripts. The following scripts are available:

  • build:css - Outputs CSS files from SASS files.
  • build:js - Outputs all destination variants of the script.
  • build - Comprehensively builds the entire library.
  • run:examples-server - Starts a simple node.js express server to see some examples.

Todos

  • Bug: Changing the direction while rotating loses the current position and jumps to the new calculated position
  • Bug: Changing the speed of rotation while rotating loses the current position and jumps to the new calculated position

Credits

License

Copyright (c) 2022-present, Tobi Demski. Licensed under the terms of the MIT License.