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

@primuslabs/por-client-sdk

v0.1.4

Published

Primus PoR client sdk

Readme

PoR Client SDK

Overview

The PoR Client SDK provides a client for interacting with zkTLS and zkVM, supporting authentication, program execution, and optional blockchain integration.

Build

Install dependencies and build the project:

npm install
npm run build

Getting Started

  1. Copy .config.example.yml to .config.yml and configure your environment variables (see Configuration).

  2. Ensure required fields are set:

    • app.identity.token and app.identity.projectId for authentication
    • app.identity.programId for program execution
  3. Run an example: (Need configure your Binance API Key first)

npx tsx example/binance.ts

Configuration

Structure Overview

app:               # Core application configuration
  identity:        # Application identity and authorization info
  runtime:         # Runtime environment configuration
  services:        # External service endpoints
  blockchain:      # Blockchain connection and signer info

exchanges:         # Exchange account configurations
  binance:         # Binance exchange accounts
  aster:           # Aster exchange accounts

Application Configuration (app)

1. Identity (app.identity)

Contains application authorization and identification.

| Field | Type | Description | Example | | --------- | ------ | ------------------------------------------------ | ----------------- | | token | string | Authentication token issued for this application | "my-auth-token" | | projectId | string | Unique project identifier | "project-123" | | programId | string | Unique program identifier | "program-abc" |

2. Runtime (app.runtime)

Specifies the runtime environment and logging.

| Field | Type | Default | Description | Example | | ---------- | ------- | -------------- | ------------------------------------------------------ | -------------- | | version | string | - | Application version in semantic version format (x.y.z) | "1.0.0" | | env | string | "production" | Runtime environment (development or production) | "production" | | logVerbose | integer | 0 | Log verbosity (0 = off, higher = more detail) | 3 |

3. Services (app.services)

External service endpoints used by the application.

zkVM Service (app.services.zkvm)

| Field | Type | Description | Example | | ----- | ------ | ------------------------- | ---------------------------- | | url | string | zkVM service endpoint URL | "https://zkvm.example.com" |

Data Service (app.services.data)

| Field | Type | Description | Example | | ----- | ------ | ------------------------- | ---------------------------- | | url | string | Data service endpoint URL | "https://data.example.com" |

4. Blockchain (app.blockchain)

Blockchain connection and signer configuration.

| Field | Type | Default | Description | Example | | ------- | ------ | -------- | ---------------------------------------------------------------------------- | --------------------------- | | network | string | "base" | Target blockchain network (base or base-sepolia) | "base-sepolia" | | rpcUrl | string | - | Optional custom RPC URL. If not set, default RPC for the network is used | "https://rpc.example.com" | | signer | object | - | Transaction signer info (required if subscriptionType is PLAN_SELF_PAID) | - |

Signer (app.blockchain.signer)

| Field | Type | Description | Example | | ---------- | ------ | ------------------------------------------- | ------------------ | | privateKey | string | Private key to sign blockchain transactions | "0xabcdef123..." |


Exchange Accounts (exchanges)

Supports multiple exchange accounts. At least one exchange is required. Now only support Binance and Aster.

Fields of exchange

| Field | Type | Description | Example | | ----------- | ------- | ---------------------------------------------- | --------------------------- | | apiKey | string | API key used to authenticate with Binance | "binance-key-123" | | apiSecret | string | API secret corresponding to the API key | "binance-secret-abc" | | enabled | boolean | Whether this account is active (default: true) | true | | description | string | Optional description for this account | "My Binance spot account" | | kind | array | Supported Binance account types | ["spot","usds-futures"] |

Data Sources

TODO: Document supported data sources and sample requests.