New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@kchat/mls-napi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@kchat/mls-napi

Node.js bindings for KChat MLS SDK using NAPI-RS

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Node.js binding for Rust MLS SDK

This crate provides bindings for the MLS Rust SDK using NAPI-RS.

Prerequisites

  • Install the latest Rust
  • Install Node.js@10+ which fully supported Node-API
  • Install yarn@1.x
  • Install napi

Setup

  • Project Structure Ensure your project has the following structure:
.
├── .cargo
│   └── config.toml
├── src
│   └── lib.rs
├── build.rs
├── Cargo.toml
├── index.d.ts
├── index.js
└── package.toml
  • Cargo.toml: Configures the Rust crate and dependencies.
  • src/lib.rs: Contains the Rust code.
  • index.d.ts: Node.js bindings.
  • Write Rust Code to be called from C API

Decorate a normal rust function with #[napi]:

#[napi]
pub fn sum(a: u32, b: u32) -> u32 {
	a + b
}

NOTE: For more information, visit napi-rs.

  • Build
yarn build

Keywords

napi

FAQs

Package last updated on 22 Dec 2025

Did you know?

Socket

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.

Install

Related posts