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

@hyr0-xyz/client-js

v1.0.4

Published

Auto-generated TypeScript client for Hyro Protocol programs. This package contains Codama-generated artifacts exported as an npm module.

Readme

@hyr0-xyz/client-js

Auto-generated TypeScript client for Hyro Protocol programs. This package contains Codama-generated artifacts exported as an npm module.

Packages

This repository publishes two separate packages:

  • @hyr0-xyz/client-js - For mainnet/devnet deployment with production program addresses
  • @hyr0-xyz/client-js-local - For local development with local program addresses

Installation

For production/mainnet:

npm install @hyr0-xyz/client-js @solana/kit
# or
yarn add @hyr0-xyz/client-js @solana/kit
# or
pnpm add @hyr0-xyz/client-js @solana/kit

For local development:

npm install @hyr0-xyz/client-js-local @solana/kit
# or
yarn add @hyr0-xyz/client-js-local @solana/kit
# or
pnpm add @hyr0-xyz/client-js-local @solana/kit

What's Inside

This package contains auto-generated code for:

  • Instructions: Functions to create program instructions
  • Accounts: Type definitions and fetch helpers for program accounts
  • Types: All custom types used by the programs
  • Errors: Program error definitions
  • PDAs: Helper functions for deriving Program Derived Addresses

Available Programs

The package exports clients for all Hyro Protocol programs:

  • hyroProtocol - Core vault and transaction management
  • policyOwners - Owner-based policy validation
  • policyMultisig - Multisig policy validation
  • policyManagerAccess - Manager access control policy
  • policyLimitTransfer - Transfer limit policy
  • policyChallenges - Trading challenge policy
  • policyAllowAny - Permissive policy
  • policyDenyAll - Restrictive policy
  • feeCollection - Fee collection program
  • feeCollectionAllInOne - All-in-one fee collection
  • feeCollectionFractions - Fractional fee collection
  • feeCollectionTimeBased - Time-based fee collection
  • dropper - Airdrop management
  • revenueGenerator - Revenue generation

Usage Example

import { hyroProtocol } from '@hyr0-xyz/client-js';
import { createSolanaRpc } from '@solana/kit';

// Get RPC connection
const rpc = createSolanaRpc('https://api.mainnet-beta.solana.com');

// Use generated instruction builders
const instruction = hyroProtocol.getInitializeVaultInstruction({
  // ... instruction parameters
});

// Fetch account data
const vaultAddress = '...';
const vault = await hyroProtocol.fetchVault(rpc, vaultAddress);

Generation

The packages are automatically generated from the parent repository's Anchor programs:

For mainnet/devnet (production):

# From repository root
cd ..
anchor build -- --features mainnet
cd client-js
bun create-codama-client.ts
bun run build

For local development:

# From repository root
cd ..
anchor build
cd client-js
bun create-codama-client.ts
bun run build

The generation process:

  1. Builds all Anchor programs at repository root to generate IDL files (with or without --features mainnet)
  2. Reads IDL files from ../target/idl/
  3. Uses Codama to generate TypeScript clients
  4. Outputs generated code to src/

Publishing

Both packages are automatically published to NPM via GitHub Actions (at repository root .github/workflows/publish-client-js.yml) when changes are pushed to the main branch:

  1. Mainnet job: Builds Anchor programs with mainnet feature → Generates client → Publishes @hyr0-xyz/client-js
  2. Local job: Builds Anchor programs for localnet → Generates client → Publishes @hyr0-xyz/client-js-local

The workflow is triggered on changes to:

  • programs/**
  • client-js/**
  • Anchor.toml
  • Cargo.toml

Development

# Install dependencies
bun install

# Build package only (assumes IDL already generated)
bun run build

# Watch mode for development
bun run dev

Note: For generation, use the commands from the "Generation" section above, as they require building the entire Anchor workspace from the repository root.

License

ISC