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 🙏

© 2024 – Pkg Stats / Ryan Hefner

eloqube

v1.0.12

Published

Eloqube is a fun and interactive package that renders a rotating 3D cube in the terminal using colored ASCII characters. That's what it is. Useless? Yep. But fun I guarantee you :)

Downloads

861

Readme

Eloqube

Eloqube is a fun and interactive package that renders a rotating 3D cube in the terminal using colored ASCII characters. That's what it is. Useless? Yep. But fun I guarantee you :)

The cube responds to mouse dragging or keyboard events, allowing you to rotate, resize and apply angular velocity for continued movement. Weeeee!

Features

  • 3D ASCII Cube: Renders a cube in your terminal with vibrant colors using a custom ASCII character set.
  • Interactive Mouse Control: Drag the cube with your mouse or use the AWSD keys to rotate it in real-time.
  • Angular Velocity: Release the mouse while dragging to apply angular velocity and watch the cube spin on its own.
  • Size Adjustment: Resize the cube by pressing Q or E.
  • Configurable Settings: Easily adjust more properties such the cube's dimensions, rotation speed, FPS, and more through a configuration file.

Installation

You can actually run it directly using npx without installing it:

npx eloqube

But if you still prefer, you can install Eloqube via your preferred Node.js package manager:

# Using npm
npm install -g eloqube

# Using yarn
yarn global add eloqube

# Using pnpm
pnpm add -g eloqube

Usage

Once installed, you can start having fun with Eloqube by running the following command:

eloqube

Then just be happy and start dragging it with your mouse to interact with it. The cube will rotate based on how you drag, and it will continue spinning if you release the mouse mid-drag. You can also use the AWSD keys to rotate the cube, and the Q and E keys to resize it.

You can stop the program at any time by pressing Ctrl + C.

Configuration

Eloqube comes with a config.json file that allows you to tweak several parameters:

  • WIDTH: Width of the terminal output.
  • HEIGHT: Height of the terminal output.
  • FPS: Frames per second of the animation.
  • SIZE: Size of the cube.
  • DRAG_FACTOR: Factor that influences how much the cube rotates when dragged.
  • ANG_VEL_FACTOR: Factor that influences how much angular velocity is applied when dragging is released.
  • DAMPING: Damping applied to angular velocity after release.
  • INCREMENT_SPEED: Precision of the cube's surface rendering.
  • BACKGROUND_CHAR: ASCII character for empty spaces.
  • CHARS: ASCII characters used for the cube's shading.
  • COLORS: Colors for each cube face (front, right, left, back, top, bottom).

License

This project is licensed under the MIT License. See the LICENSE file for more details.