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

@zerocarbon/erp-config-sdk

v1.0.15

Published

Configuration SDK for ZeroCarbon ERP - Industry configurations, UI features, and emission types

Readme

Zero Carbon ERP Config SDK

A comprehensive TypeScript SDK providing emission configurations and calculation utilities for carbon footprint tracking across 24+ industries.

Installation

npm install erp-config-sdk

Features

  • 24+ Industry-specific emission configurations
  • Type-safe emission data structures
  • Carbon intensity calculations
  • Emission source generators
  • Industry mapping utilities
  • React Icons integration
  • UI feature configurations

Industries Supported

  • Alloy Manufacturing
  • Aluminum Production
  • Automobile/Automotive
  • Aviation
  • Banking & Financial Services
  • Cement Production
  • Chemical Manufacturing
  • Construction
  • Food & Beverage
  • Information Technology
  • Leather & Textiles
  • Logistics & Transportation
  • Manufacturing
  • Metal Processing
  • Oil & Gas/Petrochemicals
  • Packaging
  • Pharmaceuticals
  • Pulp & Paper
  • Real Estate
  • Shipping & Maritime
  • Steel Production
  • Telecommunications
  • Textile Manufacturing
  • Utilities & Energy

Basic Usage

import { 
  getIndustryConfig, 
  EmissionData, 
  IndustryConfig,
  calculateEmissionFootprint,
  getIndustryFromCompanyName 
} from '@zerocarbon/erp-config-sdk';

// Get configuration for a specific industry
const automobileConfig = getIndustryConfig('automobile');

// Get industry mapping from company name
const industry = getIndustryFromCompanyName('Tesla Motors');

// Type-safe emission data
const emissionData: EmissionData = {
  scope1: 1200,
  scope2: 800,
  scope3: 2400,
  total: 4400
};

Industry Configuration Structure

Each industry provides:

  • Scope 1 Emissions: Direct emissions from company operations
  • Scope 2 Emissions: Indirect emissions from purchased energy
  • Scope 3 Emissions: Indirect emissions from value chain activities
  • UI Features: Icon mappings and display configurations
  • API Endpoints: Integration points for emission calculations

Advanced Usage

Custom Emission Calculations

import { 
  formatEmissions,
  generateEmissionSources,
  BUSINESS_TRAVEL,
  PURCHASED_ELECTRICITY_PRODUCTS 
} from '@zerocarbon/erp-config-sdk';

// Format emission values
const formatted = formatEmissions(1234.567); // "1,234.57"

// Generate emission sources for a category
const sources = generateEmissionSources('SCOPE_1');

React Integration

import { FaIndustry } from 'react-icons/fa';
import { getUIFeatures } from '@zerocarbon/erp-config-sdk';

const features = getUIFeatures('manufacturing');
const Icon = features.icon || FaIndustry;

function IndustryCard() {
  return (
    <div>
      <Icon size={24} />
      <span>{features.title}</span>
    </div>
  );
}

Types

The SDK exports comprehensive TypeScript types:

// Core emission types
import type {
  EmissionData,
  EmissionSource,
  ProcessedEmissionItem,
  IndustryConfig,
  CarbonIntensityData,
  BillsAnalyzed,
  Calculations
} from '@zerocarbon/erp-config-sdk';

API

Industry Configuration Functions

  • getIndustryConfig(industry: string): IndustryConfig - Get complete industry configuration
  • getIndustryFromCompanyName(name: string): string - Map company name to industry

Emission Utilities

  • formatEmissions(value: number): string - Format emission values for display
  • generateEmissionSources(scope: string): EmissionSource[] - Generate emission sources
  • calculateEmissionFootprint(data: EmissionData): number - Calculate total footprint

Helper Functions

  • getUIFeatures(industry: string) - Get UI configurations for industry
  • getBillManager() - Access bill management utilities
  • getCarbonIntensityData() - Access carbon intensity calculations

Dependencies

  • React Icons: For industry-specific icons
  • TypeScript: Full type safety and IntelliSense support

Peer Dependencies

{
  "react-icons": "^4.0.0"
}

Development

# Install dependencies
npm install

# Build the SDK
npm run build

# Run linting
npm run lint

# Run type checking
npm run type-check

License

MIT

Contributing

Contributions are welcome! Please ensure all changes include appropriate TypeScript types and maintain backward compatibility.

Support

For questions or issues, please contact the Zero Carbon ERP team.