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

xrpl-social-cli

v0.1.0

Published

CLI for XRPL Social agent API

Readme

CI Node >=20 License MIT

Why this exists

xrpl-social-cli is the practical shell for XRPL Social's agent-safe API surface. It is built for automation, operator workflows, scripting, and AI agents that need a deterministic interface instead of scraping HTML or pretending to be a browser.

Features

  • Structured JSON errors with useful exit codes
  • JSON-first output everywhere
  • token + base-url config via env or config file
  • profile read/update
  • links list/create/update/delete/reorder/sync
  • shorts list/create/update/toggle/delete/QR download
  • analytics summary + links + shorts
  • auth doctor for config/auth sanity checks
  • GitHub Actions CI smoke coverage

Requirements

  • Node.js 20+
  • XRPL Social agent token with the scopes you need

Install

Run from source

git clone https://github.com/danielwwf/xrpl-social-cli.git
cd xrpl-social-cli
node bin/xrplsocial.js --help

Global install from local checkout

npm install -g .
xrplsocial --help

Quick start

xrplsocial config init   --base-url https://dev.xrpl.social   --token xrsoc_pat_...

xrplsocial auth doctor
xrplsocial profile get
xrplsocial links list
xrplsocial analytics summary --window 7d

Config

Show effective config

xrplsocial config show

Use env vars instead

export XRPLSOCIAL_BASE_URL="https://xrpl.social"
export XRPLSOCIAL_TOKEN="xrsoc_pat_..."

Config file path:

  • ~/.config/xrplsocial/config.json

Use dev on purpose

xrplsocial config init --base-url https://dev.xrpl.social --token xrsoc_pat_...

Command overview

xrplsocial auth whoami
xrplsocial auth doctor
xrplsocial config show
xrplsocial config init --base-url https://xrpl.social --token xrsoc_pat_...
xrplsocial profile get
xrplsocial profile update --title "My title"
xrplsocial links list
xrplsocial links create --label "Homepage" --url https://example.com
xrplsocial links update --id 123 --label "Homepage" --url https://example.com/new
xrplsocial links delete --id 123
xrplsocial links reorder --file order.json
xrplsocial links sync --file links.json
xrplsocial links sync --file links.json --delete-missing
xrplsocial links export --out links.json
xrplsocial shorts list
xrplsocial shorts create --title "Launch" --destination-url https://example.com
xrplsocial shorts update --id 123 --destination-url https://example.com/updated --title "Updated"
xrplsocial shorts toggle --id 123
xrplsocial shorts delete --id 123
xrplsocial shorts qr --id 123 --out short-123.png
xrplsocial analytics summary
xrplsocial analytics summary --window 7d
xrplsocial analytics links --window 7d
xrplsocial analytics shorts --window 7d
xrplsocial analytics export --kind summary --window 7d --out analytics.json

Examples

  • examples/links-sync.json
  • examples/links-reorder.json

File shapes

links sync

{
  "links": [
    {"label": "Homepage", "url": "https://example.com"},
    {"label": "Docs", "url": "https://docs.example.com"}
  ]
}

links reorder

{
  "order": [123, 456, 789]
}

Notes

  • Delete is defensive by default. Missing links are only removed when --delete-missing is passed.
  • Reorder expects the full owned link id set, not only a partial subset.
  • Do not put real tokens into shell history on shared machines. Prefer config file or env management.

Development

npm run ci

Release flow

  • see RELEASING.md
  • GitHub Actions package check on tags/workflow dispatch
  • npm pack used as packaging sanity gate

License

MIT