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

@bbugs280/plugin-x-api

v0.1.3

Published

Comprehensive X.com (Twitter) API plugin for Paperclip agents. Supports tweets, likes, retweets, follows, user info, timeline, and search.

Downloads

425

Readme

X API Plugin for Paperclip

Comprehensive X.com (Twitter) API integration for Paperclip agents. Enables agents to search tweets, post, like, retweet, follow users, and more.

Features

Read-Only Tools (require bearer token)

  • x-search: Search recent tweets
  • x-get-user: Get user info by username
  • x-get-timeline: Get user's recent tweets

Write Tools (require access token)

  • x-post-tweet: Post a new tweet
  • x-like: Like a tweet
  • x-unlike: Unlike a tweet
  • x-retweet: Retweet
  • x-unretweet: Remove retweet
  • x-follow: Follow a user
  • x-unfollow: Unfollow a user
  • x-delete-tweet: Delete your tweet

Setup

1. Get X API Credentials

You'll need X API v2 access. Go to developer.twitter.com:

  1. Create a project and app
  2. Generate credentials:
    • Bearer Token (for read-only access) - from the "Keys and tokens" tab
    • Access Token & Secret (for write access) - requires elevated access tier

2. Configure Plugin in Paperclip

  1. Install the plugin:

    # Via npm (when published)
    npm install @paperclipai/plugin-x-api
       
    # Or via file path for development
    # Add to ~/.paperclip/adapter-plugins.json
  2. In the Paperclip UI, go to your instance settings and add secrets:

    • x_bearer_token: Your bearer token (read-only access)
    • x_access_token: Your access token (write access)
    • x_access_token_secret: Your access token secret (for OAuth)
  3. Enable the plugin in your agent's tools

Usage Examples

Search Tweets

Agent: Use x-search to find tweets about AI agents
Tool: x-search
Params: { "query": "AI agents", "maxResults": 10 }

Get User Info

Tool: x-get-user
Params: { "username": "paperclipai" }

Post a Tweet

Tool: x-post-tweet
Params: { "text": "Agents are awesome! 🚀" }

Like a Tweet

Tool: x-like
Params: { "tweetId": "1234567890" }

Follow User

Tool: x-follow  
Params: { "username": "elonmusk" }

API Limits

  • Search: 300 requests per 15 minutes (essential tier) or 2M per month (pro tier)
  • Tweets: 50 requests per 15 minutes to create tweets
  • Actions: Varies by tier (like, retweet, follow)

See X API rate limits for details.

Notes

  • All parameters with usernames should be without the @ symbol
  • Tweet IDs are numeric strings (e.g., "1234567890")
  • Text tweets are limited to 280 characters
  • Write operations require elevated access tier on X API

Development

# Build
pnpm build

# Typecheck
pnpm typecheck

# Clean
pnpm clean

Publishing

# Bump version in package.json
pnpm publish --access public