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

sf-ami

v0.2.1

Published

Set of commands that activate AI assistance during Salesforce development or CI/CD work

Downloads

24

Readme

sf-ami

NPM Downloads/week License

sf-ami is a suite of tools designed to seamlessly integrate AI into your everyday workflow when working with Salesforce code.

Install

sf plugins install sf-ami@latest

Issues

Please report any issues at https://github.com/laserburst/sf-ami/issues

Contributing

We welcome contributions from the community. If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

Commands

sf ami review diff

Performs an AI-assisted review of code changes between two commits or branches.

USAGE
  $ sf ami review diff -a OpenAI|Anthropic -n <value> -m <value> [--json] [--flags-dir <value>] [-r <value>] [-f
    <value>] [-t <value>] [-p <value>] [-c <value>] [-g GitHub] [-k <value>] [-w <value>] [-e <value>]

FLAGS
  -a, --ai-provider=<option>
      (required) The AI service provider to use.

      Supported values:

      - OpenAI
      <options: OpenAI|Anthropic>

  -c, --config-file=<value>
      Path to the configuration file used by the code analyzer (optional).

  -e, --git-repo=<value>
      Repository name for the Git provider (optional).

  -f, --from=<value>
      [default: HEAD~1] The base commit or branch from which changes are compared (default is "HEAD~1").

  -g, --git-provider=<option>
      The Git hosting service to use for posting comments (optional).

      Supported values:

      - GitHub
      <options: GitHub>

  -k, --git-token=<value>
      Authentication token for the Git provider (optional).

  -m, --ai-model=<value>
      (required) The model to use for generating code review suggestions.

  -n, --ai-token=<value>
      (required) Authentication token for the AI provider.

  -p, --pull-request-id=<value>
      Identifier for the pull request to which review comments should be posted (optional).

  -r, --repo-dir=<value>
      [default: /home/runner/work/sf-ami/sf-ami] Specifies the path to the local Git repository (default is current
      working directory).

  -t, --to=<value>
      [default: HEAD] The target commit or branch to which changes are compared (default is "HEAD").

  -w, --git-owner=<value>
      Repository owner's name for the Git provider (optional).

GLOBAL FLAGS
  --flags-dir=<value>  Import flag values from a directory.
  --json               Format output as json.

DESCRIPTION
  Performs an AI-assisted review of code changes between two commits or branches.

  This command automates the process of generating code review comments for diffs in a Git repository by:

  - Creating a temporary directory containing the differences between the specified commits/branches.
  - Running a static code analysis over the diff, which produces SARIF data that includes diagnostic messages and hints
  regarding potential issues in the code.
  - Invoking an AI provider (e.g., OpenAI) to generate review comments and code suggestions based on the collected hints
  and the actual code snippet.
  - Optionally, posting the AI-generated review comments as pull request comments on supported Git hosting providers
  (such as GitHub or BitBucket) when pull request information and credentials are provided.

EXAMPLES
  $ sf ami review diff --repo-dir ./ --ai-provider=OpenAI --ai-model=gpt-4o-mini --ai-token=$OPENAI_TOKEN --git-provider=GitHub --git-token=$GITHUB_TOKEN--git-owner=nazim-aliyev --git-repo=review-sample --pull-request-id=2 --from=HEAD --to=main