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

@sorowill/sdk

v0.1.1

Published

TypeScript SDK for SoroWill, a trustless on-chain inheritance protocol on Stellar Soroban

Readme

@sorowill/sdk

TypeScript SDK for SoroWill — trustless on-chain inheritance on Stellar Soroban

npm TypeScript License: MIT

Installation

npm install @sorowill/sdk

Quick Start

import { SoroWillClient, connectWallet, toStroops } from '@sorowill/sdk';

// Connect the user's Freighter wallet.
const wallet = await connectWallet();

// Point the client at the deployed SoroWill contract on testnet.
const client = new SoroWillClient({
  network: 'testnet',
  contractId: 'CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE',
});

// Create a will locking 1,000 USDC, split 60/40 between two beneficiaries,
// with a 90-day check-in period and a 7-day grace period.
const { willId, txHash } = await client.createWill({
  token: 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA', // testnet USDC SAC
  amount: toStroops('1000').toString(),
  beneficiaries: [
    { address: 'GBEN...AAAA', percentage: 60 },
    { address: 'GBEN...BBBB', percentage: 40 },
  ],
  checkinPeriodDays: 90,
  gracePeriodDays: 7,
  guardians: [],
});

console.log(`Created will #${willId} in tx ${txHash}`);

// Check in periodically to reset the countdown and prove you're still active.
const { nextDeadline } = await client.checkIn(willId);
console.log(`Next check-in due by ${nextDeadline.toISOString()}`);

// Read a will's full state at any time — no wallet required.
const will = await client.getWill(willId);
console.log(will.status, will.balance, will.beneficiaries);

API Reference

| Method | Description | Parameters | Returns | |---|---|---|---| | createWill | Locks a token balance and creates a new will | CreateWillParams | Promise<{ willId, txHash }> | | checkIn | Resets the check-in countdown | willId | Promise<{ txHash, nextDeadline }> | | triggerWill | Starts the grace period after a missed check-in | willId | Promise<{ txHash }> | | emergencyCheckIn | Cancels an in-progress trigger during the grace period | willId | Promise<{ txHash, nextDeadline }> | | releaseInheritance | Distributes the balance to beneficiaries after the grace period expires | willId | Promise<{ txHash }> | | cancelWill | Withdraws the full balance and closes the will | willId | Promise<{ txHash, refundAmount }> | | updateBeneficiaries | Replaces the beneficiary list before the will is triggered | UpdateBeneficiariesParams | Promise<{ txHash }> | | topUp | Adds more of the token to an existing will | willId, amount | Promise<{ txHash }> | | getWill | Reads the full state of a will (no wallet required) | willId | Promise<Will> | | getWillsByOwner | Lists every will owned by an address (no wallet required) | owner | Promise<Will[]> | | getWillsByBeneficiary | Lists every will an address is named in (no wallet required) | beneficiary | Promise<Will[]> | | guardianTrigger | Casts a guardian vote; 2 of 3 forces an early release | willId | Promise<{ txHash }> |

Utilities

| Function | Description | |---|---| | formatUSDC(stroops) | Formats base units as a human-readable decimal string, e.g. "1,234.50" | | toStroops(usdc) | Parses a decimal USDC string into base units as a bigint | | getTimeUntilCheckin(will) | Seconds until the next check-in deadline (negative if overdue) | | isCheckinDue(will) | Whether the check-in deadline has already passed | | calculateShares(balance, beneficiaries) | Splits a balance across beneficiaries, mirroring on-chain rounding | | formatDeadline(date) | Formats a Date as a human-readable string | | validateBeneficiaries(beneficiaries) | Checks that percentages are well-formed and sum to 100 |

Wallet helpers

isFreighterInstalled(), connectWallet(), getPublicKey(), and signTransaction() wrap the Freighter browser extension API used internally by SoroWillClient for all state-changing calls.

Local Setup

git clone https://github.com/SoroWill/sorowill-sdk.git
cd sorowill-sdk
npm install
npm run typecheck
npm test
npm run build

Contributing via Drips Wave

This repo participates in the Stellar Wave Program on Drips. Maintainer-tagged issues carry Point values, and contributors who resolve them during an active Wave earn a proportional share of that Wave's reward pool. See CONTRIBUTING.md for the contribution workflow, and https://drips.network/wave for how Wave itself works.