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

@spraay/langchain-agent-wallet

v1.0.0

Published

💧 LangChain tools for Spraay Agent Wallet — provision smart wallets, manage session keys on Base via x402

Readme

💧 @spraay/langchain-agent-wallet

LangChain tools for Spraay Agent Wallet — provision smart wallets, manage session keys, and predict addresses on Base via x402 USDC micropayments.

Install

npm install @spraay/langchain-agent-wallet @langchain/core

Quick Start

import { ChatOpenAI } from "@langchain/openai";
import { createToolCallingAgent, AgentExecutor } from "langchain/agents";
import { ChatPromptTemplate } from "@langchain/core/prompts";
import { createSpraayWalletTools } from "@spraay/langchain-agent-wallet";

const tools = createSpraayWalletTools({
  privateKey: process.env.EVM_PRIVATE_KEY!,
  // gatewayUrl: "https://gateway.spraay.app" // default
});

const llm = new ChatOpenAI({ model: "gpt-4o" });

const prompt = ChatPromptTemplate.fromMessages([
  ["system", "You are a Web3 agent that can manage smart wallets on Base."],
  ["human", "{input}"],
  ["placeholder", "{agent_scratchpad}"],
]);

const agent = createToolCallingAgent({ llm, tools, prompt });
const executor = new AgentExecutor({ agent, tools });

const result = await executor.invoke({
  input: "Deploy a new agent wallet for 0x1234...abcd",
});

Tools

| Tool | Description | Cost | |------|-------------|------| | spraay_provision_wallet | Deploy a new smart wallet on Base | $0.05 | | spraay_add_session_key | Grant scoped permissions to an address | $0.02 | | spraay_get_wallet_info | Query wallet details and balance | $0.005 | | spraay_revoke_session_key | Remove a session key | $0.02 | | spraay_predict_address | Pre-compute CREATE2 wallet address | $0.001 |

Individual Tool Usage

import { SpraayProvisionWalletTool } from "@spraay/langchain-agent-wallet";

const provisionTool = new SpraayProvisionWalletTool({
  privateKey: process.env.EVM_PRIVATE_KEY!,
});

// Use with any LangChain agent or chain

Environment

EVM_PRIVATE_KEY=0x...          # Required — signs x402 payments
SPRAAY_GATEWAY_URL=https://... # Optional — override default gateway

Links

License

MIT — @plagtech