
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@spheron/compute
Advanced tools
Typescript library for deploying compute instances to Decentralised Compute via Spheron
This package provides support for working with Spheron Compute organization.
The package exports SpheronClient
class, which includes methods for working with clusters, marketplace apps, cluster instances and their configurations. The constructor of SpheronClient
takes in one parameter token
. Check the Access Token section for information on how to create a token.
import SpheronClient from "@spheron/compute";
...
const client = new SpheronClient({ token });
await client.instance.create(
configuration: {
image: dockerImage,
tag: dockerImageTag,
ports: [{ containerPort: containerPort, exposedPort: exposedPort }],
environmentVariables: [{ key:"key", value: "value"}],
secretEnvironmentVariables: [{ key:"key", value: "secretValue"}],
commands: [],
args: [],
region: deployRegion,
machineImageId: computeMachineId,
},
healthCheckConfig: {
path: healthCheckPath,
port: healthCheckPort,
},
}
);
For more information about the Compute methods, check out the DOCS
To create the token
that is used with the SpheronClient
, follow the instructions in the DOCS. When you are creating the tokens, please choose compute type in the dashboard.
You can learn more about Spheron and Compute SDK here:
FAQs
Typescript library for deploying compute instances to Decentralised Compute via Spheron
The npm package @spheron/compute receives a total of 0 weekly downloads. As such, @spheron/compute popularity was classified as not popular.
We found that @spheron/compute demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.