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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@picahq/toolkit

v1.0.2

Published

Pica tools for the Vercel AI SDK

Downloads

547

Readme

Pica ToolKit

npm version

Pica's ToolKit provides enterprise-grade integration capabilities for AI agents built with the Vercel AI SDK. Through Pica's integration layer, agents can seamlessly interact with third-party services and APIs while maintaining enterprise security, compliance, and reliability standards.

Prerequisites

Before installing ToolKit, you'll need:

  • Pica Account - Sign up for a free account here
  • Vercel AI SDK - Version 5.0.0 or higher
  • LLM Provider & API Key – You'll need an API key from your preferred LLM provider. Supported providers include: OpenAI, Anthropic, Google, xAI, Groq, Mistral, Cohere, and many more.

Installation

npm install @picahq/toolkit

Setup

  1. Create a new Pica account
  2. Create a Connection via the Pica Dashboard
  3. Create a Pica API key
  4. Set the API key as an environment variable: PICA_SECRET_KEY=<your-api-key>

Usage

The Pica ToolKit seamlessly integrates with Vercel AI SDK, enabling powerful AI capabilities in your applications. Below is a simple example of using Pica ToolKit in a Next.js (or similar Edge Function) API route handler, powering a chat UI with read-only permissions on a Gmail connection.

import { Pica } from '@picahq/toolkit';
import { openai } from '@ai-sdk/openai';
import {
  streamText,
  UIMessage,
  convertToModelMessages,
  stepCountIs
} from 'ai';

export async function POST(req: Request) {
  const { messages }: { messages: UIMessage[] } = await req.json();

  const pica = new Pica(process.env.PICA_SECRET_KEY!, {
    connectors: ["test::gmail::default::6faf1d3707f846ef89295c836df71c94"],
    actions: ["*"],
    permissions: "read"
  });

  const systemPrompt = pica.systemPrompt;

  const result = streamText({
    model: openai("gpt-5"),
    messages: convertToModelMessages(messages),
    tools: {
      ...pica.tools() // Load the Pica ToolKit
    },
    system: systemPrompt,
    stopWhen: stepCountIs(25)
  });

  return result.toUIMessageStreamResponse();
}

⭐️ Experience the Pica ToolKit's capabilities firsthand through our interactive chat playground directly in the Pica dashboard

What can Pica do?

After installing the SDK and integrating your platforms through the Pica dashboard, you can effortlessly create sophisticated AI agents to orchestrate and automate your business workflows.

Here are some powerful examples use cases:

Communication & Productivity

  • Compose and send Gmail emails containing meeting summaries to team members
  • Schedule Google Calendar events with specified date/time parameters
  • Post messages with campaign analytics to designated Slack channels
  • Search and retrieve Q3 planning materials from Google Drive

Data Access & Analysis

  • Execute PostgreSQL queries to identify top customer segments
  • Generate new Google Sheets workbooks populated with sales metrics
  • Retrieve closing opportunity data from Salesforce CRM
  • Maintain project tracking databases in Notion workspaces

Business Operations

  • Create customer support cases in Zendesk from feedback data
  • Process customer refund transactions via Stripe
  • Convert website inquiries into HubSpot lead entries
  • Generate client invoices through QuickBooks integration

AI & Content

  • Create DALL-E images matching product requirements
  • Convert meeting audio to text using ElevenLabs
  • Conduct market research via Tavily/SerpApi integrations
  • Perform sentiment analysis on support interactions

Documentation

For more detailed documentation, please visit our documentation site.

License

This project is licensed under the GPL-3.0 license. See the LICENSE file for details.