
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.