npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@pipedream.in/cloud-compute-sdk

v1.0.2

Published

Official SDK for Pipedream Cloud Compute Platform

Readme

Pipedream Cloud Compute SDK

Official TypeScript/JavaScript SDK for interacting with the Pipedream Cloud Compute Platform.

https://pipedream.in

Installation

npm i @pipedream.in/cloud-compute-sdk

Quick Start

import { CloudComputeSDK } from '@pipedream/cloud-compute-sdk'

// Initialize the SDK
const sdk = new CloudComputeSDK({
  baseUrl: 'https://iblofngyjjxyafjayxkt.supabase.co/functions/v1',
  apiKey: 'your-api-key-here'
})

// List available cloud providers
const providers = await sdk.providers.list()
console.log('Available providers:', providers.data)

// Get inventory for specific provider
const inventory = await sdk.inventory.getByProvider('aws', {
  region_code: 'us-east-1',
  min_vcpu: 4,
  max_price_usd_hr: 2.0
})

// Create a deployment
const deployment = await sdk.deployments.create({
  cloud_inventory_id: 'your-inventory-id',
  rental_duration_hours: 24,
  ssh_public_key: 'ssh-rsa AAAAB3...'
})

API Reference

Authentication

Get your API key from the Pipedream Dashboard.

Providers

// List all cloud providers
const providers = await sdk.providers.list()

// Get regions for a provider
const regions = await sdk.providers.getRegions('provider-id')

// Get templates for a provider  
const templates = await sdk.providers.getTemplates('provider-id')

Inventory

// List all inventory with filters
const inventory = await sdk.inventory.list({
  provider_id: 'aws-provider-id',
  min_vcpu: 4,
  max_price_usd_hr: 1.0,
  limit: 20
})

// Get inventory by provider name
const awsInventory = await sdk.inventory.getByProvider('aws', {
  region_code: 'us-east-1',
  instance_type: 'm5.large'
})

// Get specific inventory item
const item = await sdk.inventory.get('inventory-id')

Deployments

// Create deployment
const deployment = await sdk.deployments.create({
  cloud_inventory_id: 'inventory-id',
  rental_duration_hours: 24,
  ssh_public_key: 'optional-ssh-key',
  tags: { project: 'my-project' }
})

// List deployments
const deployments = await sdk.deployments.list({
  status: 'active',
  limit: 10
})

// Get specific deployment
const deployment = await sdk.deployments.get('deployment-id')

Usage Analytics

// Get usage logs
const logs = await sdk.usage.getLogs({
  start_date: '2025-01-01T00:00:00Z',
  end_date: '2025-01-31T23:59:59Z',
  limit: 100
})

// Get usage summary
const summary = await sdk.usage.getSummary({
  start_date: '2025-01-01T00:00:00Z', 
  end_date: '2025-01-31T23:59:59Z'
})

// Get billing information
const billing = await sdk.usage.getBilling({
  start_date: '2025-01-01T00:00:00Z',
  end_date: '2025-01-31T23:59:59Z'
})

Provider Structure

Available Providers

  • AWS: EC2 instances (t3.micro, m5.large, g4dn.xlarge, etc.)
  • Vultr: VPS instances (vc2-1c-1gb, vcg-g1-1c-3gb, etc.)
  • VAST AI: GPU instances (RTX 4090, A100, H100, etc.)

Inventory Filtering

Filter machines by:

  • Provider and region
  • CPU cores, memory, GPU specifications
  • Price range
  • Availability type (instant, on-demand, spot)

Error Handling

try {
  const deployment = await sdk.deployments.create({
    cloud_inventory_id: 'invalid-id'
  })
} catch (error) {
  console.error('Deployment failed:', error.message)
  // Handle specific error types
  if (error.message.includes('Insufficient wallet balance')) {
    // Redirect to wallet top-up
  }
}

TypeScript Support

The SDK is written in TypeScript and includes full type definitions for all methods and responses.

License

MIT

Support