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

idref

v0.0.5

Published

Add id ref linkage in html files for vscode

Downloads

89

Readme

HTML IDREF Attribute Link

Navigate seamlessly from HTML attributes like for attributes to their target elements with Go to Definition support.

Features

This extension adds "Go to Definition" functionality for HTML for attributes, allowing you to quickly jump from a <label> element's for attribute to the corresponding input element with a matching id.

The extension also supports multiple IDs in a single attribute (space-separated), making it easy to navigate when an element references multiple target elements.

Navigate with Ctrl+Click

Simply Ctrl+Click (or Cmd+Click on Mac) on any value in a for attribute to jump directly to the element with that id. Works with single or multiple space-separated IDs.

Before:

<label for="email">Email Address</label>

<!-- Somewhere else in your file... -->
<input id="email" type="email">

With this extension: Click on "email" in the for attribute and instantly jump to the <input id="email"> element!

Supported Languages

  • HTML (.html, .htm)
  • Vue (.vue)
  • Svelte (.svelte)

Usage

  1. Open any HTML file in VSCode
  2. Find a <label> element with a for attribute
  3. Ctrl+Click (Windows/Linux) or Cmd+Click (Mac) on the attribute value
  4. You'll jump directly to the element with the matching id

Example

<form>
    <label for="username">Username</label>
    <input id="username" type="text">
    
    <label for="password">Password</label>
    <input id="password" type="password">
</form>

Click on username or password in the for attributes to navigate to their corresponding inputs.

Multiple IDs in a Single Attribute

Attributes can also reference multiple space-separated IDs:

<output for="input1 input2">Total</output>

<input id="input1" type="number" value="10">
<input id="input2" type="number" value="20">

Click on any ID in the for attribute (e.g., input1 or input2) to jump to that specific element.

Requirements

  • Visual Studio Code version 1.60.0 or higher

Extension Settings

This extension works out of the box with no configuration required.

Current attributes supported: HTML standard attributes: for, list, usemap, form, contextmenu, popovertarget; ARIA attributes: aria-labelledby, aria-describedby, aria-controls, aria-owns, aria-flowto; Custom attributes: em-bower, be-decked-with, 😶‍🌫️, be-inclusive, 🥰, be-imbued, 🧧.

To add your additional custom attributes:

Open VS Code settings (Ctrl+,) Search for "idref" Click on the Add Item button.

Known Issues

  • Currently only supports navigation within the same file
  • Requires exact id match (case-sensitive)

Release Notes

0.0.1

Initial release:

  • Go to Definition support for HTML for, em-bower and be-decked-with attributes
  • Support for HTML, Vue, and Svelte files
  • Works with quoted and unquoted attribute values
  • Support for multiple space-separated IDs in a single attribute

Contributing

Found a bug or have a feature request? Please open an issue on our GitHub repository.

License

MIT


Enjoy faster HTML navigation!