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

@sctlib/piano

v0.0.3

Published

a web component for displaying a piano keys layout, and optional interactivity

Downloads

7

Readme

  • piano Documents of introduction to self teaching piano with repetitive exercises.

  • notes Ressources to find information on the content of this app.

  • https://en.wikipedia.org/wiki/Musical_note
  • https://en.wikipedia.org/wiki/Musical_keyboard
  • Development

To develop locally on the project:

  1. if you don't have already, install [[https://www.gnu.org/software/emacs/][emacs]] and [[https://www.gnu.org/software/make/][make]] (see if =make -h= outputs)
  2. clone this repository
  3. open 2 shells: =make watch= (to watch for changes, rebuild, and serve the result locally)

To build a =public= folder ready for production deployment

  1. =make build= will output a =./public= folder
  2. see the =./gitlab-ci.yml='s =pages= scrip for deployment steps

Additionnaly, the is a =package.json= file, and scripts, which command the =makefile= targets (scripts). They are the same and are here for convenience since we are deploying the javascript as a npm module

  • tests

The testing library [[https://github.com/avajs/ava][ava]] is used, on the =tests/**/*= directories, defined in the =package.json.ava= key.

  • =npm install=

  • =npm run test=

  • See: https://github.com/avajs/ava/blob/main/docs/01-writing-tests.md

** Project folder/file structure:

  • =/readme.org= (this document); as in every projects, a place of introduction, to learn what this project is about, how it works, how to contribute etc.
  • =/index.org=, a text file with all the introduction of the project, and the table of content.
  • =/content/*=, all text content, pages and examples for this project
  • =/.gitlab-ci.yml=, a config file, used to define what commands should be called to make a website from this project's content
  • =/emacs.el=, the config file for [[https://gitlab.com/sctlib/emacs-ssg][emacs-ssg]], the static-site-generator used to make a website out of this project's content
  • =/styles.css= a config file to style the generated website
  • =/.gitignore=, a file to specify which folder/files should never appear in this project (used automatically by git)

** Tips for when using this project in =emacs=

This project can also be openned with [[https://www.gnu.org/software/emacs/][emacs]]. When the file =index.org= is oppenned, it gives access to the following shortcuts.

  • select export format =C-c C-e= (txt, html etc.)
  • export to =.txt=: =C-c C-e t A=
  • export to =.pdf=: Firefox's "print" page feature ("save file to pdf")
  • Licenses

** dependencies

Inside the =libs= folder

  • https://github.com/keithwhor/audiosynth/blob/master/audiosynth.js
  • https://github.com/keithwhor/audiosynth

** codes

The rest of the code and content are GPLv3.

  • FAQ

Some questions answered.

** computer keyboard not handling many simultaneous keys/notes

Keyboard jamming/ghosting is a limitiation of some physical computer keyboards, that limit [[https://en.wikipedia.org/wiki/Key_rollover][key rollover]], when multiple keys are pressed at the same time; double test your computer's keyboard(s) with the [[https://www.microsoft.com/applied-sciences/projects/anti-ghosting-demo][microsoft anti-ghosting-demo]] project.