
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
@open-social-protocol/osp-client-core
Advanced tools
osp-client-js is a osp clent js sdk.
Use the package manager [pnpm] or [npm] to install osp-client-js.
pnpm add @open-social-protocol/osp-client
or
npm i @open-social-protocol/osp-client
import { OspClient, Environment } from "@open-social-protocol/osp-client";
import { ethers } from "ethers";
const env: Environment = Environment.dev;
const client = await OspClient.create({
env,
storage: localStorage,
app_id: "<APP_ID>",
guest_id_marketing: "<GUEST_ID_MARKETING>",
});
const provider = new ethers.providers.Web3Provider(window.ethereum);
await provider.send("eth_requestAccounts", []);
await client.authentication.login(provider.getSigner());
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.