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

@profullstack/autopost

v0.1.0

Published

Typed Node SDK for posting to social platforms via a Crawlproof account. List a user's connected social accounts and publish to them from any Node program, CI job, or CLI.

Readme

@profullstack/autopost

Typed Node SDK for posting to social platforms via a Crawlproof account. Post to any social account a user has connected on crawlproof.com — Bluesky, Reddit, Mastodon, LinkedIn, X, Facebook Pages, Threads, Discord, Telegram — from any Node program, CI job, or CLI.

Why

Crawlproof centralises the OAuth dance + token encryption for ~9 social platforms (today; more coming). Once a user has connected their accounts in the crawlproof.com UI, this SDK lets external programs post via those connections without re-doing per-platform OAuth.

Use cases:

  • sh1pt promote and similar release-orchestration CLIs.
  • CI jobs that announce new versions.
  • Internal admin scripts.

Install

pnpm add @profullstack/autopost
# or
npm i @profullstack/autopost

Node 18+.

Setup

  1. Sign in at https://crawlproof.com.
  2. Connect the social accounts you want to post to (/social/setup).
  3. Generate an API token at /social/api-tokens. Copy it once — only the hash is stored, you can't view it again.
  4. Set AUTOPOST_TOKEN (or whatever env var name you prefer) in your environment.

Usage

import { createAutopostClient } from "@profullstack/autopost";

const client = createAutopostClient({
  token: process.env.AUTOPOST_TOKEN!,
});

// List the user's connected accounts.
const accounts = await client.listAccounts();
//=> [{ id, platform, handle, status, instance_url, last_post_at, created_at }, …]

// Post to one of them.
const result = await client.post({
  accountId: accounts[0].id,
  text: "Shipped a new version: https://example.com/changelog",
});
//=> { postId, platformPostId, webUrl }

Reddit

Reddit requires per-post subreddit + title:

await client.post({
  accountId: redditAccount.id,
  text: "Body of the self-post in markdown.",
  subreddit: "webdev",
  title: "Just shipped: $thing",
});

Custom base URL (self-hosted / staging)

const client = createAutopostClient({
  token: process.env.AUTOPOST_TOKEN!,
  baseUrl: "https://staging.crawlproof.com",
});

Error handling

Non-2xx responses throw AutopostError:

import { AutopostError } from "@profullstack/autopost";

try {
  await client.post({ accountId, text });
} catch (err) {
  if (err instanceof AutopostError) {
    console.error(`HTTP ${err.status}: ${err.message}`);
    // err.body is the parsed JSON error body (if any)
  }
  throw err;
}

API

createAutopostClient(options)

| Option | Type | Description | | --------- | ---------------- | --------------------------------------------------------------------------- | | token | string | Required. Bearer token from /social/api-tokens (starts with crp_). | | baseUrl | string | Optional. Defaults to https://crawlproof.com. | | fetch | typeof fetch | Optional. Inject your own fetch (e.g. undici). Defaults to global fetch. |

Returns { listAccounts, post }.

listAccounts(): Promise<SocialAccount[]>

Returns the user's connected social accounts. instance_url is non-null only for federated platforms (Mastodon today).

post(input): Promise<PostResult>

| Field | Type | Description | | ----------- | -------- | ----------------------------------------------------------------- | | accountId | string | Required. From listAccounts(). | | text | string | Required. The post body. Char limit is enforced server-side per platform. | | subreddit | string | Required for Reddit accounts. | | title | string | Required for Reddit accounts. |

Returns { postId, platformPostId, webUrl }postId is crawlproof's row id (for later querying), platformPostId is whatever the target platform returned, webUrl is a permalink.

License

MIT.