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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@seamagency/socially

v1.1.13

Published

A comprehensive social media management library for Node.js with support for 12+ platforms including YouTube, TikTok, Pinterest, Reddit, Threads, Discord, Slack, Telegram, and more.

Readme

@seamagency/socially

npm version License: MIT

A comprehensive social media management library for Node.js with support for 12+ platforms including Instagram, YouTube, TikTok, Pinterest, Reddit, Threads, Discord, Slack, Telegram, and more.

Features

  • OAuth Support - Built-in OAuth flows for all platforms
  • Instagram API - Posts, Stories, Comments, DMs (Instagram Login API)
  • YouTube - Video uploads, comments, playlists
  • Twitter/X - Tweets, threads, media
  • LinkedIn - Posts, articles, company pages
  • Pinterest - Pins, boards
  • TikTok - Video uploads
  • Threads - Posts, replies
  • Discord/Slack/Telegram - Messages, webhooks
  • Analytics - Unified stats across platforms

Installation

npm install @seamagency/socially

Platform Test Status

| Platform | Status | |----------|--------| | Instagram | ✅ Tested - Working | | Facebook | ✅ Tested - Working | | LinkedIn | ✅ Tested - Working | | YouTube | ⏳ Awaiting Test | | Twitter/X | ⏳ Awaiting Test | | TikTok | ⏳ Awaiting Test | | Pinterest | ⏳ Awaiting Test | | Threads | ⏳ Awaiting Test | | Reddit | ⏳ Awaiting Test | | Discord | ⏳ Awaiting Test | | Slack | ⏳ Awaiting Test | | Telegram | ⏳ Awaiting Test |

We are actively testing other platforms. If you have tested any platform, please let us know!

Quick Start

Instagram Example

import { Instagram } from '@seamagency/socially';

// 1. Initialize with OAuth credentials
const instagram = new Instagram({
    clientId: 'your-client-id',
    clientSecret: 'your-client-secret',
    redirectUri: 'https://yourapp.com/callback'
});

// 2. Generate OAuth URL
const authUrl = instagram.generateAuthUrl();
// Redirect user to authUrl

// 3. Exchange code for token (in callback)
const { accessToken, userId } = await instagram.exchangeCodeForToken(code);

// 4. Use the API
const ig = new Instagram({ accessToken, accountId: userId });

// Post an image
await ig.post({
    text: 'Hello from Socialy! 📸',
    media: ['https://example.com/image.jpg']
});

// Post a story
await ig.postStory('https://example.com/story.jpg');

// Get user profile
const profile = await ig.getUserProfile();

Multi-Platform Example

import { SocialManager } from '@seamagency/socially';

const manager = new SocialManager({
    instagram: { accessToken: '...', accountId: '...' },
    twitter: { apiKey: '...', apiSecret: '...', accessToken: '...', accessSecret: '...' },
    youtube: { accessToken: '...' }
});

// Post to multiple platforms at once
await manager.postToAll({
    text: 'Cross-platform post! 🚀',
    media: ['https://example.com/image.jpg']
});

Supported Platforms

| Platform | OAuth | Post | Media | Comments | DMs | Analytics | |----------|-------|------|-------|----------|-----|-----------| | Instagram | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | YouTube | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | | Twitter/X | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | LinkedIn | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | | TikTok | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | | Pinterest | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | | Threads | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | | Reddit | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | Discord | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | | Slack | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | | Telegram | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | | Facebook | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |

Instagram API Setup

This library uses the Instagram API with Instagram Login (not Facebook Login).

Prerequisites

  1. Create a Meta Developer account at developers.facebook.com
  2. Create a new app and add "Instagram API with Instagram Login"
  3. Add your Instagram Business/Creator account as a tester
  4. Configure OAuth redirect URIs

Required Scopes

instagram.generateAuthUrl([
    'instagram_business_basic',
    'instagram_business_content_publish',
    'instagram_business_manage_messages',
    'instagram_business_manage_comments',
    'instagram_business_manage_insights'
]);

API Reference

Instagram

// OAuth
generateAuthUrl(scopes?: string[]): string
exchangeCodeForToken(code: string): Promise<TokenData>
refreshAccessToken(token: string): Promise<TokenData>

// Content
post(content: PostContent): Promise<PostResult>
postStory(mediaUrl: string, mediaType?: 'IMAGE' | 'VIDEO'): Promise<StoryResult>

// User
getUserProfile(): Promise<UserProfile>
getMedia(): Promise<MediaList>
getStories(): Promise<StoryList>

// Engagement
getComments(mediaId: string): Promise<CommentList>
replyToComment(commentId: string, message: string): Promise<Result>
deleteComment(commentId: string): Promise<Result>

// Messaging
sendMessage(recipientId: string, message: string): Promise<Result>
getConversations(): Promise<ConversationList>

Environment Variables

# Instagram
INSTAGRAM_CLIENT_ID=your_client_id
INSTAGRAM_CLIENT_SECRET=your_client_secret
INSTAGRAM_REDIRECT_URI=https://yourapp.com/auth/instagram/callback

# Twitter
TWITTER_API_KEY=your_api_key
TWITTER_API_SECRET=your_api_secret

# YouTube
YOUTUBE_CLIENT_ID=your_client_id
YOUTUBE_CLIENT_SECRET=your_client_secret

Contributing

Contributions are welcome! Please read our Contributing Guide for details.

License

APACHE2 © Seam Agency