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

rflib-plugin

v0.11.1

Published

Utility commands to help with the adoption of the RFLIB open-source library for Salesforce.

Downloads

306

Readme

RFLIB Plugin for Salesforce CLI

NPM Downloads/week License

Plugin for Salesforce CLI to help with the adoption of RFLIB - an open-source logging framework for Salesforce.

Features

  • Automatically instruments Apex classes with RFLIB logging statements
  • Automatically instruments LWC components with RFLIB logging statements
  • Automatically instruments Aura components with RFLIB logging statements
  • Automatically instruments Salesforce Flows with RFLIB logging actions

Installation

sf plugins install rflib-plugin

Commands

sf rflib logging apex instrument

Adds RFLIB logging statements to Apex classes.

# Add logging to all classes in a directory
sf rflib logging apex instrument --sourcepath force-app

# Preview changes without modifying files
sf rflib logging apex instrument --sourcepath force-app --dryrun

# Format modified files with Prettier
sf rflib logging apex instrument --sourcepath force-app --prettier

# Skip instrumenting files where logging is already present
sf rflib logging apex instrument --sourcepath force-app --skip-instrumented

Command Options

  • --sourcepath (-s): Directory containing Apex classes to instrument
  • --dryrun (-d): Preview changes without modifying files
  • --prettier (-p): Format modified files using Prettier
  • --skip-instrumented: Do not instrument files where RFLIB logging is already present

sf rflib logging lwc instrument

Adds RFLIB logging statements to Lightning Web Components.

# Add logging to all LWC files
sf rflib logging lwc instrument --sourcepath force-app

# Preview changes without modifying files
sf rflib logging lwc instrument --sourcepath force-app --dryrun

# Add logging and format code
sf rflib logging lwc instrument --sourcepath force-app --prettier

# Skip instrumenting files where logging is already present
sf rflib logging lwc instrument --sourcepath force-app --skip-instrumented

Command Options

  • --sourcepath (-s): Directory containing LWC components to instrument
  • --dryrun (-d): Preview changes without modifying files
  • --prettier (-p): Format modified files using Prettier
  • --skip-instrumented: Do not instrument files where RFLIB logging is already present

sf rflib logging aura instrument

Adds RFLIB logging statements to Aura Components.

# Add logging to all Aura component files
sf rflib logging aura instrument --sourcepath force-app

# Preview changes without modifying files
sf rflib logging aura instrument --sourcepath force-app --dryrun

# Add logging and format code
sf rflib logging aura instrument --sourcepath force-app --prettier

# Skip instrumenting files where logging is already present
sf rflib logging aura instrument --sourcepath force-app --skip-instrumented

Command Options

  • --sourcepath (-s): Directory containing Aura components to instrument
  • --dryrun (-d): Preview changes without modifying files
  • --prettier (-p): Format modified files using Prettier
  • --skip-instrumented: Do not instrument files where RFLIB logging is already present

sf rflib logging flow instrument

Adds RFLIB logging actions to Salesforce Flows and optimizes flow layout.

# Add logging to all Flow files
sf rflib logging flow instrument --sourcepath force-app

# Preview changes without modifying files
sf rflib logging flow instrument --sourcepath force-app --dryrun

# Skip instrumenting flows where logging is already present
sf rflib logging flow instrument --sourcepath force-app --skip-instrumented

Command Options

  • --sourcepath (-s): Directory containing Flow files to instrument
  • --dryrun (-d): Preview changes without modifying files
  • --skip-instrumented: Do not instrument files where RFLIB logging is already present

Features

  • Adds logging for flow invocation at the start of the flow
  • Adds logging for decision paths to track which branch is executed
  • Sets the flow's CanvasMode to AUTO_LAYOUT_CANVAS for better visualization in Flow Builder
  • Preserves the original processType value
  • Handles both free-form and auto-layout flows, converting all to auto-layout
  • Supports both standard Flows (processType="Flow") and Auto-Launched Flows (processType="AutoLaunchedFlow")

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Learn More