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

@entros/pulse-sdk

v4.10.2

Published

Entros client SDK for behavioral capture, commitments, re-verification proofs, and devnet submission

Readme

@entros/pulse-sdk

npm version npm downloads

Client SDK for Entros capture, feature extraction, fingerprinting, proof generation, and Solana submission.

The SDK derives 308 features from phrase audio, motion, and touch. It generates a 256-bit SimHash fingerprint and Poseidon commitment. Re-verification also generates a Groth16 proof.

Raw motion and full-resolution touch streams stay on device. Projection 2 discards its raw compatibility touch after completion. Phrase audio leaves transiently for private validation.

Validation also receives the feature summary, F0 contour, acceleration magnitude, wallet, client signals, curve outline, timing, and commitment fields.

Projection 2 sends projection 1 compatibility features only for mint, rebaseline, and reset. It never sends raw compatibility touch.

Each projection 2 validation request includes authorization bound to the challenge nonce, request digest, projection, and connected wallet.

The SDK stores the fingerprint, salt, commitment, and timestamp as a baseline. Wallet flows can store an encrypted baseline blob on-chain.

A host-approved fallback can store the local baseline without encryption. Integrators must treat that option as a lower-assurance recovery mode.

Looking for a drop-in? Most integrators want @entros/verify — a popup-pattern React component that wraps this SDK and ships verification in five lines of JSX. Use this package directly when you need to own the verification UX (custom capture canvas, branded loading states, mobile-native).

Install

npm install @entros/pulse-sdk

Usage

Wallet-connected (primary)

The user pays the configured SOL fee and signs the verification transaction. Re-verification uses one transaction.

Baseline-key derivation and best-effort SAS issuance can require separate message signatures.

First verification requires a validator-signed receipt bound to the new commitment. Re-verification requires the continuity proof.

import { PulseSDK } from '@entros/pulse-sdk';

const pulse = new PulseSDK({ cluster: 'devnet' });
const result = await pulse.verify(touchElement, walletAdapter, connection);

if (result.success) {
  console.log('Verified:', result.txSignature);
}

Read evidence for an application policy

readIntegratorEvidence reads confirmed devnet transaction and account observations through your configured RPC connection. It checks wallet binding, program identities, supported account layouts, and the transaction's relationship to current identity state. It also reads the SAS account and reports its status.

Install the chain-reading peers alongside the SDK:

npm install @coral-xyz/anchor@^0.32.1 @solana/web3.js@^1.98.0

These peers are optional package dependencies because capture-only consumers do not need chain access. The evidence reader requires both peers. It does not require a wallet adapter.

import { Connection } from '@solana/web3.js';
import { readIntegratorEvidence } from '@entros/pulse-sdk';

async function readEvidence(
  rpcUrl: string,
  walletPubkey: string,
  transactionSignature: string,
) {
  const connection = new Connection(rpcUrl, 'confirmed');
  return readIntegratorEvidence({
    walletPubkey,
    transactionSignature,
    connection,
    nowSeconds: () => Math.floor(Date.now() / 1000),
  });
}

Supply a clock callback for live reads. A numeric timestamp selects a fixed snapshot comparison and never waits. For an otherwise valid attestation slightly ahead of the live clock, the reader can wait up to three seconds before reading evidence again. It performs at most one clock catch-up. The existing propagation retry remains bounded separately, for at most three complete reads. It never accepts a future timestamp before the supplied clock reaches it. Expiry and all other checks still apply. Late timer wakeups can exceed the waiting budget and still cause rejection.

The result uses status: "available", "invalid", or "unavailable". An available result contains identity and transaction evidence, plus a separate attestation status. A missing or unavailable SAS account does not prevent the reader from returning available identity evidence. Your application decides whether its policy requires an attestation.

Pair the observation with evaluatePolicy from @entros/verify/policy in Verify 0.2.0 or later. The reader does not choose your score floor, freshness requirement, or action authorization. For protected actions, your service must authenticate the wallet's action request and read current evidence before settlement. Use your service's policy and RPC configuration. Do not accept browser-supplied observations as settlement authority.

The evidence reports browser_unattested assurance and unmeasured uniqueness. These fields do not establish sensor provenance or population uniqueness. The reader supports the pinned Entros devnet programs. It does not submit a transaction.

Projection 2 compatibility

The on-chain policy controls projection 2 activation. CLIENT_PROJECTION_VERSION reports client support and does not activate policy.

Projection 2 validation requires the server challenge that selected the phrase and touch curve. Present both challenge artifacts during the same capture.

Pass the deadline returned by fetchChallenge. Do not recalculate it from expiresIn after the request completes.

import { fetchChallenge, PulseSDK } from '@entros/pulse-sdk';

const executorUrl = 'https://api.entros.io/relay';
const pulse = new PulseSDK({ cluster: 'devnet', relayerUrl: executorUrl });
const challenge = await fetchChallenge(
  executorUrl,
  walletAdapter.publicKey.toBase58(),
);

const result = await pulse.verify(touchElement, walletAdapter, connection, {
  validationChallengeNonce: challenge.nonce,
  validationChallengeExpiresAtMs: challenge.expiresAtMs,
});

For staged capture, call session.bindValidationChallenge(challenge.nonce, challenge.expiresAtMs) before complete().

The touch element defines the projection 2 coordinate surface by default. Use startTouch({ eventTarget, coordinateSurface }) when those elements differ.

Walletless (liveness-check tier)

For liveness checking without wallet onboarding. The integrator can fund verification through the relayer API. This path submits protocol transactions through the relayer. It does not issue SAS attestations.

import { PulseSDK } from '@entros/pulse-sdk';

const pulse = new PulseSDK({
  cluster: 'devnet',
  relayerUrl: 'https://api.entros.io/relay',
  wasmUrl: '/circuits/entros_hamming.wasm',
  zkeyUrl: '/circuits/entros_hamming_final.zkey',
});

const result = await pulse.verify(touchElement);

Pipeline

  1. Capture: Audio (16kHz), IMU (accelerometer + gyroscope), touch (pressure + area) — event-driven, caller controls duration
  2. Extract: 170 audio, 81 motion, and 57 touch features
  3. Validate: Feature summaries sent to Entros validation server for server-side analysis
  4. Hash: SimHash → 256-bit behavioral fingerprint → Poseidon commitment
  5. Prove: Re-verification proves Poseidon openings and min_distance <= distance < threshold
  6. Submit: One wallet transaction or one relayer request

Development

npm install
npm test          # Vitest suite with a public procedural-attack baseline
npm run build     # ESM + CJS output
npm run typecheck # TypeScript strict mode

Migration history

Originally published as @iam-protocol/pulse-sdk (deprecated). Renamed during the IAM → Entros Protocol rebrand on 2026-04-25; full commit history preserved on the current repository at github.com/entros-protocol/pulse-sdk.

License

MIT