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

prompt-clarify

v0.1.2

Published

Prompting tool with memory. Ask once, remember forever.

Readme

prompt-clarify

Ask once. Remember forever.

Most prompt tools either guess what you meant, or interrogate you every single time. This one asks you five questions on the first run, then never asks again — it fills the gaps from what it already knows about you.

npx prompt-clarify "write a blog post about AI"

What it actually does

Before

write a blog post about AI

After

Write a short, direct blog post about artificial intelligence aimed at a
business's social media audience. Keep the length to roughly 400–500 words,
using short paragraphs, clear headings, and a straightforward, accessible tone.

It knew the audience, length, structure and tone because you told it once, during setup. It did not ask you anything.

It also knows when to leave you alone

$ prompt-clarify "Write a 200-word product description for a stainless steel
  water bottle, aimed at gym-goers, in a friendly tone, with three bullet
  points on features."

  ALREADY GOOD

  Your prompt already says what it needs to.
  Nothing worth changing. Send it as it is.

A tool that rewrites every prompt isn't judging — it's just generating. Restraint is the point.


Install

npm install -g prompt-clarify

Or run it without installing:

npx prompt-clarify "your prompt"

Setup

Just run it. On first use it walks you through everything:

prompt-clarify setup

It asks for a Google Gemini API key, then five questions about you. Both are saved to ~/.prompt-clarify/, so it works from any folder afterwards.

Getting a key — the free tier is genuinely free, no credit card, no expiry:

  1. Go to aistudio.google.com/apikey
  2. Choose Create API key in new project

Use a new project. Free-tier quota is counted per Google Cloud project, not per key. Never enable billing on it — that permanently removes the free tier.

The key is stored in ~/.prompt-clarify/config.json with owner-only permissions. If you prefer, set GEMINI_API_KEY as an environment variable instead — that takes precedence.

Usage

prompt-clarify "your vague prompt"   # improve a prompt
prompt-clarify                       # show what it remembers about you
prompt-clarify setup                 # redo the five questions
prompt-clarify setup --key           # replace just the API key

The improved prompt is copied to your clipboard automatically.


How it works

On first run it asks five open questions: what you do, what you're working on, who reads your output, what you use AI for, and how you want answers written.

That profile is saved to ~/.prompt-clarify/memory.json — your home folder, not the project folder, so it works everywhere and can never be committed to a repo by accident.

After that, every prompt goes through three stages:

  1. Intent — do you want the AI to do a task, to write something you'll send, or to help you think? Getting this backwards is worse than a weak rewrite. "I made a tool and sent it to some developers, give me feedback" means you want a message to send them, not a review of your tool.
  2. Relevance — which profile facts actually matter for this prompt? Usually most of them don't. A note that you're building a CLI tool has no business appearing in a prompt about a blog post.
  3. Restraint — does this prompt need help at all? If it already states audience, format, length and tone, it's returned unchanged.
  4. Rewrite — fill only the relevant gaps. Never invent facts about you, and never invent facts about the subject.

Mixed-language input works — Hinglish, or any mix. It reads the intent and writes the prompt in English.

Configuration

| Variable | Default | Notes | |---|---|---| | GEMINI_API_KEY | from ~/.prompt-clarify/config.json | Set as an env var to override the stored key | | GEMINI_MODEL | gemini-flash-latest | gemini-flash-lite-latest has ~4× the daily quota but produces thinner rewrites |

Files it creates, both in your home folder:

  • ~/.prompt-clarify/config.json — your API key (permissions 0600)
  • ~/.prompt-clarify/memory.json — your profile

Honest limitations

  • Your prompts are sent to Google Gemini. Only the memory stays on your machine. This is not a local-only tool.
  • It has no idea what's on your screen. Prompts like "make this horizontal" can't be fixed by memory — that needs context this tool doesn't have yet.
  • One profile. If you switch between very different kinds of work, the memory will be too general to help.
  • Free-tier limits apply — roughly 10 requests per minute and 250 per day.

Contributing

Issues and pull requests welcome, particularly:

  • Better handling of ambiguous prompts (right now "help me with a pitch" guesses, rather than saying it guessed)
  • Support for more than one profile
  • Providers other than Gemini

Licence

MIT