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

@parenta/dom-picker

v1.2.0

Published

Hover-to-pick DOM element data-id / CSS selector copier. Auto-installs on import. Press F9 to toggle the on-screen panel; hold Shift to copy data-id, Ctrl to copy a precise selector, click while holding to copy. The extended selector anchors on the neares

Readme

@parenta/dom-picker

Hover-to-pick DOM element data-id / CSS selector copier.

Importing the package installs a global keyboard-driven picker on the page. There is no configuration: import it and it runs.

Install

npm install @parenta/dom-picker

Use (npm-built apps — Angular, React, etc.)

import '@parenta/dom-picker';

That's it. The package auto-installs on import and is idempotent — re-importing is safe.

If you want to gate activation by environment (e.g. only load on *.parenta-agents.co.uk), do the gating at the consumer:

const host = window.location.hostname;
if (host === 'localhost' || host.endsWith('.parenta-agents.co.uk')) {
  await import('@parenta/dom-picker');
}

Use (vanilla <script> — legacy sites)

The package ships a self-installing IIFE bundle at dist/index.iife.js. Drop it into your static assets and load it like any other script:

<script src="/scripts/@parenta/dom-picker.js?v=1.1.0"></script>

The IIFE bundle auto-installs the same way the npm entrypoint does.

Keys

| Key | Effect | |---|---| | F9 | Toggle the picker panel (top-right). | | Shift (hold) | Highlight nearest ancestor with a data-id. | | Shift + click | Copy the data-id selector and prevent the click. | | Ctrl (hold) | Highlight + show an extended CSS path ([data-id='X'] > div > span). | | Ctrl + click | Copy the extended selector and prevent the click. |

The extended selector anchors on the nearest ancestor with a data-id or an id (data-id preferred) and builds the path down from there — e.g. #ctl00_Grid > tbody > tr > td > input:nth-child(4) or [data-id='invoice-row-42'] > td > span:nth-child(2). Only when no ancestor has a data-id or id does it fall back to a full body > … > leaf path built from tag + class + :nth-child segments.

Panel options

| Option | Effect | |---|---| | Include page URL in copied text | When ticked, every copy is a labelled two-line block:Page URL: <url>Element selector: <selector>The setting is remembered across reloads via localStorage (parenta-dom-picker-include-url). |

Build

npm install
npm run build

Produces:

| File | Format | |---|---| | dist/index.cjs.js | CommonJS (Node require) | | dist/index.esm.js | ESM (browser / modern bundlers) | | dist/index.iife.js | Self-executing IIFE (<script> tag) — minified | | dist/index.d.ts | TypeScript types |

Versioning

This package follows semver. Bump the version in package.json, tag the release as dom-picker-v<version> from the MegaProj root, and the publish workflow runs.

License

MIT.