
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@raystack/stencil
Advanced tools
Stencil js client package provides a store to lookup protobuf descriptors and options to keep the protobuf descriptors upto date.
Stencil nodejs client package provides a store to lookup protobuf descriptors and options to keep the protobuf descriptors upto date.
It has following features
npm install --save @raystack/stencil
const { Stencil } = require('stencil');
const url = 'http://url/to/proto/descriptorset/file';
const client = await Stencil.getInstance(url, {
shouldRefresh: true,
refreshInterval: 43200 // 12 hrs
});
const { MultiURLStencil } = require('stencil');
const url1 = 'http://url/to/proto/descriptorset/file';
const url2 = 'http://url/to/proto/descriptorset/file2';
const client = await MultiURLStencil.getInstance([url1, url2], {
shouldRefresh: true,
refreshInterval: 43200 // 12 hrs
});
const { Stencil } = require('stencil');
const url = 'http://url/to/proto/descriptorset/file';
const client = await Stencil.getInstance(url, {
shouldRefresh: false
});
const type = client.getType('google.protobuf.DescriptorProto');
Let's say we want to encode message for below proto message defniniton
syntax = "proto3";
package test;
message One {
int64 field_one = 1;
}
const { Stencil } = require('stencil');
const url = 'http://url/to/proto/descriptorset/file';
const client = await Stencil.getInstance(url, {
shouldRefresh: false
});
const type = client.getType('test.One');
// Encode
const msg = { field_one: 10 };
const errs = type.verify(msg);
if errs {
throw new Error(`unable to serialize message: ${errs}`);
}
const encodedBuffer = type.encode(msg).finish();
// Decode
const decodedType = type.decode(encodedBuffer);
console.log(decodedType.toObject())
Clone the repo
$ git clone https://github.com/raystack/stencil
$ cd stencil/clients/js
Install dependencies
$ npm install
Run the tests. All of the tests are written with jest.
$ npm test
We use SemVer for versioning. For the versions available, see the tags.
Stencil node client is released under the Apache License 2.0. See LICENSE
FAQs
Stencil js client package provides a store to lookup protobuf descriptors and options to keep the protobuf descriptors upto date.
We found that @raystack/stencil demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.