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 🙏

© 2025 – Pkg Stats / Ryan Hefner

qwriter

v0.0.2

Published

QWriter is a CLI tool that goes beyond “just another ChatGPT API wrapper” and makes your text and code files shine. Sure, it leverages the ChatGPT API, but this isn’t about simple questions and answers. QWriter is your trusty editing sidekick, making tech

Downloads

14

Readme

QWriter

QWriter is a CLI tool that goes beyond “just another ChatGPT API wrapper” and makes your text and code files shine. Sure, it leverages the ChatGPT API, but this isn’t about simple questions and answers. QWriter is your trusty editing sidekick, making technical documentation readable, code comments crystal-clear, and marketing copy engaging.

Why QWriter? Because even the best writers need an editor, and let’s face it—sometimes your comments need more than a sprinkle of polish. With QWriter, every file can get that professional, AI-powered touch.

Quick Start

  1. Set up your OpenAI API key as an environment variable:

    export OPENAI_API_KEY=your_openai_api_key_here
  2. Run QWriter with npx (no installation required):

    npx qwriter init

    This will launch the init command to set up your configuration file.

Now you’re ready to use QWriter commands directly with npx qwriter <command>!

Commands & Examples

1. qwriter init - Initialize your config file

First, set up a config file to let QWriter know your objective, topic, audience, and preferred tone. QWriter will prompt you with easy questions to help you configure it.

Example

npx qwriter init

Sample Output:

✔ What is your main objective? Improve clarity and tone of product copy.
✔ What is the main topic or focus of your content? A new feature for SaaS billing.
✔ Who is your target audience for this content? Small business owners.
✔ What tone would you like for the content? Friendly
✔ Where would you like to save the configuration file? ./qwriter.json
✔ Configuration file saved successfully to ./qwriter.json

2. qwriter review - Review and Rewrite Content

With your config file set up, use this command to review and rewrite files, whether it’s for clear documentation, engaging marketing copy, or understandable code comments.

Example Usage Scenarios

Scenario 1: Sprucing Up Marketing Copy

Your SaaS feature release sounds stiff. QWriter can help make it more friendly!

npx qwriter review ./content/marketing-copy.txt -c ./qwriter.json

Scenario 2: Making Technical Documentation Accessible

Turn a dense API setup guide into something beginners won’t fear!

npx qwriter review ./docs/api-setup.md -c ./qwriter.json -x "Make it approachable for beginners"

Scenario 3: Cleaning Up Code Comments for Clarity

Your code comments need translation. Let QWriter help.

npx qwriter review ./src/new-feature.js -c ./qwriter.json -x "Clarify comments without altering functionality"

File Content Examples (Before & After)

Want to see the magic in action? Here’s a peek at what QWriter can do:

Example 1: Marketing Copy (marketing-copy.txt)

Before:

Our new automated billing feature is designed to streamline your payment processes. It ensures accurate, timely invoicing and provides detailed reports. Manage your finances with ease and gain insights into your business performance.

After QWriter:

Meet our new automated billing feature—built to simplify your payments! Now, you can automate invoicing, receive timely reports, and get clear insights into your business performance, so you can focus on what matters most.

Example 2: Technical Documentation (api-setup.md)

Before:

# API Setup Guide

1. **Obtain API Key**: Go to the Developer Portal and generate an API key. This key will allow you to authenticate requests.
2. **Install SDK**: Use the command `npm install our-sdk` to install the SDK for JavaScript.
3. **Configure SDK**: Initialize the SDK by passing your API key into the configuration function.
4. **Make Your First Request**: Use the SDK’s `fetchData` method to retrieve your data. Refer to the documentation for endpoint details.

After QWriter:

# API Setup Guide

1. **Get Your API Key**: Visit our Developer Portal to generate an API key, which will authenticate your requests.
2. **Install the SDK**: Run `npm install our-sdk` to add the SDK to your project.
3. **Set Up the SDK**: Pass your API key to initialize the SDK.
4. **Retrieve Data**: Call the SDK’s `fetchData` method to pull data from our API. See the documentation for details.

Example 3: Code Comments (new-feature.js)

Before:

// Function to process user data and calculate metrics
function processData(data) {
  // This part loops through the data to calculate average metrics
  for (let i = 0; i < data.length; i++) {
    // Calculate average and add it to the result array
    const average = (data[i].value1 + data[i].value2) / 2;
    result.push(average);
  }
}

// A function to log the results to the console
// This helps us verify the calculations
function logResults(results) {
  console.log("Results:", results);
}

After QWriter:

// Processes user data to calculate average metrics
function processData(data) {
  // Loop through each data point and calculate the average of values
  for (let i = 0; i < data.length; i++) {
    const average = (data[i].value1 + data[i].value2) / 2;
    result.push(average); // Add the average to results
  }
}

// Logs the calculated results to the console for verification
function logResults(results) {
  console.log("Results:", results);
}

Command Options

  • -c, --config <path>: Specify a custom config file path (defaults to ./qwriter.json).
  • -x, --context <context>: Provide additional context to guide QWriter’s content improvements (e.g., "tailor to non-technical readers").

License

MIT License

Contributing

We’re open to PRs and issues! QWriter is always in beta in our hearts, and we love fresh ideas.

And that’s QWriter—your friendly, AI-powered editor for all things text and code. Because even your files deserve a little polish! 🧑‍💻✨