
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
A lightweight version of Oak, a write-only database with a publish-subscribe model
oak-lite
Oak-Lite is a lightweight version of Oak, a write-only database with a publish-subscribe model.
Install the oak-lite
package into your project with npm.
npm install oak-lite --save
Use the oak-lite
module in your project.
import Oak from 'oak-lite';
// Configure the database (see the configuration options)
let database = Oak.configure({
dataDirectory: '/var/lib/myapp/oak'
});
// Select the 'counter' rack
let rack = database.selectRack('counter');
// Subscribe to the rack
let subscription = rack.subscribe(barrel => {
// Print each barrel to the console
console.log(barrel);
});
// Publish 3 barrels to the rack
rack.publish(1);
rack.publish(2);
rack.publish(3);
// Unsubscribe from the rack after 10 seconds
setTimeout(() => {
subscription.unsubscribe();
}, 10 * 1000);
The following parameters can be defined when configuring an Oak-Lite database:
Parameter | Description | Required | Default |
---|---|---|---|
dataDirectory | The directory used by this database to store racks | Yes | none |
The public interface for oak-lite
is defined in the API Guide.
Pull requests are welcome! To get started, see the Contributing Guide.
FAQs
A lightweight version of Oak, a write-only database with a publish-subscribe model
We found that oak-lite demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.