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

socialmedia-tools-ui

v0.1.4

Published

A customizable social media tools UI for React applications

Readme

Social Media Widget

npm version license

A comprehensive React component library for social media integration, scheduling, and content management.

Features

  • 🎨 Fully customizable with theming support
  • 📱 Social account management cards and containers
  • 📅 Calendar for scheduling posts
  • ✏️ Post editor with platform-specific features
  • 🌗 Light/dark mode support

Installation

npm install socialmedia-tools-ui
# or
yarn add socialmedia-tools-ui

Quick Start

import React from 'react';
import { 
  AccountCard, 
  AccountContainer, 
  Calendar, 
  PostEditor,
  ThemeProvider 
} from 'socialmedia-tools-ui';

function App() {
  return (
    <ThemeProvider>
      <div className="app-container">
        <h2>Social Media Accounts</h2>
        <AccountContainer>
          <AccountCard 
            platform="twitter"
            username="twitteruser"
            stats={{followers: 1200, following: 350, posts: 520}}
          />
          <AccountCard 
            platform="instagram"
            username="instagramuser"
            stats={{followers: 2500, following: 450, posts: 120}}
          />
        </AccountContainer>
        
        <h2>Content Calendar</h2>
        <Calendar 
          events={[
            {
              id: 'event1',
              title: 'Twitter Post',
              description: 'New product announcement',
              startTime: new Date(2023, 5, 15, 14, 0),
              services: ['twitter']
            },
            {
              id: 'event2',
              title: 'Instagram Story',
              description: 'Behind the scenes content',
              startTime: new Date(2023, 5, 16, 10, 0),
              services: ['instagram']
            }
          ]}
        />
        
        <h2>Create New Post</h2>
        <PostEditor 
          platforms={['twitter', 'facebook', 'instagram']}
          onSave={(content) => console.log('Post content:', content)}
        />
      </div>
    </ThemeProvider>
  );
}

export default App;

Components

AccountCard

Display information about a social media account with key stats.

import { AccountCard } from 'socialmedia-tools-ui';

<AccountCard 
  platform="twitter"
  username="twitteruser"
  avatar="https://example.com/avatar.jpg"
  stats={{
    followers: 1200,
    following: 350,
    posts: 520
  }}
  onSelect={() => console.log('Account selected')}
/>

AccountContainer

A container component for organizing multiple AccountCard components.

import { AccountContainer, AccountCard } from 'socialmedia-tools-ui';

<AccountContainer title="My Social Accounts" layout="grid">
  <AccountCard platform="twitter" username="twitteruser" />
  <AccountCard platform="instagram" username="instagramuser" />
  <AccountCard platform="facebook" username="facebookuser" />
</AccountContainer>

Calendar

A calendar component for scheduling and visualizing social media posts.

import { Calendar } from 'socialmedia-tools-ui';

<Calendar 
  events={[
    {
      id: 'event1',
      title: 'Twitter Post',
      description: 'Product launch announcement',
      startTime: new Date(2023, 5, 15, 14, 0),
      services: ['twitter'],
      color: '#1DA1F2'
    }
  ]}
  onEventClick={(event) => console.log('Event clicked:', event)}
  onEventAdd={(event) => console.log('Event added:', event)}
/>

PostEditor

A rich text editor for creating social media posts with platform-specific features.

import { PostEditor } from 'socialmedia-tools-ui';

<PostEditor 
  platforms={['twitter', 'facebook', 'instagram']}
  initialContent="What's on your mind?"
  characterLimit={280}
  onSave={(content) => console.log('Post content:', content)}
  onSchedule={(content, date) => console.log('Schedule for:', date)}
/>

Theme Customization

The library supports comprehensive theming through React Context.

import { ThemeProvider } from 'socialmedia-tools-ui';

// Custom theme
const darkTheme = {
  colors: {
    primary: '#bb86fc',
    secondary: '#03dac6',
    background: '#121212',
    surface: '#1e1e1e',
    text: {
      primary: 'rgba(255, 255, 255, 0.87)',
      secondary: 'rgba(255, 255, 255, 0.6)'
    }
  },
  spacing: {
    xs: '4px',
    sm: '8px',
    md: '16px',
    lg: '24px',
    xl: '32px'
  },
  borderRadius: '8px',
  shadows: {
    small: '0 2px 4px rgba(0,0,0,0.1)',
    medium: '0 4px 8px rgba(0,0,0,0.12)',
    large: '0 8px 16px rgba(0,0,0,0.14)'
  }
};

function App() {
  return (
    <ThemeProvider theme={darkTheme}>
      {/* Your components here */}
    </ThemeProvider>
  );
}

Advanced Usage

Calendar Events

Create structured calendar events for your social media schedule:

import { Calendar } from 'socialmedia-tools-ui';

// Create events
const events = [
  {
    id: 'post-1',
    title: 'Product Launch Tweet',
    description: 'Announce the new feature set',
    startTime: new Date(2023, 5, 15, 14, 0),
    endTime: new Date(2023, 5, 15, 14, 30),
    color: '#1DA1F2',
    isAllDay: false,
    services: ['twitter'],
    metadata: {
      approvalStatus: 'pending',
      targetAudience: 'developers'
    }
  },
  {
    id: 'post-2',
    title: 'Instagram Campaign',
    description: 'Lifestyle photos of product in use',
    startTime: new Date(2023, 5, 16),
    isAllDay: true,
    color: '#E1306C',
    services: ['instagram'],
    metadata: {
      approvalStatus: 'approved',
      campaign: 'summer-launch'
    }
  }
];

<Calendar 
  events={events}
  viewOptions={{
    defaultView: 'week',
    showWeekends: true
  }}
/>

Available Social Media Platforms

import { availablePlatforms } from 'socialmedia-tools-ui';

console.log(availablePlatforms); 
// ['twitter', 'facebook', 'instagram', 'linkedin', 'youtube', 'tiktok', 'pinterest']

API Reference

Complete API documentation is available in our API docs.

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Contributing

We welcome contributions! Please see our contributing guidelines for details.

License

MIT