Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xkey-io/sdk-server
JavaScript Server SDK
A SDK client with server-specific abstractions for interacting with ZeroXKey API. Also includes @0xkey-io/http, a lower-level, fully typed HTTP client.
ZeroXKey API documentation lives here: https://docs.0xkey.com.
$ npm install @0xkey-io/sdk-server
const { ZeroXKey } = require("@0xkey-io/sdk-server");
// This config contains parameters including base URLs, API credentials, and org ID
const zeroXKeyConfig = JSON.parse(fs.readFileSync("./0xkey.json", "utf8"));
// Use the config to instantiate a ZeroXKey Client
const zeroXKeyServerClient = new ZeroXKey(zeroXKeyConfig);
// You're all set to create a server!
const zeroXKeyProxyHandler = zeroXKeyServerClient.expressProxyHandler({});
app.post("/apiProxy", zeroXKeyProxyHandler);
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});
@0xkey-io/sdk-server provides ZeroXKey, which offers wrappers around commonly used ZeroXKey API setups. This enables you to easily stand up a minimal backend to proxy end-users' requests to ZeroXKey. You can also use this to call on the ZeroXKey API directly from a server setting.
// TODO: // - typescript-ify example // - include nextjs server example
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
bufferEnvironment{
"local_name": "buffer",
"alias": false,
"peer_metadata": null
} | ^6.0.3 | runtime |
cross-fetchEnvironment{
"local_name": "cross-fetch",
"alias": false,
"peer_metadata": null
} | ^3.1.5 | runtime |
@0xkey-io/httpEnvironment{
"local_name": "@0xkey-io/http",
"alias": false,
"peer_metadata": null
} | 0.1.3 | runtime |
@0xkey-io/sdk-typesEnvironment{
"local_name": "@0xkey-io/sdk-types",
"alias": false,
"peer_metadata": null
} | 0.1.1 | runtime |
@0xkey-io/wallet-stamperEnvironment{
"local_name": "@0xkey-io/wallet-stamper",
"alias": false,
"peer_metadata": null
} | 0.1.3 | runtime |
@0xkey-io/api-key-stamperEnvironment{
"local_name": "@0xkey-io/api-key-stamper",
"alias": false,
"peer_metadata": null
} | 0.1.3 | runtime |
globEnvironment{
"local_name": "glob",
"alias": false,
"peer_metadata": null
} | ^8.0.3 | development |
@types/expressEnvironment{
"local_name": "@types/express",
"alias": false,
"peer_metadata": null
} | ^4.17.21 | development |
Source distribution
{
"shasum": "5ed7ab7e409c13f02f7e4260cee666d8fe8f843a",
"tarball": "https://registry.npmjs.org/@0xkey-io/sdk-server/-/sdk-server-0.1.3.tgz",
"fileCount": 56,
"integrity": "sha512-IPcebfWB07Cz4x3ElgWXfr8Bk3g5Obw0h5VZiRLXYKEBS1ln6v0hKZEPiB3BOaeRWPYvQxmhbokz7s23mlgEGw==",
"signatures": [
{
"sig": "MEQCIAMVFYxDGQFy8+M8ayIA/cBggfGLjuPX7yOz4Aoc4Z8xAiAQKiJ1NZLNlR0AjTPCa239H6Gglav/0QbJ6NVJaT1aLg==",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 1293452
}Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:d87bcf2a702da7a3372a3c646b29047b2fe99b831fea7bd58145ab698e14ac7c