🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@chargebee/chargebee-apps-shared

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chargebee/chargebee-apps-shared

Shared interfaces and utilities for Chargebee Apps CLI

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
19
-96.54%
Maintainers
4
Weekly downloads
 
Created
Source

@chargebee/chargebee-apps-shared

Shared interfaces, types, and utilities for the Chargebee Apps CLI ecosystem.

Installation

npm install @chargebee/chargebee-apps-shared

This package is typically installed as a dependency of @chargebee/chargebee-apps or @chargebee/chargebee-apps-libs.

Overview

Provides the common building blocks used across Chargebee Apps packages:

  • Configuration — environment detection and path resolution
  • Dependency management — isolated npm installs and secure module loading
  • Validation — manifest, package, and iparams validation
  • File and archive services — packaging and file operations
  • Logging — standardized logging interfaces
  • Sandbox — secure code execution contracts
  • Types — shared event, manifest, and handler types

Usage

import {
	DependencyManager,
	ManifestValidator,
	PathResolver,
	EnvironmentConfig,
	CBFileSystem,
	CBProcess,
} from '@chargebee/chargebee-apps-shared';

const envConfig = new EnvironmentConfig();
const pathResolver = new PathResolver();

const fileSystem = new CBFileSystem();
const dependencyManager = new DependencyManager(fileSystem);

const allowedModules = [{ name: 'lodash', version: '^4.17.21' }];
const validator = new ManifestValidator(allowedModules);
const manifest = validator.validateFile('./my-app/manifest.json');

await dependencyManager.ensureDependencies('./my-app', manifest);

Main exports

ExportPurpose
EnvironmentConfigDetect development vs production runtime
PathResolverResolve CLI and package paths
DependencyManagerInstall and load app dependencies safely
ManifestValidatorValidate manifest.json
PackageValidatorValidate app package structure
ArchiveServiceCreate and extract zip packages
TemplateServiceCopy app templates
FileManagementServiceCollect files for packaging
IparamsServiceLoad and validate iparams
CBFileSystem / CBProcessFile and process abstractions
sandboxContextCorrelate sandbox execution context

License

MIT

FAQs

Package last updated on 09 Jul 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