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

psystake

v0.1.0-rc-0

Published

PsyOptions Staking Program

Readme

Program Deployments

| Program | Devnet | Mainnet Beta | | -------------------------------- | ---------------------------------------------- | --------------------------------------------- | | PsyStake | 5LrZkBFgDkFiKEePeT2N9VuKfd2k8Rrad9PG6mKGbCRk | pSystkitWgLkzprdAvraP8DSBiXwee715wiSXGJe8yr |

Introduction

PsyStake is a on-chain program designed to allow the operation of a staking or liquidiy mining program for any SPL Token, with built-in support for cross-program invokations by the PsyFi Euros program to enable a seamless staking process.

Folder Structure

.
├── ...
├── deps                            # Dependencies
|   ├── psyfi-euros                 # PsyFinance European Options Strategies Vault program.
├── programs                        # Anchor Program
│   ├── psy-stake                   # PsyStake Program
|   │   ├── src
|   |   |   ├── instructions        # Directory containing program instructions.
|   |   |   |   ├── permisionless   # Subdirectory containing instructions to be run permissionless by cranks.
|   |   |   |   ├── staker          # Subdirectory containing instructions invoked by users staking with the program.
|   |   |   |   ├── vault           # Subdirectory containing instructions invoked by the PsyFi Euros program.
|   |   │   ├── account.rs          # Contains Account struct definitions.
|   |   │   ├── constants.rs        # Contains program constants.
|   |   │   ├── errors.rs           # Contains ErrorCode Enum definitions.
|   |   │   ├── lib.rs              # Contains handlers for program entry.
|   |   │   ├── utils.rs            # Contains utility functions.
│   └── tests                       # Integration tests
└── ...

Program Architecture

Read Here

Setup

Setup Submodules:

Using HTTPS (recommended):

  1. Allow HTTPS cloning from private repository by caching your Github credentials in Git. Git Credentials Manager sets up well on M1 Macbook.
  2. Add PsyFi Euros as a git submodule in deps/ with git submodule add https://github.com/mithraiclabs/psyfi-euros.git deps/psyfi-euros.
  3. Update dependencies of submodule with git submodule update --init --recursive.
  4. Build the dependency by running anchor build in deps/psyfi-euros.
  5. Run yarn install in the node dependencies, including deps/psyfi-euros/packages/psyfi-euros, deps/psyfi-euros.

Testing:

Local Testing

Unit Tests: Run cargo test --lib
Integration Tests: Run anchor test -- --features localnet.

Deployment

Devnet

  1. As of writing, you will have to install Solana v1.8.14 to deploy the program to Devnet: sh -c "$(curl -sSfL https://release.solana.com/v1.8.14/install)". Newer versions of Solana will fail to deploy with an invalid blockhash error.
  2. Build program with anchor build -- --features devnet.
  3. Fund your deployment wallet with solana airdrop 2 <pubkey> --url https://api.devnet.solana.com.
  4. Generate a new program keypair with solana-keygen new -o <destination_filepath>.
  5. Run solana program deploy <path_to_repo/psyfi-euros/target/deploy/psyfi_euros.so --url https://api.devnet.solana.com --verbose --program-id <path_to_new_program_keypair> --keypair <path_to_deployment_wallet>.