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

@salesforce/metadata-plugins

v1.0.2

Published

Visualizer implementations for Salesforce metadata

Downloads

707

Readme

@salesforce/metadata-plugins

Visualization plugin implementations for Salesforce metadata types, used with @salesforce/metadata-core-sdk.

Overview

This package provides metadata visualization plugins that parse Salesforce XML metadata files and render interactive visualizations. Each plugin provides:

  • Parser — Extracts structured data from XML metadata files
  • Visualizer — Generates interactive React-based visualizations

Supported Metadata Types

| Metadata Type | File Pattern | Plugin ID | Description | | ------------- | ------------------------------------- | ----------- | ------------------------------------------------------------------- | | FlexiPages | .flexipage-meta.xml | flexipage | Lightning Page layout visualization | | Data Model | .object-meta.xml, .field-meta.xml | schema | Interactive ERD visualization of objects, fields, and relationships |

Installation

npm install @salesforce/metadata-plugins

Peer dependency: @salesforce/metadata-core-sdk@^1.0.0 must be installed.

Usage

Loading All Plugins

import { getAllVisualizers } from '@salesforce/metadata-plugins';

const plugins = getAllVisualizers();

Filtering Plugins via Configuration

Plugins can be disabled at runtime using PluginConfig:

import { getAllVisualizers } from '@salesforce/metadata-plugins';
import type { PluginConfig } from '@salesforce/metadata-core-sdk';

const config: PluginConfig = {
  pluginSettings: {
    flexipage: false, // Disable flexipage plugin
  },
};

const plugins = getAllVisualizers(config);

Using Individual Plugins

import { FlexipageVisualizer, SchemaVisualizer } from '@salesforce/metadata-plugins';

const flexipageViz = new FlexipageVisualizer();
const schemaViz = new SchemaVisualizer();

// Check plugin metadata
const info = schemaViz.getMetadataPluginInfo();
console.log(info.id); // 'schema'
console.log(info.filePatterns); // ['.object-meta.xml', '.field-meta.xml']

API

Entry Point

  • getAllVisualizers(config?) — Returns all plugin instances, optionally filtered by PluginConfig.pluginSettings

Plugins

  • FlexipageVisualizer — Implements IVisualizationPlugin<FlexipageMetadata> for Lightning Page metadata
  • SchemaVisualizer — Implements IVisualizationPlugin<SchemaERDData> for Custom Object and Field metadata

Parsers

  • FlexipageParser — Implements IMetadataParser<FlexipageMetadata>
  • SchemaParser — Implements IMetadataParser<SchemaERDData>

Types

  • FlexipageMetadata — Parsed FlexiPage structure
  • SchemaERDData — Parsed ERD data with objects, fields, and relationships

Package Exports

// Plugins
import {
  FlexipageVisualizer,
  SchemaVisualizer,
  getAllVisualizers,
} from '@salesforce/metadata-plugins';

// Parsers
import { FlexipageParser, SchemaParser } from '@salesforce/metadata-plugins';

// Types
import type { FlexipageMetadata, SchemaERDData } from '@salesforce/metadata-plugins';

Creating a New Plugin

  1. Create a folder under src/plugins/<type>/
  2. Implement IVisualizationPlugin from @salesforce/metadata-core-sdk
  3. The plugin id in MetadataPluginInfo must match the folder name
  4. Add a React UI in ui/ (optional — framework auto-detects builds)
  5. Export the plugin in src/index.ts and add it to getAllVisualizers()

License

BSD-3-Clause

Support

For issues or questions, please file an issue at: https://github.com/forcedotcom/salesforce-metadata-visualizer-support/issues