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 🙏

© 2024 – Pkg Stats / Ryan Hefner

string-poaster

v0.1.3

Published

A command line utility for making the same post to multiple social media platforms. Currently supports X, bluesky, threads, Mastodon and Farcaster.

Downloads

7

Readme

String Poaster

A command line utility for making the same post to multiple social media platforms. Currently supports X, bluesky, threads, Mastodon and Farcaster.

Install

npm i -g string-poaster
pip install farcaster # if you want to use farcaster. The node library does not support embeds.

Setup

Run the following command to setup auth for the social media sites you want to post to. The credentials are saved to ~/.poast-config.json.

poast-login

Usage

The following posts "This is my post" to every social network you set up in the previous step.

poast "This is my post"

You can use the flags x,b,t,m,f to only post to specific sites. The following posts to only Twitter and Threads:

poast -xt -- "Hi Twitter and Threads"

If you list multiple strings they will be posted in reply to each other except on Mastodon on which they will each become another paragraph.

poast "Here's my post" "And one more thing! "

Images

Each string in the list string-poaster checks if it is a file in the file system. If so it will upload it to the most recent string post.

poast "Check out my vacation" image1.png image2.jpg "I loved the beach" image3.png

The p flag attempts to dump the clipboard to .xclip_temp.png and attach it to the first post in the thread.

Images Quirks

The author did not find a reliable node library that could get an image from the clipboard so is spawning xclip which you will need to install yourself and has only been tested on Ubuntu.

The threads library only supports jpg and bluesky requires the filetype to be specified so for both those networks the image is converted to jpg with convert which again the user will have to have installed and may only work on Ubuntu.

Farcaster does not have a way to upload images to it directly and requires a link. The author makes one by uploading to a public S3 bucket which you can see here. In the future imgur support may be added.