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

logid-oci-sdk

v1.7.1

Published

![npm version](https://img.shields.io/npm/v/oci-js-sdk) ![license](https://img.shields.io/npm/l/oci-js-sdk) ![build](https://img.shields.io/github/actions/workflow/status/mehdi-torabiv/OCI-JS-SDK/ci.yml?branch=main)

Downloads

7

Readme

OCI JS SDK

npm version license build

OCI JS SDK is a JavaScript/TypeScript SDK designed for seamless interaction with the OCI platform. It enables developers to manage attestations, permissions, and encrypted on-chain data efficiently, facilitating integration with various blockchain protocols and services.

NPM Package

Features

  • Retrieve user attestations by wallet address
  • Manage attestations with custom permissions
  • Connect to on-chain services for verification and decryption
  • Support for multiple providers (e.g., Discord, Google)

Installation

Install the OCI JS SDK using your preferred package manager:

# Using pnpm
pnpm add oci-js-sdk

# Using npm
npm install oci-js-sdk

# Using yarn
yarn add oci-js-sdk

Usage

Initialization

Begin by importing and configuring the OciClient with your network details, including chainId, appPrivateKey, and an optional rpcUrl:

import OciClient from "oci-js-sdk";

const ociClient = new OciClient({
  chainId: 11155111, // Replace with your chain ID
  appPrivateKey: "0xYOUR_PRIVATE_KEY", // Optional
  rpcUrl: "https://your-rpc-url", // Optional
});

Fetch User Profiles

To fetch user profiles, provide a provider type (e.g., discord, google, address) and the corresponding account ID. This method retrieves decrypted data for each attestation where permissions allow:

async function fetchUserProfiles() {
  try {
    const userProfiles = await ociClient.getUserProfiles(
      "discord",
      "your-discord-id"
    );
  } catch (error) {
    console.error("Error fetching user profiles:", error);
  }
}

fetchUserProfiles();

Fetch Attestations by Wallet Address

Retrieve attestations for a given wallet address without decrypting the data. This method returns the attestation ID and provider:

async function fetchAttestations() {
  try {
    const attestations = await ociClient.getUserProfileWithAppPermissions(
      "0xYourWalletAddress",
      "0xDeveloperPublicAddress"
    );
  } catch (error) {
    console.error("Error fetching attestations:", error);
  }
}

fetchAttestations();

API Documentation

Generate full API documentation using typedoc:

pnpm run doc

The documentation will be generated in the docs folder.

Scripts

  • build: Compiles the TypeScript code into JavaScript.
  • start: Runs the compiled SDK.
  • dev: Runs the SDK in development mode with live reload.
  • test: Executes tests using Jest.
  • doc: Generates API documentation with Typedoc.
  • lint: Runs Biome (ESLint alternative) checks.
  • lint:fix: Automatically fixes lint issues.
  • format: Formats the code using Biome.
  • prepare: Sets up Git hooks using Husky.

Testing

To run tests, use the following command:

pnpm run test

Contributing

Contributions are welcome! To get started:

  1. Fork the repository.
  2. Clone your forked repository.
  3. Make your changes.
  4. Submit a pull request.

License

This project is licensed under the GNU Affero General Public License (AGPL) v3. See the LICENSE file for more details.