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

naming-suggestor-extension

v1.0.1

Published

AI-powered variable and function naming suggestions using OpenAI

Readme

Naming Suggestor

AI-powered variable and function naming suggestions using OpenAI to help you write cleaner, more readable code.

Features

  • AI-Powered Suggestions: Uses OpenAI's GPT models to analyze your code and suggest better names
  • Easy to Use: Simply select code and press Ctrl+Shift+R (or Cmd+Shift+R on Mac)
  • Multiple Suggestions: Get multiple naming options with explanations
  • Smart Context Analysis: Considers your code's context and purpose
  • Multiple Model Support: Choose between GPT-3.5 Turbo, GPT-4, or GPT-4 Turbo

Installation

  1. Install the extension from the VS Code marketplace
  2. Get an OpenAI API key from OpenAI's website
  3. Configure your API key in VS Code settings

Setup

  1. Open VS Code Settings (Ctrl+, or Cmd+,)
  2. Search for "Naming Suggestor"
  3. Enter your OpenAI API key in the "Openai Api Key" field
  4. Optionally, choose your preferred model (GPT-3.5 Turbo, GPT-4, or GPT-4 Turbo)

Usage

  1. Select Code: Highlight variables, functions, or code blocks that you want to improve
  2. Get Suggestions: Press Ctrl+Shift+R (Windows/Linux) or Cmd+Shift+R (Mac)
  3. Choose Improvements: Select from the suggested naming improvements
  4. Apply Changes: The extension will automatically rename all occurrences in your file

Example

Before:

const d = new Date();
const u = users.filter((x) => x.active);
function calc(a, b) {
  return a * b * 0.1;
}

After using Naming Suggestor:

const currentDate = new Date();
const activeUsers = users.filter((user) => user.active);
function calculateDiscount(price, discountRate) {
  return price * discountRate * 0.1;
}

Commands

  • Naming Suggestor: Suggest Better Names - Analyze selected code and provide naming suggestions

Requirements

  • OpenAI API key
  • Active internet connection
  • VS Code 1.74.0 or higher

Extension Settings

This extension contributes the following settings:

API Configuration

  • namingSuggestor.openaiApiKey: Your OpenAI API key
  • namingSuggestor.model: OpenAI model to use (gpt-3.5-turbo, gpt-4, gpt-4-turbo)

Suggestion Filtering

  • namingSuggestor.includeVariables: Include variable name suggestions (default: true)
  • namingSuggestor.includeFunctions: Include function name suggestions (default: true)
  • namingSuggestor.includeParameters: Include parameter name suggestions (default: true)
  • namingSuggestor.includeClasses: Include class name suggestions (default: true)

Behavior Options

  • namingSuggestor.customKeybinding: Custom keybinding (default: "ctrl+shift+r") - Restart required
  • namingSuggestor.autoApply: Automatically apply first suggestion without picker (default: false)
  • namingSuggestor.maxSuggestions: Maximum number of suggestions to show (1-10, default: 5)

Known Issues

  • Large code selections may take longer to process
  • API rate limits may apply based on your OpenAI plan

Privacy

  • Code is sent to OpenAI's servers for analysis
  • No code is stored or logged by this extension
  • Review OpenAI's privacy policy for their data handling practices

Contributing

Found a bug or have a feature request? Please create an issue on our GitHub repository.

License

This extension is licensed under the MIT License.


Enjoy cleaner, more readable code with AI-powered naming suggestions! 🚀