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-cli

v0.1.5

Published

CLI for Pillar — install, sync tools, manage knowledge, and test your AI copilot from the terminal

Readme

Pillar CLI

Command-line tool for Pillar — install the SDK, sync tools, manage knowledge sources, and test your AI copilot from the terminal.

npx pillar-cli init

Install

Run directly with npx (recommended):

npx pillar-cli <command>

Or install globally:

npm install -g pillar-cli
pillar <command>

Commands

pillar init

Set up Pillar in your project. Detects your framework, installs the SDK, generates provider and tool files, syncs tools, and creates knowledge sources from your docs.

npx pillar-cli init

What it does:

  1. Detects your framework (Next.js, Vite+React, Vue, Angular, vanilla)
  2. Installs the correct SDK package
  3. Creates provider wrapper, starter tools, and .env.local
  4. Creates a sync secret and runs an initial tool sync
  5. Detects docs URLs in your project and creates knowledge sources (indexing starts in the background)

When authenticated, init provisions everything needed so pillar doctor passes. Without authentication, it writes placeholder values and tells you the remaining steps.

pillar sync

Scan your codebase for tool definitions and sync them to Pillar's backend.

pillar sync --scan ./src              # One-time sync
pillar sync --scan ./src --watch      # Watch and re-sync on change
pillar sync --scan ./src --force      # Force sync even if unchanged
pillar sync status --scan ./src       # Compare local vs remote

Reads PILLAR_SLUG and PILLAR_SECRET from environment variables, ~/.pillar/config.json, or .env.local.

pillar knowledge

Manage knowledge sources — docs sites, help centers, and other content the copilot uses to answer questions.

pillar knowledge add https://docs.myapp.com
pillar knowledge list
pillar knowledge status <source-id>
pillar knowledge sync <source-id>      # Re-crawl
pillar knowledge remove <source-id>

pillar doctor

Check the health of your Pillar integration.

pillar doctor

Validates: product key, sync secret (catches placeholder values), SDK version, tool sync status, knowledge source health, and embed config reachability.

pillar chat

Test your copilot from the terminal.

pillar chat "how do I export my data?"    # Single question
pillar chat                                # Interactive mode
pillar chat --conversation <id>            # Resume conversation

pillar auth

Manage authentication for commands that need it (init, knowledge).

pillar auth login
pillar auth status
pillar auth logout

Configuration

The CLI reads configuration from multiple sources (in priority order):

  1. Environment variablesPILLAR_SLUG, PILLAR_SECRET, PILLAR_API_URL
  2. Config file~/.pillar/config.json (created by pillar auth login and pillar init)
  3. Project env.env.local in the current directory

Migrating from pillar-sync in @pillar-ai/sdk

The pillar-sync command previously shipped with @pillar-ai/sdk. It continues to work, but new features (watch mode, status, config file) are only in this CLI.

To migrate, change your CI from:

npx -y -p @pillar-ai/sdk@latest pillar-sync --scan ./src

To:

npx pillar-cli sync --scan ./src

CI/CD

Set PILLAR_SLUG and PILLAR_SECRET as environment variables in your CI provider, then:

# GitHub Actions
- name: Sync tools
  run: npx pillar-cli sync --scan ./src
  env:
    PILLAR_SLUG: ${{ secrets.PILLAR_SLUG }}
    PILLAR_SECRET: ${{ secrets.PILLAR_SECRET }}

Development

git clone https://github.com/doublehq/pillar
cd pillar/packages/cli
npm install
npm run dev          # Stub build for development
npm run build        # Production build
npm test             # Run tests

License

MIT