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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nfriend/wordle-solver

v1.3.0

Published

A bookmarklet and Twitter bot that automatically solves the daily Wordle puzzle (and also the Absurdal variant)

Downloads

35

Readme

Wordle (and Absurdle) Solver

npm
(scoped) Twitter
Follow

A bookmarklet and Twitter bot that automatically solves the daily Wordle puzzle.

It also solves a fun variant: Absurdle.

Wordle demo

Absurdal demo

Twitter bot

Every morning, this Twitter bot uses this script to solve the daily Wordle puzzle and posts its results.

The tweet will include a link to a screenshot of the full solution.

Source for the Twitter bot can be seen in twitter-bot/index.js. The bot is run inside a GitLab scheduled pipeline (see .gitlab-ci.yml).

Usage

In your browser of choice, create a new toolbar bookmark. Name the bookmark something like "Solve Wordle", and paste the following code into the "URL" field:

javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://unpkg.com/@nfriend/wordle-solver/build/index.js';})();

Then, navigate to Wordle or Absurdle and click your new "Solve Wordle" bookmarklet!

Releases

This script is published to NPM as @nfriend/wordle-solver and is available as a downloadable script here: https://unpkg.com/@nfriend/wordle-solver/build/index.js.

Developing

Bookmarklet

Clone this repository, and in the root directory, run:

  • yarn
  • yarn tsc --watch

build/index.js will be automatically updated every time src/index.ts is changed.

To run build/index.js, copy its contents and paste into the developer tools of a Wordle or Absurdal page.

Releasing a new version

To release a new version of the bookmarklet:

  1. Run yarn tsc to ensure build/index.js is up to date
  2. Run yarn version --[patch|minor|major]
  3. Run npm publish
  4. Run git push
  5. Run git push --tags
  6. Create a new release on GitLab using the tag created by yarn above

Twitter bot

After running the steps in the Bookmarklet section above, navigate to the twitter-bot directory and run:

  • yarn
  • yarn solve --date=2021-10-10 --headful --skip-tweet --skip-image-upload --use-local-script

See the comments in twitter-bot/index.js for an explanation of each command line parameter.

The API keys/secrets for both Twitter and Imgur are provided through environment variables.