
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@peac/adapter-x402-pinata
Advanced tools
Pinata private IPFS objects event normalizer for PEAC protocol
x402+Pinata private IPFS objects adapter for PEAC protocol.
Maps Pinata private object access events to PaymentEvidence using the PEIP-OBJ/private@1 subject profile.
pnpm add @peac/adapter-x402-pinata
import { fromAccessEvent, fromWebhookEvent } from '@peac/adapter-x402-pinata';
// Process an access event with CIDv0
const result = fromAccessEvent({
accessId: 'acc_abc123',
cid: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG',
amount: 250, // in minor units (cents)
currency: 'USD',
visibility: 'private',
contentType: 'application/json',
contentSize: 1024,
});
if (result.ok) {
console.log(result.value); // PaymentEvidence
// evidence includes: store: 'ipfs', object_id: <CID>, profile: 'PEIP-OBJ/private@1'
} else {
console.error(result.error);
}
// Process an access event with CIDv1
const resultV1 = fromAccessEvent({
accessId: 'acc_xyz789',
cid: 'bafybeihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku',
amount: 100,
currency: 'USD',
ttl: 3600, // 1 hour
expiresAt: '2025-12-31T23:59:59Z',
});
// Process a webhook event
const webhookResult = fromWebhookEvent({
type: 'access.granted',
data: {
accessId: 'acc_def456',
cid: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG',
amount: 500,
currency: 'USD',
},
});
import { fromAccessEvent, type PinataConfig } from '@peac/adapter-x402-pinata';
const config: PinataConfig = {
defaultEnv: 'test',
defaultVisibility: 'private',
allowedGateways: ['my-gateway.pinata.cloud'],
};
const result = fromAccessEvent(event, config);
Qm)bafy or other multibase prefixes)See peacprotocol.org for full documentation.
Apache-2.0
PEAC Protocol is an open source project stewarded by Originary and community contributors.
FAQs
Pinata private IPFS objects event normalizer for PEAC protocol
The npm package @peac/adapter-x402-pinata receives a total of 2 weekly downloads. As such, @peac/adapter-x402-pinata popularity was classified as not popular.
We found that @peac/adapter-x402-pinata 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.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.