
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@phala/cloud
Advanced tools
TypeScript SDK for Phala Cloud API.
# Using npm
npm install @phala/cloud
# Using yarn
yarn add @phala/cloud
# Using pnpm
pnpm add @phala/cloud
# Using bun
bun add @phala/cloud
import { createClient } from '@phala/cloud';
// Create client with API key
const client = createClient({
apiKey: 'your-api-key',
// Optional: override base URL
// baseURL: 'https://custom-api.example.com'
});
// Make API requests
const result = await client.get('/kms');
console.log(result);
// Using safe methods that return a SafeResult
const safeResult = await client.safeGet('/kms');
if (safeResult.success) {
console.log('Success:', safeResult.data);
} else {
console.error('Error:', safeResult.error);
}
You can configure the client using environment variables:
PHALA_CLOUD_API_KEY: API key for authenticationPHALA_CLOUD_API_PREFIX: Base URL prefix for the API// Using environment variables (set PHALA_CLOUD_API_KEY)
const client = createClient();
The SDK includes built-in debug logging that can display cURL-like request and response information. To enable it, set the DEBUG environment variable to phala::api-client:
# Enable debug logging
DEBUG=phala::api-client node your-script.js
# Or with bun
DEBUG=phala::api-client bun run your-script.ts
This will print detailed information about each API call in a format similar to cURL:
=== REQUEST ===
> curl -X GET "https://cloud-api.phala.network/api/v1/kms"
-H "X-API-Key: your-api-key"
-H "X-Phala-Version: 2025-05-31"
-H "Content-Type: application/json"
=== RESPONSE [GET /kms] (123ms) ===
< HTTP/1.1 200 OK
< content-type: application/json
< x-response-time: 123
{
"data": [
{
"id": "example-id",
"name": "Example Key"
}
]
}
client.get<T>(request, options?): Promise<T>client.post<T>(request, body?, options?): Promise<T>client.put<T>(request, body?, options?): Promise<T>client.patch<T>(request, body?, options?): Promise<T>client.delete<T>(request, options?): Promise<T>client.safeGet<T>(request, options?): Promise<SafeResult<T>>client.safePost<T>(request, body?, options?): Promise<SafeResult<T>>client.safePut<T>(request, body?, options?): Promise<SafeResult<T>>client.safePatch<T>(request, body?, options?): Promise<SafeResult<T>>client.safeDelete<T>(request, options?): Promise<SafeResult<T>>Apache-2.0
FAQs
TypeScript SDK for Phala Cloud API
The npm package @phala/cloud receives a total of 433 weekly downloads. As such, @phala/cloud popularity was classified as not popular.
We found that @phala/cloud 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
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain