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

polyphony-ecs

v0.0.1

Published

Testing polyphony as a package

Readme

Polyphony ECS toolkit

Polyphony is an experimental toolkit demonstrating the use of Entity-Component-System (ECS) to design Graphical User Interfaces (GUI). It also extends the original ECS model to support advanced interfaces.

Installation

git clone https://gitlab.inria.fr/Loki/PolyphonyECS.git
cd PolyphonyECS

Native dependencies

Polyphony requires Node.js (we recommend LTS, packages break sometimes with latest version).

For macos, the script setup_mac.sh takes care of installing Node via Homebrew.

For Linux distributions, we recommend installing those dependencies using the package manager from your distribution.

Javascript dependencies

npm install

Running the demo

npm start

And access localhost:3000 in your browser.

ECS extensions

  • Systems are entities → we can model their dependencies and ordering with components
  • Devices are also entities → it makes it easy to access their data, and allows the support for multiple devices (mice, keyboards, ...)
  • Events are signaled using temporary components (deleted at the end of the systems chain) → systems can react to events without callbacks and observer patterns

Painter functionalities

  • Create Shapes by selecting your shape with one of the shape button, and drawing the shape through a drag and drop
  • Move and select shapes by selecting the cursor
  • Write text in a shape by double clicking one shape and typing your text
  • Resize a selected shape through the circular menu
  • Re-shape an entity by draging the shape on another shape's button
  • Delete a selected shape
  • Save your result or Reset your canvas
  • Works with SVG and Canvas, access Canvas rendering using the button

Demos

Painter: starting page for a painter written in PolyphonyECS SandBox: SandBox to test writing code with Polyphony enabled

SandBox

If any changes are made to the editor.js script, it needs to be re-compiled using the following command (to enable the codemirror editor):

node_modules/.bin/rollup src/js/editor.js -f es -o bin/editor.bundle.js -p @rollup/plugin-node-resolve --config