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

jeannie

v0.2.3

Published

your wish is the command

Downloads

7

Readme

jeannie 🧞‍♀️

There's an old story among programmers about Donald Knuth and Doug McIlroy. It centers on the following text-processing problem:

Read a file of text, determine the n most frequently used words, and print out a sorted list of those words along with their frequencies.

In the end, both men come up with a solution. But while Knuth's program is long and formal, McIlroy's is a six-command shell pipeline.

Now, with jeannie, I present the one-command shell pipeline that solves the same problem. Now, the problem statement is the solution.

$ cat if.txt | genie "determine the 5 most frequently used words, and print out a sorted list of those words along with their frequencies"
  16 and
  14 you
  13 if
  12 can
  10 your

But jeannie is good at all kinds of things, including many that you couldn't normally do from the command-line. Here's another example:

$ cat README.md | genie "summarize how to run the backend"
To run the backend, ensure that the Postgres docker container is running, then
run the following commands from the backend directory: `pip install -r
requirements.txt` and `uvicorn app.main:app --reload`.

How It Works

Under the hood, jeannie is two tools in one. First, GPT-3 is used to sort the given command into one of two buckets: tasks involving soft skills are completed by GPT-3 with the result being streamed right to your terminal, whereas tasks that demand greater precision are delegated to bash--with GPT-3 being used to generate the bash code. The triage prompt is in a file called assign.sh.

Installation

Try it for yourself—it's surprising what it can do.

$ npm install -g jeannie

Since this is all powered by GPT-3 behind the scenes, you'll need to put your API key in your env to get it running.

$ export OPENAI_API_KEY=XYZ
$ ls -la | genie "list the largest file"