Skip to content

Indreelforge/indreelforge-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InReelForge — Node.js SDK

npm version License: MIT

Official Node.js SDK for the InReelForge Social Media API. Upload videos, photos, and text to Instagram, YouTube, TikTok, Facebook, X (Twitter), LinkedIn, Threads, Pinterest, Reddit & Bluesky with a single API call.

Installation

npm install indreelforge

Quick Start

import InReelForge from 'indreelforge';

const client = new InReelForge({
  apiKey: 'your-api-key-here',
});

// Upload a video to multiple platforms
const result = await client.uploadVideo({
  user: 'my-profile',
  platforms: ['instagram', 'tiktok', 'youtube'],
  videoPath: './my-video.mp4',
  title: 'Check out this amazing video!',
});

console.log(result);
// { status: 'success', data: { upload_id: '...', platforms: [...] } }

Features

  • One API call, all platforms — Upload to 10+ social networks simultaneously
  • Video, Photo & Text — Support for all content types
  • Scheduling — Schedule posts for any future date/time
  • Analytics — Track performance across all platforms
  • Profile Management — Manage multiple social media accounts
  • TypeScript — Full type definitions included
  • Lightweight — Zero dependencies (uses native fetch)

Usage

Upload Video

await client.uploadVideo({
  user: 'my-profile',
  platforms: ['instagram', 'tiktok', 'youtube', 'facebook'],
  videoPath: './video.mp4',
  title: 'My awesome video',
  firstComment: '#socialmedia #viral',
  schedule: '2026-04-15T10:00:00Z',
  youtubePrivacy: 'public',
  youtubeTags: ['tutorial', 'tech'],
});

Upload Photos

await client.uploadPhotos({
  user: 'my-profile',
  platforms: ['instagram', 'facebook', 'pinterest'],
  photoPaths: ['./photo1.jpg', './photo2.jpg'],
  title: 'Photo carousel',
});

Upload Text

await client.uploadText({
  user: 'my-profile',
  platforms: ['x', 'threads', 'bluesky'],
  title: 'Just shipped a new feature! 🚀',
});

Manage Profiles

// List profiles
const { profiles } = await client.getProfiles();

// Create profile
await client.createProfile('brand-account');

// Delete profile
await client.deleteProfile('old-account');

Analytics

const analytics = await client.getAnalytics('30d');
console.log(analytics.total_views, analytics.engagement_rate);

Supported Platforms

Platform Video Photo Text Scheduling
Instagram -
YouTube - -
TikTok -
Facebook
X (Twitter)
LinkedIn
Threads -
Pinterest - -
Reddit
Bluesky -

Configuration

const client = new InReelForge({
  apiKey: 'your-api-key',           // Required
  baseUrl: 'https://api.indreelforge.com', // Optional (default)
  timeout: 120000,                  // Optional: request timeout in ms (default: 120s)
});

Error Handling

try {
  await client.uploadVideo({ ... });
} catch (err) {
  if (err.name === 'InReelForgeError') {
    console.error(`API Error (${err.status}): ${err.message}`);
  }
}

Links

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors