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

@wipcomputer/wip-xai-x

v1.0.4

Published

X Platform API. Sensor (read posts, search, bookmarks) + Actuator (post tweets, upload media).

Downloads

183

Readme

WIP Computer

wip-xai-x

X Platform API. Read posts, search tweets, post, upload media.

Built on the official @xdevplatform/xdk TypeScript SDK (v0.4.0, MIT, zero transitive deps).

Four interfaces: CLI, Module, MCP Server, Skill.

Install

Open your AI coding tool and say:

Clone wipcomputer/wip-xai-x and read the README and SKILL.md.
Then explain to me:
1. What is this tool?
2. What does it do?
3. What would it change or fix in our current system?

Then ask me if I have more questions, or if I want you to integrate it into our system.

Your agent will read the repo, explain the tool, and walk you through integration interactively.

Authentication

The tool resolves credentials automatically:

  1. 1Password (preferred) ... vault "Agent Secrets", item "X Platform API"
  2. Environment variables ... as a fallback

Read-only (fetch posts, search, user lookup):

export X_BEARER_TOKEN="your-bearer-token"

Read + Write (post tweets, bookmarks, upload media):

export X_API_KEY="your-api-key"
export X_API_SECRET="your-api-secret"
export X_ACCESS_TOKEN="your-access-token"
export X_ACCESS_TOKEN_SECRET="your-access-token-secret"

Get credentials at https://developer.x.com/en/portal/dashboard

Usage

CLI

# Sensor (read)
wip-xai-x fetch https://x.com/parkertoddbrooks/status/123456
wip-xai-x search "AI agents" --max=20
wip-xai-x bookmarks --max=10
wip-xai-x user parkertoddbrooks
wip-xai-x me

# Actuator (write)
wip-xai-x post "Hello from wip-xai-x"
wip-xai-x post "Replying!" --reply-to=123456
wip-xai-x post "Check this out" --media=photo.jpg
wip-xai-x delete 123456
wip-xai-x bookmark 123456
wip-xai-x upload photo.jpg

As a Module

import { fetch_post, search_recent, post_tweet, get_bookmarks } from '@wipcomputer/wip-xai-x';

// Sensor: read
const post = await fetch_post({ id_or_url: 'https://x.com/user/status/123' });
console.log(post.data.text);

const results = await search_recent({ query: 'AI agents', max_results: 10 });
for (const tweet of results.data) {
  console.log(tweet.text);
}

const bookmarks = await get_bookmarks({ max_results: 20 });

// Actuator: write
const { data } = await post_tweet({ text: 'Hello from wip-xai-x' });
console.log(`Posted: https://x.com/i/status/${data.id}`);

MCP Server

Add to your .mcp.json:

{
  "wip-xai-x": {
    "command": "node",
    "args": ["/path/to/wip-xai-x/mcp-server.mjs"]
  }
}

Exposes 7 tools: x_fetch_post, x_search_recent, x_get_bookmarks, x_get_user, x_post_tweet, x_delete_tweet, x_upload_media.

Functions

Sensor (Read)

| Function | What | Auth | |----------|------|------| | fetch_post | Fetch a post by ID or URL | Bearer | | search_recent | Search tweets (last 7 days) | Bearer | | get_bookmarks | Get your bookmarks | OAuth | | get_user | Get user profile | Bearer | | get_me | Get your own profile | OAuth |

Actuator (Write)

| Function | What | Auth | |----------|------|------| | post_tweet | Post a new tweet | OAuth | | delete_tweet | Delete a tweet | OAuth | | bookmark_post | Bookmark a post | OAuth | | unbookmark_post | Remove a bookmark | OAuth | | upload_media | Upload image/video/gif | OAuth |

Bearer = read-only bearer token. OAuth = OAuth 1.0a with all four tokens.

wip-xai-x vs wip-xai-grok

| | wip-xai-x | wip-xai-grok | |---|---|---| | API | X Platform API (api.x.com) | xAI API (api.x.ai) | | Search | Raw tweet data, exact matches | AI-powered search via Grok | | Read posts | Fetch by ID, search by query | Not available | | Write | Post tweets, upload media | Generate images/video | | Auth | Bearer token / OAuth 1.0a | xAI API key |

Use wip-xai-x to read/write on X. Use wip-xai-grok for AI-powered search and media generation.

Attribution

Built on @xdevplatform/xdk v0.4.0 (official X TypeScript SDK).


License

MIT

Built by Parker Todd Brooks, with Claude Code and Lēsa (OpenClaw).