
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
Typescript library for encoding & decoding binary data
Fields store basic data, example:
import { Field } from 'binkv';
const firstname = Field.string("john");
const age = Field.int32(42);
const colors = Field.auto(['red', 'green', 'blue']); // .auto() automatically infers
Structures stores multiple fields, example:
import { Structure, Field } from 'binkv';
const struct = new Structure();
struct.writeField(Field.int32(5013));
struct.writeField(Field.string("hello"));
console.log(struct.data) // holds the binary data
To decode a structure:
import { Structure, Field } from 'binkv';
// we're using the `struct` from the previous example.
const number = struct.readField().toInt32(); // 5013
const stringValue = struct.readField().toString(); // "hello"
Dictionaries are basically key-value stores.
const dict = Dictionary.create({
firstname: 'john',
lastname: 'doe',
age: 42,
friend: {
firstname: 'david',
lastname: 'sharp',
age: 41
}
});
dict.getField('firstname')?.toString(); // "john"
dict.getField('lastname')?.toString(); // "doe"
dict.getField('age')?.toInt32(); // 42
const innerDict = dict.getDict('friend');
innerDict?.getField('firstname')?.toString(); // "david"
innerDict?.getField('lastname')?.toString(); // "sharp"
innerDict?.getField('age')?.toInt32(); // 41
const encoded = dict.getStructure(); // Convert dict to a structure
const decoded = Dictionary.fromStructure(encoded); // Decode structure back into a dict
decoded.getField('firstname')?.toString(); // "john"
decoded.getField('lastname')?.toString(); // "doe"
decoded.getField('age')?.toInt32(); // 42
const decodedInnerDict = decoded.getDict('friend');
decodedInnerDict?.getField('firstname')?.toString(); // "david"
decodedInnerDict?.getField('lastname')?.toString(); // "sharp"
decodedInnerDict?.getField('age')?.toInt32(); // 41
FAQs
> Typescript library for encoding & decoding binary data
We found that binkv 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.