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

harmonograph-maker

v1.0.1

Published

Harmonograph and Lissajous figures: musical intervals drawn by pendulums, with phase, detune, damping and a rotary pendulum, a drawing animation, stereo sound, and SVG or PNG export.

Downloads

170

Readme

Harmonograph Maker

See musical intervals drawn by pendulums. Pick a ratio, from the octave (1:2) and the fifth (2:3) to the whole tone (8:9), set the phase, detune and damping, and watch the pen draw a harmonograph figure or a Lissajous curve. Listen to the two pendulums as two tones, and save the drawing as an SVG or a PNG. No sign-up and no libraries.

Harmonograph Maker

What it does

A harmonograph draws with pendulums: one swings the pen from side to side, another up and down. When their speeds are in a simple ratio, the same ratios that sound consonant in music, the drawing closes on itself in a simple, regular figure.

  • Interval: harmonograph or Lissajous, ten musical intervals (unison, octave, fifth, fourth, major and minor thirds, major and minor sixths, whole tone, twelfth), or any ratio from 1 to 12 for each pendulum.
  • Pendulums: phase, detune (a small mismatch that makes the figure turn), and for the harmonograph damping, a rotary pendulum with its speed, and the swing time. Surprise me picks random settings.
  • Watch and listen: Draw it traces the figure the way the pen would, Turn the phase animates it, and Listen plays the two pendulums as two tones, one in each ear, at the same ratio.
  • Look and save: five color schemes (ink on paper, gold, neon, spectrum, blueprint), line width, Download PNG (2400 pixels square) or Download SVG.

The equations

Lissajous: x = sin(2π a t + δ), y = sin(2π b t).

Harmonograph: x = e^(−dt) [sin(2π a t + δ) + m sin(2π r t + δ/2)], y = e^(−dt) [sin(2π b′ t) + m cos(2π r t + δ/2)], where b′ is b slightly detuned, d the damping, and m and r the size and speed of the rotary pendulum.

How it is built

The pages are plain HTML, CSS and JavaScript, with no dependencies and no build step. Just open index.html. The sound is made with the Web Audio API. It is also a small installable web app: add it to your home screen or desktop and it works offline.

  • The figures, animation, sound and export are all in js/harmonograph.js.
  • Three color themes (dark, light and blue) are shared with my other projects.
  • Your settings are kept in the browser's local storage.

Harmonograph is open source at GitHub with MIT license.

Had fun browsing the app? Buy me a coffee by becoming a sponsor.

You may also be interested in my other projects Music-of-the-Spheres (demo) and Cymatics (demo). For more mystic arts as small web apps, see Esoterica.

Copyright (c) 2026 Olivier Giulieri.