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

rm_atmo

v1.0.10

Published

background atmosphere interaction

Downloads

17

Readme

rm_atmo

npm version

This is a js-canvas driven atmospheric visualization with interaction.

rm_atmo teaser

Demo page

https://renmuell.github.io/rm_atmo/

Features:

  • background-color reflects daytime, in four stages which blend into one another. (morning, day, afternoon, night)
  • user-interaction: creates a music note on touch.
    • volume is depended on y-position (top:low to bottom:loud)
    • pitch on x-position (left:low to right:high)
    • notes: 11-notes from g-major-scale start form G4
  • a background song can be looped
  • background-animation: circle outlines appear and hide in random places and sizes. They blink and fill in random speeds.
  • with the use of the cEngine-Framework, the framerate is locked at 10FPS for performance reason. Also, the canvas is run at a lower resolution and scaled up. The canvas will fill any given root element from edges to edges. See more about these features here: https://github.com/renmuell/cEngine

Getting started

Choose and copy one build script from /dist/ folder:

  • rm_atmo.js
  • rm_atmo.min.js

Include on your website:

<script src=".../dist/rm_atmo.min.js"></script>

Simple usage

This will attach everything to the Body and run.

rM_AtMo.create();

Advanced usage

If you want to control the root element or loop an backgroung song, the create-method also accepts options:

<div class="background"></div>
var rm = rM_AtMo.create({
    domElement: document.getElementsByClassName("background")[0],
    songSrc: 'www.some.url.com/path/to/song.mp3'
});

Methods of global rM_AtMo-object

Attach and create new rM_AtMo instance.

create(options)

Arguments:

  • options - configuration objects has:
    • domElement - root element
    • songSrc - song url

Return:

new rm_AtMo instance

Example:

var rm = rM_AtMo.create({
    domElement: document.getElementsByClassName("background")[0]
});

Methods of created rA_AtMo-instance:

onTab(callback)

Attach eventhandler for user touch event. The eventhandler will get the position of in percentage to the root element (x and y).

Arguments:

  • callback - a callback function which will fire on user touch

Returns:

nothing

Exampel:

var rm = rM_AtMo.create();

rm.onTap(function (data) {
  console.log('Position X Percent:', data.x);
  console.log('Position Y Percent:', data.y);
});

Development

Dependencies

Set up

$ npm install

Build

This will:

  • create the final script rm_atmo.js to /dist/ folder
  • minify script rm_atmo.min.js to /dist/ folder
  • update demo with new script in /docs/js/ folder
$ npm run build