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

@dornick/extension

v0.1.0

Published

Reference Manifest V3 browser-extension scaffold for Dornick — inject the in-page agent SDK into allow-listed SaaS origins.

Readme

@dornick/extension

Reference Manifest V3 browser-extension scaffold for Dornick.

A drop-in WebExtension that injects Dornick into allow-listed origins. Per-origin agent configs, BYO API key, same-origin to whatever the user is authenticated to. Architecturally what makes Dornick-as-extension viable — the runtime is unchanged; the extension is just the carrier.

This package is not a runtime dependency — it's a fork point. Copy the directory, drop in your icons, decide on your distribution channel, ship.

Files

@dornick/extension/
├── manifest.json     — Manifest V3 declaration
├── background.js     — service worker; initialises storage defaults
├── content.js        — injects [data-dornick] on allow-listed pages
├── options.html      — settings UI (key, allow-list)
├── options.js        — settings logic
├── options.css       — styling
└── icons/            — REPLACE ME with your branding

You must also drop dornick.js into the directory before zipping:

# from the monorepo root
cp packages/script/dist/dornick.js packages/extension/dornick.js

Or fetch the latest published bundle:

curl -L https://unpkg.com/@dornick/script/dist/dornick.js -o packages/extension/dornick.js

Build

npm run package --workspace=@dornick/extension
# → packages/extension/dist/dornick-extension.zip

Load unpacked in Chrome (chrome://extensions → Developer mode → Load unpacked) pointing at packages/extension/ or the unzipped dist/.

Configuring an origin

After installing, open the extension options. Add an entry:

| Origin | Config URL | |---|---| | https://app.salesforce.com | https://yourcorp.com/dornick/salesforce.json | | https://linear.app | https://yourcorp.com/dornick/linear.json |

The config URL points to a Dornick DornickConfigurationWithHooks JSON. The content script injects [data-dornick] with these attributes, and Dornick's auto-init does the rest.

Allow-listing model

Defaults to empty — Dornick does not activate on any page until the user explicitly adds an entry. That's intentional: the extension model is consent-based.

The MV3 optional_host_permissions: ["<all_urls>"] lets the content script run on allow-listed pages without requiring up-front blanket grants. (Chrome currently still runs content scripts on <all_urls> declared in content_scripts.matches — this is a known platform limitation; the option-page allow-list is enforced in content.js and is the real gate.)

Production checklist

  • [ ] Replace icons/*.png with your branding.
  • [ ] Set a real extension name, description, and version in manifest.json.
  • [ ] Decide BYOK vs proxy: for team deployments, swap apiKey for a proxyUrl + auth token pattern in content.js.
  • [ ] Encrypt apiKey in chrome.storage.local with a derived key from a user passphrase if you don't trust the device.
  • [ ] Add per-origin "what does Dornick see here?" first-run modal — sets a clear consent expectation.
  • [ ] Provide a kill-switch (a stored boolean) the user can flip without uninstalling.
  • [ ] Test on the actual SaaS origins before shipping; some apps' CSPs or frame-ancestors may block Shadow-DOM overlays. Document any incompatibilities.
  • [ ] Audit manifest.json permissions — keep them as narrow as your real use case requires.

See also

License

MIT — © Dipankar Sarkar