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

@promptforgee/vscode

v0.1.3

Published

PromptForge vscode package

Readme


Why this package exists

Providing developer-first tooling means bringing prompt engineering directly into the IDE.

@promptforgee/vscode contains the editor-agnostic core logic for the official PromptForge Visual Studio Code extension. By separating the logic from the VS Code API, we ensure that diagnostic linting, optimization suggestions, and autocomplete functionality can be rigorously tested and potentially reused in other editor environments (like Neovim or JetBrains).

[!WARNING]
This package is currently in early development. The features described below are planned for the upcoming VS Code extension release.

Features

  • 🚧 Real-time Diagnostics: Interfaces with @promptforgee/analyzer to provide inline squiggly lines for weak prompt constraints.
  • 🚧 Code Actions: Provides Quick Fixes (e.g., "Optimize prompt") powered by @promptforgee/optimizer.
  • 🚧 Hover Insights: Shows prompt scores and token estimations when hovering over a Prompt instance.
  • 🚧 Editor Agnostic: Pure TypeScript logic decoupled from vscode specific dependencies.

Installation

# npm
npm install @promptforgee/vscode

# pnpm
pnpm add @promptforgee/vscode

# yarn
yarn add @promptforgee/vscode

# bun
bun add @promptforgee/vscode

Note: This package is intended primarily for developers contributing to the PromptForge editor extensions. End-users should install the extension directly from the VS Code Marketplace.

Quick Start

import { hello } from '@promptforgee/vscode';

// Currently exports a placeholder testing function.
console.log(hello());
// Outputs: "Hello from @promptforgee/vscode"

API Overview

Current API

| Export | Description | | --------- | ------------------------------------------------ | | hello() | A placeholder function ensuring package linking. |

🚧 Planned API

| Export | Description | | -------------------------------------- | -------------------------------------------------------------------------- | | 🚧 provideDiagnostics(document) | Scans a document and returns analyzer issues as editor diagnostic objects. | | 🚧 provideCodeActions(diagnostic) | Maps an analysis suggestion to an automated editor fix. | | 🚧 calculateHoverMetrics(promptNode) | Returns markdown string for hover tooltips. |

Real-world Example (🚧 Planned)

Internal architecture example for bridging the core logic to the VS Code API:

import * as vscode from 'vscode';
import { provideDiagnostics } from '@promptforgee/vscode';

// Inside the VS Code Extension activate() function:
export function activate(context: vscode.ExtensionContext) {
  const diagnosticCollection = vscode.languages.createDiagnosticCollection('promptforge');

  // Listen to document changes
  vscode.workspace.onDidChangeTextDocument((event) => {
    // 🚧 Planned core logic execution
    const issues = provideDiagnostics(event.document.getText());

    // Map core issues to VS Code Diagnostics
    const vsDiagnostics = issues.map(
      (issue) =>
        new vscode.Diagnostic(
          new vscode.Range(issue.line, 0, issue.line, 100),
          issue.message,
          vscode.DiagnosticSeverity.Warning,
        ),
    );

    diagnosticCollection.set(event.document.uri, vsDiagnostics);
  });
}

Ecosystem

@promptforgee/vscode brings the intelligence of the analyzer and optimizer directly to the developer's fingertips.

@promptforgee/analyzer (Provides the insights) ↓ @promptforgee/vscode (You are here)

Documentation

For full documentation and advanced usage, visit promptforge.dev/docs/vscode.

Examples

Check out our Examples directory for more real-world use cases.

Roadmap

  • 🚧 Establish Language Server Protocol (LSP) abstraction layer.
  • 🚧 Integrate @promptforgee/analyzer for live diagnostics.
  • 🚧 Integrate @promptforgee/optimizer for Quick Fixes.
  • 🚧 Publish to the VS Code Marketplace.

Contributing

We welcome contributions! Please read our Contributing Guide to get started.

License

MIT © Omnikon-Org