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

yubisashi-rails

v0.3.1

Published

Visual annotation tool for Rails views - generate structured Markdown for AI coding agents

Readme

yubisashi-rails

A visual UI annotation tool for Rails views. Click elements on the page to record feedback, then copy structured Markdown / JSON output for AI coding agents.

Leverages annotate_rendered_view_with_filenames HTML comments to automatically identify template files.

Note: This is a development tool that exposes template file paths. Do not load it in production environments.

Usage

In config/environments/development.rb:

config.action_view.annotate_rendered_view_with_filenames = true

In app/views/layouts/application.html.erb:

<!DOCTYPE html>
<html>
<head>
<!-- ... -->
</head>
<body>

<%= yield %>

<% if Rails.env.development? %>
  <script type="module" src="https://cdn.jsdelivr.net/npm/yubisashi-rails@latest/dist/yubisashi-rails.mjs"></script>
  <yubisashi-rails root="<%= Rails.root %>" combo-key="command-shift-a"></yubisashi-rails>
<% end %>
</body>
</html>

Features

  • Click any element to identify its template file and copy the path to clipboard
  • Add comments via popover to describe what should be changed
  • Capture selected text context
  • Number badges to visualize annotated elements
  • Side panel to list, edit, and delete annotations
  • Copy all annotations as Markdown or JSON
  • Dark mode support

Attributes

| Attribute | Default | Description | |-----------|---------|-------------| | root | / | Rails.root path | | combo-key | command-shift-a | Keyboard shortcut to toggle | | position | bottom-right | Toolbar position (bottom-right / bottom-left) | | format | markdown | Output format (markdown / json) | | theme | auto | Theme (auto / light / dark) |

combo-key accepts any combination of modifiers control, shift, alt, meta, command followed by a key, separated by - (e.g. control-shift-i, meta-shift-a).

Output Example

Markdown

# UI Annotations

> Page: http://localhost:3000/users
> Timestamp: 2025-01-01T00:00:00.000Z

## #1 Change heading color to blue

- **File**: `app/views/users/index.html.erb`
- **Selector**: `h1`
- **Text**: "Users"
- **Bounding box**: x=20, y=80, w=760, h=32

JSON

{
  "page": "http://localhost:3000/users",
  "timestamp": "2025-01-01T00:00:00.000Z",
  "annotations": [
    {
      "id": 1,
      "comment": "Change heading color to blue",
      "element": {
        "tagName": "h1",
        "selector": "h1",
        "classes": [],
        "text": "Users",
        "boundingBox": { "x": 20, "y": 80, "width": 760, "height": 32 },
        "dataAttributes": {}
      },
      "source": {
        "file": "app/views/users/index.html.erb"
      }
    }
  ]
}

Development

pnpm install
pnpm dev          # dev server
pnpm test         # run tests
pnpm build        # build for production

License

MIT