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

@eiei114/pi-sub-shared

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eiei114/pi-sub-shared

Shared types and event contract for the sub-* ecosystem

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

@eiei114/pi-sub-shared

Shared types, metadata, and event contracts for the sub-* ecosystem.

This package is consumed by sub-core and sub-bar to keep provider metadata, usage types, and model multipliers consistent. For repo setup and extension installation, see the root pi-sub README.

Overview

Installation

npm install @eiei114/pi-sub-shared

Usage

import {
  PROVIDERS,
  ProviderName,
  UsageSnapshot,
  getDefaultCoreSettings,
} from "@eiei114/pi-sub-shared";

const defaults = getDefaultCoreSettings();
const provider: ProviderName = "anthropic";
const snapshot: UsageSnapshot = {
  provider,
  displayName: "Anthropic (Claude)",
  windows: [],
};

console.log(PROVIDERS, defaults, snapshot);

Exports

  • PROVIDERS, ProviderName
  • RateWindow, UsageSnapshot, ProviderUsageEntry
  • UsageError, UsageErrorCode
  • ProviderStatus, StatusIndicator
  • CoreSettings, CoreProviderSettings, CoreProviderSettingsMap
  • BehaviorSettings, DEFAULT_BEHAVIOR_SETTINGS
  • getDefaultCoreSettings, getDefaultCoreProviderSettings
  • SubCoreState, SubCoreAllState, SubCoreEvents
  • ProviderMetadata, ProviderDetectionConfig, ProviderStatusConfig
  • PROVIDER_METADATA, PROVIDER_DISPLAY_NAMES
  • MODEL_MULTIPLIERS

Development

npm run check

FAQs

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