
Security News
gem.coop Tests Dependency Cooldowns as Package Ecosystems Move to Slow Down Attacks
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.
@x402tools/client
Advanced tools
Official Stakefy JavaScript/TypeScript client for usage-based billing
Official JavaScript/TypeScript SDK for Stakefy - Usage-based billing infrastructure.
npm install @stakefy/client
const { StakefyClient } = require('@stakefy/client');
const stakefy = new StakefyClient('sk_pro_xxxxx');
// Create an envelope
const envelope = await stakefy.createEnvelope({
name: 'API Calls - November',
timeWindow: 'MONTHLY',
capacity: 10000,
currency: 'USD',
ownerAccountId: 'org_123'
});
// Record usage
const result = await stakefy.recordUsage({
envelopeId: envelope.id,
amount: 5,
identity: 'user@company.com',
identityType: 'EMAIL'
});
console.log(`Remaining: ${result.remaining}`);
new StakefyClient(apiKey, baseURL?)Creates a new Stakefy client.
apiKey (string, required) - Your API key from the dashboardbaseURL (string, optional) - Custom API URL (defaults to production)createEnvelope(data)Create a new envelope for tracking usage.
await stakefy.createEnvelope({
name: string,
timeWindow: 'HOURLY' | 'DAILY' | 'WEEKLY' | 'MONTHLY',
capacity: number,
currency: string,
ownerAccountId: string
});
getEnvelope(id)Get envelope details.
const envelope = await stakefy.getEnvelope('envelope_id');
recordUsage(data)Record usage against an envelope.
await stakefy.recordUsage({
envelopeId: string,
amount: number,
identity: string,
identityType: string,
metadata?: object
});
Full TypeScript support included:
import { StakefyClient } from '@stakefy/client';
const stakefy = new StakefyClient('sk_pro_xxxxx');
// Fully typed!
MIT
FAQs
Official Stakefy JavaScript/TypeScript client for usage-based billing
We found that @x402tools/client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.