Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

integrateledger

Latest version: v0.4.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: ushen
7 Versions
1.2K Downloads

Scan summary

integrateledger was last scanned on 23 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 3 were published within 6 days (18–23 Nov 2026).
  • Findings: No rules fired in version 0.4.0.
  • Downloads: 1,169 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0 LATEST 23 Nov 2026 No rules fired
0.3.0 18 Nov 2026 No rules fired
0.2.0 18 Nov 2026 No rules fired
0.1.2 5 Nov 2026 Not shown
0.1.1 29 Oct 2026 Not shown

No rules fired in 0.4.0

Findings

Findings for v0.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

integrateledger

Released under the MIT license.

Speakeasy-generated TypeScript SDK for Ledger's client API.

The SDK calls the hosted Ledger API by default. Pass serverURL to use a local instance or a future custom domain.

Ledger API keys grant organization-wide access. Use this SDK only in trusted server code; never ship its key to a browser or client bundle.

Fail open. When Ledger can't answer (a network error, a timeout after 2 seconds, a 5xx or a 429), checkCredits returns allowed: true and trackUsage queues the usage for replay with the same requestId, both marked failedOpen: true with a reason, instead of throwing. Business answers such as 409 insufficient_credits throw as usual. Call await client.flushQueuedTracks() before a serverless handler returns, pass failOpen: { onFailOpen } to log events, or failOpen: false to throw. See Fail open.

Built by Speakeasy

Install the server-side SDK from npm. See the Ledger setup guide for catalog, customer, usage, and Checkout examples.

Summary

Ledger's server-side SDK creates catalog items, manages customers and plans, records usage, and starts Stripe Checkout. The API reference shows each operation with cURL, Python, and TypeScript examples.

Table of Contents

  • integrateledger
    • SDK Installation
    • Requirements
    • SDK Example Usage
    • Authentication
    • Available Resources and Operations
    • Standalone functions
    • Retries
    • Error Handling
    • Server Selection
    • Custom HTTP Client
    • Debugging
  • Development
    • Versioning
    • Contributions

SDK Installation

npm install integrateledger or bun add integrateledger. The package provides both CommonJS and ES Modules. Keep your Ledger API key on the server.

Requirements

For supported JavaScript runtimes, please consult RUNTIMES.md.

SDK Example Usage

Example
import ledger from "integrateledger";

const client = new ledger({ apiKey: process.env.LEDGER_API_KEY ?? "" });

async function main() {
  await client.createFeature({ id: "api_call", name: "API call", creditCost: 1 });
  await client.createPlan({ id: "starter", name: "Starter", monthlyCredits: 100, monthlyPriceCents: 1900 });
  await client.createAddOn({ id: "extra_credits", name: "Extra credits", type: "credit_pack", creditAmount: 50, priceCents: 500 });
}

main().catch((error) => { console.error(error); process.exitCode = 1; });

Authentication

Set LEDGER_API_KEY in a trusted server environment. The key authorizes access to your organization, so do not include it in client code.

import ledger from "integrateledger";

const client = new ledger({ apiKey: process.env.LEDGER_API_KEY ?? "" });
const feature = await client.createFeature({ id: "api_call", name: "API call", creditCost: 1 });
console.log(feature.item.id);

Available Resources and Operations

Ledger SDK

Standalone functions

All the methods listed above are available as standalone functions. They can reduce bundle size in trusted server or serverless deployments. They use the same secret organization API key as the SDK class.

To read more about standalone functions, check FUNCTIONS.md.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm integrateledger

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229