npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@idos-network/client

v1.2.0

Published

idOS Client JavaScript SDK for browser environments

Readme

idOS Client JavaScript SDK

NPM License

⚖️ Legalities

By downloading, installing, or implementing any of the idOS’ SDKs, you acknowledge that you have read and understood idOS’ Privacy Policy and Transparency Document.

Installation

Get our NPM package and its dependencies with pnpm or the equivalent of your package manager of choice:

pnpm add @idos-network/client

Quick start

import {
  createIDOSClient,
  idOSClientLoggedIn,
  type idOSClientWithUserSigner,
} from "@idos-network/client";

const idOSClientWithoutSigner = await createIDOSClient({
  nodeUrl: "https://nodes.idos.network",
  enclaveOptions: {
    container: "#idosContainer",
  },
}).createClient();

// Signer can be JsonRpcSigner, or check below for supported chains
const idOSClientWithSigner = await idOSClientWithoutSigner.withUserSigner(signer);

// Check if user is already in idOS onboarded
const hasProfile = await idOSClientWithSigner.hasProfile();

// If yes we can create a new session
const loggedInClient = await idOSClientWithSigner.logIn();

// User id and public encryption key
const profile = loggedInClient.user;

// Now we can filer over users credentials (no access to them)
const credentials = await loggedInClient.filterCredentials({
  credentialLevelOrHigherFilter: {
    userLevel: "basic",
    requiredAddons: ["email", "liveness"],
  },
});

// If we found a credentials which we can use, we will ask user for AccessGrant
// which we later can use in our consumer to get the users data
const ag = await loggedInClient.requestAccessGrant(credentials[0].id, {
  consumerAuthPublicKey: "CONSUMER_PUBLIC_KEY",
  consumerEncryptionPublicKey: "CONSUMER_ENC_PUBLIC_KEY",
  lockedUntil: lockedUntil: Math.floor(Date.now() / 1000) + 90 * 24 * 60 * 60, // 3 months from now
});

// Also when the user is logged in, we can ask him to add another wallet
// wallet type is required.
await loggedInClient.addWallet({
  id: "unique-wallet-id",
  address: "0x...", // Wallet address
  public_key: "0x...", // Public key in hex format
  message: "Sign this message to prove you own this wallet",
  signature: "0x...", // Signature of the message
  wallet_type: "EVM", // Required: "EVM", "NEAR", "XRPL"...
});

Supported Wallet Types

  • "evm" - Ethereum Virtual Machine compatible wallets (Ethereum, Polygon, etc.)
  • "xrpl" - XRP Ledger wallets
  • "near" - NEAR Protocol wallets
  • "stellar" - Stellar network wallets

Documentation

For complete documentation, examples, and implementation guides:

Key Features

  • Profile & Session Lifecycle - Check profile existence, attach a wallet signer, and log users in/out
  • Enclave-Backed Encryption - Generate user encryption profiles and decrypt credential content safely via the enclave
  • Credential Access & Filtering - Fetch credentials, read decrypted content, and filter by issuer, level, and field rules
  • Credential Sharing Flows - Request DAG/DWG messages, create access grants, and share credentials with controlled lock times
  • Wallet Management - Add, list, and remove wallets (single or batch), including MPC-aware wallet synchronization
  • Multi-Chain Wallet Support - Works with EVM, NEAR, XRPL, and Stellar wallet types

Support

Please follow the process outlined here: https://github.com/idos-network/.github/blob/main/profile/README.md


Developing the SDK locally

Run:

pnpm dev

This will start the compiler in watch mode that will rebuild every time any of the source files are changed.

You can also create a production build by running the following command in the root folder of the SDK package:

pnpm build