
Security News
Insecure Agents Podcast: How to Keep AI Agents From Bypassing Security Controls
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.
posteverywhere
Advanced tools
Official PostEverywhere SDK — schedule and publish to all social media platforms from code
Official Node.js/TypeScript SDK for PostEverywhere — schedule and publish to all social media platforms from code.
npm install posteverywhere
import PostEverywhere from 'posteverywhere';
const client = new PostEverywhere({
apiKey: 'pe_live_your_api_key_here',
});
// List connected social accounts
const { accounts } = await client.accounts.list();
console.log(accounts);
// Publish a post to all accounts
const post = await client.posts.create({
content: 'Hello from the PostEverywhere SDK!',
publish_now: true,
});
const client = new PostEverywhere({
apiKey: 'pe_live_...',
});
// List all connected accounts
const { accounts } = await client.accounts.list();
// Get a single account
const account = await client.accounts.get(123);
// Create and publish immediately
const post = await client.posts.create({
content: 'My post content',
publish_now: true,
});
// Schedule for later
const scheduled = await client.posts.create({
content: 'Scheduled post',
scheduled_for: '2026-03-20T09:00:00Z',
timezone: 'America/New_York',
});
// Post to specific accounts only
const targeted = await client.posts.create({
content: 'Just for Instagram',
account_ids: [456],
publish_now: true,
});
// Attach media
const withMedia = await client.posts.create({
content: 'Check out this photo!',
media_ids: ['media-uuid-here'],
publish_now: true,
});
// List posts
const { posts } = await client.posts.list({ status: 'done', limit: 10 });
// Get publish results
const results = await client.posts.results('post-id');
// Retry failed posts
await client.posts.retry('post-id');
// Update a scheduled post
await client.posts.update('post-id', { content: 'Updated content' });
// Delete a post
await client.posts.delete('post-id');
import fs from 'fs';
// Upload a file (handles the full 3-step flow automatically)
const media = await client.media.upload(
fs.readFileSync('photo.jpg'),
{ filename: 'photo.jpg', contentType: 'image/jpeg' }
);
// Use the media in a post
await client.posts.create({
content: 'Photo post!',
media_ids: [media.id],
publish_now: true,
});
// List media
const { media: files } = await client.media.list({ type: 'image' });
// Delete media
await client.media.delete('media-id');
// Generate an image from a prompt
const image = await client.ai.generateImage({
prompt: 'A professional social media banner with abstract shapes',
model: 'flux-schnell',
aspect_ratio: '16:9',
});
// Use it in a post
await client.posts.create({
content: 'AI-generated visual!',
media_ids: [image.media_id],
publish_now: true,
});
Available models: nano-banana-pro, ideogram-v2, gemini-3-pro, flux-schnell
Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4, 4:5, 5:4
import PostEverywhere, {
AuthenticationError,
RateLimitError,
ValidationError,
InsufficientCreditsError,
} from 'posteverywhere';
try {
await client.posts.create({ content: 'Hello!' });
} catch (error) {
if (error instanceof AuthenticationError) {
console.error('Invalid API key');
} else if (error instanceof RateLimitError) {
console.error('Rate limited, retry after:', error.retryAfter);
} else if (error instanceof ValidationError) {
console.error('Bad request:', error.details);
} else if (error instanceof InsufficientCreditsError) {
console.error('Not enough AI credits');
}
}
const client = new PostEverywhere({
apiKey: 'pe_live_...', // Required
timeout: 120000, // Default: 120000ms (2 min)
maxRetries: 2, // Default: 2 (auto-retries on rate limits)
});
The SDK automatically retries on rate limit errors with exponential backoff.
Instagram, TikTok, YouTube, LinkedIn, Facebook, X (Twitter), and Threads. All platforms included on every plan.
FAQs
DEPRECATED — renamed to @posteverywhere/sdk. Run: npm install @posteverywhere/sdk. Same TypeScript SDK for Instagram, TikTok, YouTube, LinkedIn, Facebook, X, Threads & Pinterest.
The npm package posteverywhere receives a total of 5 weekly downloads. As such, posteverywhere popularity was classified as not popular.
We found that posteverywhere demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.

Security News
upm uses Node.js to deliver fast npm installs in about 250 KB, with a JavaScript API and security defaults.