New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@sf-explorer/salesforce-metadata-reference

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sf-explorer/salesforce-metadata-reference

Salesforce Metadata API object reference from official documentation

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Salesforce Metadata Reference

npm version license

Salesforce Metadata API object reference from official documentation.

This package provides programmatic access to Salesforce Metadata API types including CustomObject, ApexClass, Flow, and other components used in deployments and package development.

📦 Installation

npm install @sf-explorer/salesforce-metadata-reference

🚀 Quick Start

import {
  loadIndex,
  getObject,
  searchObjects,
  getAllObjectNames,
  getObjectDescription
} from '@sf-explorer/salesforce-metadata-reference';

// Load index
const index = await loadIndex();
console.log(`${index.totalObjects} metadata types available`);

// Get a metadata type
const customObject = await getObject('CustomObject');
if (customObject) {
  console.log(customObject.name);
  console.log(customObject.description);
}

// Search metadata types
const flowTypes = await searchObjects(/flow/i);
console.log(`Found ${flowTypes.length} flow-related types`);

📂 Data Structure

src/doc/
├── index.json        # Master index
└── objects/          # Individual metadata type files
    ├── A/
    │   ├── AccessMapping.json
    │   ├── ApexClass.json
    │   └── ...
    ├── C/
    │   ├── CustomObject.json
    │   └── ...
    └── ...

📚 API Reference

All functions match the standard API across @sf-explorer packages:

  • loadIndex() - Load master index
  • getObject(name) - Get metadata type details
  • searchObjects(pattern) - Search by name
  • getAllObjectNames() - Get all type names
  • getObjectDescription(name) - Get lightweight metadata
  • clearCache() - Clear cached data

📄 License

MIT License - see LICENSE

Keywords

salesforce

FAQs

Package last updated on 04 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts