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

canvas-edit-tools

v1.1.10

Published

tools to create elements for a canvas

Readme

canvas-edit-package

Have you ever wanted to create a stunning canvas in HTML but found it difficult to add the right tools and features? Look no further, this package includes a range of useful features to help you build beautiful and functional canvases. From a context menu and footer to an editor and carousel, this package has everything you need to create engaging and interactive canvases that will impress your users. In this article, I'll introduce you to the key features of my package and show you how to use them to create stunning canvases. It's the perfect tool for building impressive and user-friendly canvases.

Video

Click the image to watch the video to view all features!

Screenshot 2023-04-27 at 20 25 33

Setup

In terminal

npm i canvas-edit-tools

Tools

There are 4 different elements you can import:

1: a canvas

<canvas height="790" id="myCanvas" width="1050"></canvas>

2: a editor

<div class="editor" id="editor"></div>

3: a toolbar/footer

<footer>
   <div class="toolbar">
       <button id="undoBtn">Undo</button>
       <button id="forwardBtn">Forward</button>
       <button id="saveBtn">Save</button>
       <button id="resetButton">Reset</button>
       <span id="display">Display:</span>
       <button id="html">HTML</button>
   </div>
</footer>

4: context menu

<div id="contextMenu"></div>

imports

import this:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./node_modules/canvas-edit-tools/dist/canvas-edit-tools.js"></script>
</head> 

on bottom:

</body>

    <script>
        CanvasEditTools.initialize();
      </script>
</html>c="./node_modules/canvas-edit-tools/dist/canvas-edit-tools.js"></script>
</head>

DEMO: full code


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../node_modules/canvas-edit-tools/dist/canvas-edit-tools.js"></script>
</head>
<body>

    <div id="contextMenu"></div>

<div class="container">
    <div class="left-side">
        <div class="editor" id="editor"></div>
    </div>


    <div class="right-side">
        <canvas height="790" id="myCanvas" width="1050"></canvas>
    </div>

</div>

<footer>
    <div class="toolbar">
        <button id="undoBtn">Undo</button>
        <button id="forwardBtn">Forward</button>
        <button id="saveBtn">Save</button>
        <button id="resetButton">Reset</button>
        <span id="display">Display:</span>
        <button id="html">HTML</button>
    </div>
</footer>

</body>
    <script>
        CanvasEditTools.initialize();
      </script>
</html>

https://github.com/patronasxdxd/NPM_Package_Canvas/