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

socialkit

v1.2.3

Published

Social kit is a unified API infrastructure for social media

Readme

SocialKit Logo

SocialKit - One API to rule them all your social media!

Social kit is a unified API infrastructure for social media built with nodejs. Also its a npm package.

https://www.npmjs.com/package/socialkit

Available Social Media Clients

  1. Bluesky: https://bsky.app/ (made with @atproto/api)
  2. Reddit: https://reddit.com/ (made with official api/axios)

Installation

Prerequisites

Installation Steps

  1. Create a new directory
mkdir socialkit-project
cd socialkit-project
  1. Install NPM
npm init -y
  1. Install package:
npm install socialkit

1. Bluesky

Creating the Bluesky client

First you need to call the client with your account details. Then you need to login.

  import socialkit from 'socialkit'

  const bskyClient = new socialkit.BskyClient('username.bsky.social', 'your-password')
  await bskyClient.login()

The client constructor has 3 params:

  1. The username
  2. The password
  3. Debug mode (default: false): It's a switch to open debug console logs.

Note: After this the client is ready to use. Do not forget to login first.

Bluesky Client Methods

| Method | Description | Parameters | |-----------------------|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------| | login() | Logs in using the provided username and password. | None | | getTimeline | Fetches a timeline of posts from the authenticated account. | type (default: null), limit (default: 10), includeSelf (default: true) | | getProfile | Fetch detailed profile info for the given handle or the logged-in user. | handle (Optional) | | getProfilePosts | Get posts from a specific profile or from the logged-in user. | handle (Optional), type (default: 'post'), limit (default: 10) | | getFollows | Get a list of users the current user is following. | handle (Optional), limit (default: 100) | | getFollowers | Get a list of users following the current user. | handle (Optional), limit (default: 100) | | getNonMutualFollows | Get users you follow but who do NOT follow you back. | limit (default: 100) | | replyToPost | Reply to a specific post. | text, parentUri | | newPost | Creates a new post. | text, imageUrls (default: []) | | likePost | Like a specific post. | uri, cid | | parseFeedItem | Clean and normalize a feed item. | item |

Note: Handle is the username like "ranork.bsky.app"

2. Reddit

Creating the Reddit client

First you need to call the client with your account details. Then you need to login.

  import socialkit from 'socialkit'

  const redditClient = new socialkit.RedditClient('client-id', 'client-secret', 'your-username', 'your-password')
  await redditClient.login()

The client constructor has 3 params:

  1. The client id from your app in reddit apps. (https://www.reddit.com/prefs/apps)
  2. The client secret from your app in reddit apps. (https://www.reddit.com/prefs/apps)
  3. The username
  4. The password
  5. Debug mode (default: false): It's a switch to open debug console logs.

Note: After this the client is ready to use. Do not forget to login first.

Reddit Client Methods

| Method | Description | Parameters | |-----------------------|-------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------| | login() | Logs in using the provided client credentials and Reddit username/password. | None | | getHomeFeed | Fetches the home feed for the logged-in user. | limit (default: 10), sort (default: 'best', options: 'best', 'hot', 'new') | | getSubredditFeed | Fetches posts from a specific subreddit with optional sorting. | subreddit (required), limit (default: 10), sort (default: 'hot', options: 'hot', 'top', 'new', 'controversial') | | getUserProfile | Fetches the logged-in user's Reddit profile information. | None | | parseFeedItem | Static method that normalizes and extracts information from a feed item. | item (Reddit API post object) |

Important Note

Use at your own discretion. Do not spam people with this. We discourage any stalkerware, bulk or automated messaging usage.

Contact

For any questions or feedback about the project, please contact us through GitHub or [email protected]

Contributions

If you would like to contribute, please feel free to submit a pull request. We welcome any contributions!

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more information.