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

@grip-foundation/agent-sdk

v0.1.1

Published

Grip Agent SDK — agent operator CLI/runtime for Base wallet ops, policy checks, and key management.

Readme

@grip-foundation/agent-sdk

Operator-side CLI/runtime for Grip agents on Base.

This package is intentionally distinct from @grip-labs/sdk:

  • @grip-labs/sdk: builder-facing SDK used inside agent/application code.
  • @grip-foundation/agent-sdk: operator-facing runtime/CLI used to provision keys under ~/.grip-keys/, inspect balances, and execute USDC payments with local policy checks.

Install

npm install -g @grip-foundation/agent-sdk

CLI commands

grip-agent-install [userId]
grip-agent-balance [userId]
grip-agent-pay <to> <amountUsd> [--user <id>] [--memo <text>] [--force]

Local development

npm test
npm run test:live
node bin/install.mjs
node bin/balance.mjs

Environment

  • BASE_RPC_URL: optional Base RPC override
  • GRIP_KEYS_DIR: optional override for the key directory during tests or isolated runs

npm test runs the hermetic/unit suite. npm run test:live runs the read-only Base mainnet integration check for usdcBalance().

Telegram approval cards

The approval-card module is intentionally transport-light: it persists approval requests, returns Telegram inline_keyboard payloads, and resolves callback queries, but it does not send messages or execute payments for you.

import { createClient } from "@supabase/supabase-js"
import {
  createApprovalCard,
  handleApprovalCallback,
  SupabaseApprovalStore,
} from "@grip-foundation/agent-sdk/approval"

const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_ROLE_KEY)
const store = new SupabaseApprovalStore(supabase)

const { request, message } = await createApprovalCard({
  userId: "bia",
  approverId: 12345,
  to: "0x000000000000000000000000000000000000dEaD",
  amountUsd: 25.75,
  memo: "demo dinner",
  reasons: ["exceeds per-tx cap ($20)"],
  policy: { perTxUsd: 20, dailyUsd: 100 },
  spentTodayUsd: 90,
  afterDailyUsd: 115.75,
  principalAddress: "0x1111111111111111111111111111111111111111",
}, { store })

// send `message` via Telegram Bot API yourself

const callbackResult = await handleApprovalCallback(update.callback_query, { store })
if (callbackResult.handled && callbackResult.ok && callbackResult.code === "approved") {
  // execute the payment with --force or your equivalent transport logic
}

Use sql/approval_requests.sql to provision the default Supabase table.