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

@pillar-ai/sdk

v0.1.33

Published

Product copilot SDK for SaaS and web apps — AI assistant that executes tasks, not just answers questions

Readme

@pillar-ai/sdk

Pillar is an open-source product copilot SDK for SaaS and web apps — embed an AI assistant that executes tasks, not just answers questions. GitHub · Docs

npm version npm downloads License: MIT TypeScript

What is Pillar?

Pillar is a product copilot for SaaS and web applications. Users say what they want, and Pillar uses your UI to make it happen — navigating pages, pre-filling forms, and calling your APIs.

A CRM user could ask:

"Close the Walmart deal as won in Salesforce and notify implementation"

An analytics user could ask:

"Add a weekly signups chart to my Amplitude dashboard"

Or an HR user:

"How do I change my direct deposit in Rippling?"

Pillar understands the intent, builds a multi-step plan, and executes it client-side with the user's session.

Features

  • Task Execution — Navigate pages, pre-fill forms, call APIs on behalf of users
  • Multi-Step Plans — Chain actions into workflows for complex tasks
  • Context-Aware — Knows current page, user state, and selected text
  • Knowledge Sync — Trained on your docs, Zendesk, Intercom, and more
  • Custom Action Cards — Render interactive UI for confirmations and data input
  • Framework Bindings — First-class support for React, Vue, and Svelte

Why Pillar?

  • Runs client-side with the user's session — no proxy servers, no token forwarding
  • One npm install, define your actions, and you're live
  • Syncs with your docs for grounded, accurate answers

Documentation

View Full Documentation | Getting Started | API Reference

Installation

npm install @pillar-ai/sdk
# or
pnpm add @pillar-ai/sdk
# or
yarn add @pillar-ai/sdk

Quick Start

1. Get Your Product Key

⚠️ Beta Onboarding: Cloud access is currently manual while we learn from early teams. Join the waitlist at trypillar.com, and we will reach out to onboard you.

By default, you'll get an engineer from Pillar to help with setup. If you prefer onboarding without engineering support, include that in your waitlist request and we will support that too.

2. Initialize the SDK

import { Pillar } from "@pillar-ai/sdk";

// Initialize and get the instance
const pillar = await Pillar.init({
  productKey: "your-product-key", // Provided during onboarding
});

// Now you can use instance methods
pillar.setContext({ currentPage: "/dashboard" });
pillar.open();

You can also get the instance later using Pillar.getInstance():

// Anywhere in your app after init
const pillar = Pillar.getInstance();
pillar?.setContext({ currentPage: "/settings" });

Defining Actions

Define what your co-pilot can do. When users make requests, Pillar matches intent to actions and executes them.

Register Task Handlers

Use onTask to handle actions when the AI executes them:

const pillar = await Pillar.init({
  productKey: "your-product-key",
});

// Handle navigation
pillar.onTask("go_to_settings", (data) => {
  router.push("/settings");
});

// Handle triggers
pillar.onTask("export_to_csv", async (data) => {
  await downloadCSV();
});

// Handle actions with data
pillar.onTask("update_preferences", (data) => {
  updateUserPreferences(data.emailAlerts, data.frequency);
});

Code-First Action Definitions

For production, define tools in code and sync them via the pillar-sync CLI during CI/CD. See Setting Up Tools for details.

Configuration

const pillar = await Pillar.init({
  productKey: "your-product-key",

  panel: {
    position: "right", // 'left' | 'right'
    mode: "push", // 'overlay' | 'push'
  },

  edgeTrigger: {
    enabled: true, // Set to false to use your own button
  },

  theme: {
    mode: "auto", // 'light' | 'dark' | 'auto'
    colors: {
      primary: "#6366f1",
    },
  },
});

API Reference

| Method | Description | |--------|-------------| | Pillar.init(config) | Initialize the SDK, returns the instance | | Pillar.getInstance() | Get the initialized SDK instance | | pillar.open() | Open the co-pilot panel | | pillar.close() | Close the co-pilot panel | | pillar.toggle() | Toggle the co-pilot panel | | pillar.setContext(context) | Update the user/product context | | pillar.on(event, callback) | Subscribe to SDK events |

Note: Pillar.init() and Pillar.getInstance() are static methods on the class. All other methods (lowercase pillar) are instance methods - call them on the instance returned from init() or getInstance().

For complete API documentation, see the API Reference.

Framework Integrations

For idiomatic integration with your framework, use our framework-specific packages:

| Framework | Package | Installation | |-----------|---------|--------------| | React | @pillar-ai/react | npm install @pillar-ai/react | | Vue | @pillar-ai/vue | npm install @pillar-ai/vue | | Svelte | @pillar-ai/svelte | npm install @pillar-ai/svelte |

License

MIT