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

@swairshah/pi-canvas

v0.1.0

Published

Use any Tailscale-connected phone/tablet/browser as a drawing or photo input surface for Pi.

Downloads

152

Readme

pi-canvas

Use your phone or tablet as a drawing/photo input for Pi.

Run /canvas in any Pi session, open the Pi Canvas page on your iPhone or iPad over Tailscale, draw something or pick a photo, hit send, and it shows up in your Pi conversation — image and all.

| iPhone canvas | Pi receives the drawing | |---|---| | | |

Install

pi install https://github.com/swairshah/pi-canvas

Or from a local checkout:

cd pi-canvas
pi install .

Setup

Your Mac and phone/tablet need to be on the same Tailscale network.

  1. Start a Pi session (the extension loads automatically).

  2. Run /canvas status — it prints your Canvas URL, something like:

    http://100.119.70.61:18120/
  3. Open that URL on your iPhone/iPad in Safari.

  4. Save it to your Home Screen — now you have a one-tap shortcut.

That's it. The URL stays the same across Pi sessions.

Usage

In Pi, run:

/canvas

Then open the Pi Canvas shortcut on your phone. You'll see the pending request — tap Open, draw or pick a photo, and tap send.

The drawing is delivered directly into your Pi conversation as an inline image with the local file path, so the model can see and reason about it.

Modes

/canvas                            let the device choose (draw / photo / annotate)
/canvas draw                       open a blank drawing canvas
/canvas photo                      pick or capture a photo
/canvas annotate                   pick a photo, then draw on top of it
/canvas draw sketch the layout     include a prompt shown on the device

Other commands

/canvas status     show the Home Screen URL and broker info
/canvas open       open the canvas page locally on your Mac

How it works

  • The extension starts a small HTTP server on your Mac (port 18120, bound to 0.0.0.0).
  • /canvas creates a pending request tied to your current Pi session.
  • Any device on your Tailscale network can open the page, claim the request, and submit.
  • Submitted images are saved locally under ~/.pi/agent/pi-canvas-media/.
  • The image is injected back into the requesting Pi session as a user message with both the image attachment and the file path.
  • No tokens, no cloud, no accounts. Just Tailscale.

Input modes

Draw — freehand canvas with colors (black, red, green, blue, white/eraser), brush sizes (S/M/L), undo, and clear. Works great with finger or Apple Pencil.

Photo — pick from your photo library or take a picture with the camera.

Annotate — pick a photo first, then draw annotations on top of it before submitting.

All modes include an optional note field you can type into before sending.

Config (optional)

PI_CANVAS_PORT=18120              # default port
PI_CANVAS_BIND=0.0.0.0            # default; use 127.0.0.1 for Mac-only
PI_CANVAS_TOKEN=mysecret          # optional token auth (off by default)
PI_CANVAS_PUBLIC_URL=http://...   # override the URL shown by /canvas status

License

MIT