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

wordle-bookmarklet

v0.0.1

Published

Bookmarklet to show spoiler-avoiding Wordle tiles.

Readme

wordle-bookmarklet

Bookmarklet to show spoiler-avoiding Wordle tiles, style first seen on Tom Francis' Twitter.

Instead of this:

Wordle 219 6/6*
⬜⬜⬜⬜⬜
⬜⬜🟨⬜⬜
⬜🟨⬜🟩⬜
🟨🟨⬜⬜⬜
🟩⬜⬜⬜⬜
🟩🟩🟩🟩🟩

You can use this bookmarklet to generate this:

Wordle 219 6/6*
⬛⬛⬛⬛⬛
⬛⬛2️⃣⬛⬛
⬛3️⃣⬛🟩⬛
4️⃣3️⃣⬛⬛⬛
🟩⬛⬛⬛⬛
🟩🟩🟩🟩🟩

Explanation: the 2️⃣ on the second line lets people know that the third letter of your second guess was the second letter of the solution.

How to Use

Copy the minified code below, then add a bookmark to your browser and paste it in as the URL.

javascript:function betterTiles(){let e=[];window.document.querySelector("game-app").shadowRoot.querySelectorAll("game-row").forEach((t=>e.push(t.attributes.letters.textContent))),e=e.filter(Boolean);const t=()=>window.document.querySelector("game-app").shadowRoot.querySelector("game-page").querySelector("game-settings");t()||window.document.querySelector("game-app").shadowRoot.querySelector("#settings-button").click();const o=t().shadowRoot.querySelector("#puzzle-number").textContent.replace("#",""),r=t().shadowRoot.querySelector("game-switch#hard-mode").attributes.hasOwnProperty("checked"),n=["1️⃣","2️⃣","3️⃣","4️⃣","5️⃣"],a=e.pop().split(""),c=e.reverse().map((e=>{const t=[...a],o=e.split("");return o.forEach(((e,r)=>{r===a.indexOf(e)&&(t[r]=0,o[r]="🟩")})),o.forEach(((e,r)=>{if(0===t[r])return;const a=t.indexOf(e);o[r]=a>=0?n[a]:"⬛"})),o.join("")})).reverse().join("\n")+"\n"+a.map((()=>"🟩")).join(""),l=`Wordle ${o} ${e.length+1}/6${r?"*":""}\n`+c;console.log(l),(e=>{if(navigator.clipboard&&window.isSecureContext)return navigator.clipboard.writeText(e);{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.appendChild(t),t.focus(),t.select(),new Promise(((e,o)=>{document.execCommand("copy")?e():o(),t.remove()}))}})(l)}betterTiles();

Once you've solved the Wordle puzzle, click on the bookmark and it'll copy the spoiler-avoiding version to your clipboard.

This version uses a white square instead of a black square, if you like it the original color better:

javascript:function betterTiles(){let e=[];window.document.querySelector("game-app").shadowRoot.querySelectorAll("game-row").forEach((t=>e.push(t.attributes.letters.textContent))),e=e.filter(Boolean);const t=()=>window.document.querySelector("game-app").shadowRoot.querySelector("game-page").querySelector("game-settings");t()||window.document.querySelector("game-app").shadowRoot.querySelector("#settings-button").click();const o=t().shadowRoot.querySelector("#puzzle-number").textContent.replace("#",""),r=t().shadowRoot.querySelector("game-switch#hard-mode").attributes.hasOwnProperty("checked"),n=["1️⃣","2️⃣","3️⃣","4️⃣","5️⃣"],a=e.pop().split(""),c=e.reverse().map((e=>{const t=[...a],o=e.split("");return o.forEach(((e,r)=>{r===a.indexOf(e)&&(t[r]=0,o[r]="🟩")})),o.forEach(((e,r)=>{if(0===t[r])return;const a=t.indexOf(e);o[r]=a>=0?n[a]:"⬜"})),o.join("")})).reverse().join("\n")+"\n"+a.map((()=>"🟩")).join(""),l=`Wordle ${o} ${e.length+1}/6${r?"*":""}\n`+c;console.log(l),(e=>{if(navigator.clipboard&&window.isSecureContext)return navigator.clipboard.writeText(e);{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.appendChild(t),t.focus(),t.select(),new Promise(((e,o)=>{document.execCommand("copy")?e():o(),t.remove()}))}})(l)}betterTiles();

Build

If you want to build from scratch, simply run npm run build and then take the output and add javascript: to the start. (That'll be the complete code.)

(I just make the white-square version manually, at the moment.)

License

Published and released under the Very Open License.