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

@uratmangun/plugin-para-server

v2.0.4

Published

This plugin provides server-side tools and actions for managing Para wallets and services in the Solana Agent Kit. It enables pre-generated wallet management and other Para-specific functionalities for server applications.

Readme

@getpara/plugin-para-server

This plugin provides server-side tools and actions for managing Para wallets and services in the Solana Agent Kit. It enables pre-generated wallet management and other Para-specific functionalities for server applications.

Installation

pnpm add @getpara/plugin-para-server
# or
bun add @getpara/plugin-para-server

Setup

First, initialize the Solana Agent Kit with the Para Server Plugin:

import { SolanaAgentKit, type BaseWallet } from "solana-agent-kit";
import ParaServerPlugin from "@getpara/plugin-para-server";
import TokenPlugin from "@solana-agent-kit/plugin-token";

// Create the Solana Agent
const solanaAgent = new SolanaAgentKit(
  {} as BaseWallet, // Temporary wallet, will be replaced
  process.env.NEXT_PUBLIC_RPC_URL as string,
  {
    OPENAI_API_KEY: process.env.OPENAI_API_KEY as string || "",
  }
);

// Add Para Server Plugin and Token Plugin
export const solanaAgentWithPara = solanaAgent.use(ParaServerPlugin).use(TokenPlugin);

Available Methods

getParaInstance()

Returns the Para instance that can be used to interact with Para services directly.

const para = solanaAgentWithPara.methods.getParaInstance();

createParaPregenWallet(email: string)

Creates a pre-generated Para wallet for a specific email address.

try {
  const result = await solanaAgentWithPara.methods.createParaPregenWallet("[email protected]");
  console.log('Wallet created successfully!');
  console.log({
    address: result.address,
    email: result.email,
    walletId: result.walletId
  });
} catch (error) {
  if (error.message.includes("already exists")) {
    console.error('A wallet already exists for this email');
  } else {
    console.error('Failed to create wallet:', error.message);
  }
}

getParaPregenWallets(email: string)

Retrieves all pre-generated wallets associated with a specific email address.

try {
  const { listAllPregenWallets } = await solanaAgentWithPara.methods.getParaPregenWallets("[email protected]");
  console.log('Pre-generated wallets:', listAllPregenWallets);
  
  // Example of processing wallets
  listAllPregenWallets.forEach(wallet => {
    console.log('Wallet ID:', wallet.id);
    console.log('Wallet Address:', wallet.address);
  });
} catch (error) {
  console.error('Failed to get pre-generated wallets:', error.message);
}

updateParaPregenWallet(email: string, walletId: string)

Updates the email identifier for an existing pre-generated wallet.

try {
  const result = await solanaAgentWithPara.methods.updateParaPregenWallet(
    "[email protected]",
    "wallet_id_here"
  );
  console.log('Wallet updated successfully!');
  console.log({
    email: result.email,
    walletId: result.walletId
  });
} catch (error) {
  if (error.message.includes("already exists")) {
    console.error('A wallet already exists for this email');
  } else {
    console.error('Failed to update wallet:', error.message);
  }
}

Error Handling

The plugin methods may throw errors in the following cases:

  • Invalid email format
  • Duplicate wallet creation attempts
  • Invalid wallet IDs
  • Network connectivity issues
  • Para API errors

Always wrap method calls in try-catch blocks and handle errors appropriately in your application.

TypeScript Support

This plugin is written in TypeScript and provides full type definitions for all methods and return values. Import the necessary types from the package:

import { WalletType } from "@getpara/server-sdk";

Environment Variables

Make sure to set up the following environment variables:

  • NEXT_PUBLIC_RPC_URL: Your Solana RPC URL
  • OPENAI_API_KEY: Your OpenAI API key (if using OpenAI features)
  • Any additional Para-specific environment variables required for your use case

Contributing

If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on our GitHub repository.

License

[License Type] - See LICENSE file for details