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

write-helper

v1.0.0

Published

CLI tool to improve, correct, and translate text using SAP AI Core

Readme

WriteHelper (wh)

A CLI tool to improve, translate, extend, and continue text using SAP AI Core.

Prerequisites

  • Node.js >= 20
  • Access to an SAP AI Core instance with an orchestration deployment

Install

git clone <repo-url> && cd WriteHelper
npm install
npm link

This makes the wh command available globally.

Uninstall

npm unlink -g write-helper
rm -rf ~/.wh

Configuration

Before using the tool, configure your AI Core credentials. Pick one of the following:

Interactive setup

wh config

You will be prompted for:

  • AI Core Service URL
  • Client ID
  • Client Secret
  • Auth URL (token endpoint base)

Credentials are saved to ~/.wh/config.json.

Import from environment variable

If you already have AICORE_SERVICE_KEY set (the full service key JSON):

wh config --env

Environment variable only

You can also skip wh config entirely and just export the variable:

export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'

Usage

wh <command> [options] "your text"

Commands

| Command | Description | |-------------|--------------------------------------------------| | improve | Fix grammar, spelling, and clarity (keeps tone) | | translate | Translate text to a target language | | extend | Elaborate and expand text with more detail | | continue | Continue writing from where the text left off | | config | Configure AI Core credentials |

Options

| Option | Applies to | Description | Default | |---------------------|-------------|--------------------------------------|----------| | -m, --model <name>| all commands| Model to use | gpt-4o | | -l, --lang <code> | translate | Target language (e.g. de, fr) | required | | -e, --env | config | Import credentials from env variable | |

Examples

# Improve text
wh improve "i think we should reconsider this descision"

# Translate to German
wh translate --lang=de "Hello, how are you?"

# Extend a short message into a longer one
wh extend "We should migrate to the new API"

# Continue writing from an existing paragraph
wh continue "Dear team, I wanted to follow up on our discussion from last week."

# Use a different model
wh improve --model=gpt-4o-mini "some text with erors"

# Pipe output to clipboard (macOS)
wh improve "some text" | pbcopy