Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
import { Platform, type PlatformValue } from '@/types/platform';
export const DOCS_URL = 'https://docs.trypost.it';
// Anchors of the per-network sections in the media knowledge-base page. The
// two Instagram and two LinkedIn variants share one section each.
const MEDIA_LIMITS_ANCHOR: Record<PlatformValue, string> = {
[Platform.Instagram]: 'instagram',
[Platform.InstagramFacebook]: 'instagram',
[Platform.Facebook]: 'facebook',
[Platform.Threads]: 'threads',
[Platform.X]: 'x-twitter',
[Platform.LinkedIn]: 'linkedin',
[Platform.LinkedInPage]: 'linkedin',
[Platform.TikTok]: 'tiktok',
[Platform.YouTube]: 'youtube',
[Platform.Pinterest]: 'pinterest',
[Platform.Bluesky]: 'bluesky',
[Platform.Mastodon]: 'mastodon',
[Platform.Discord]: 'discord',
[Platform.Telegram]: 'telegram',
[Platform.GoogleBusiness]: 'google-business-profile',
};
export const mediaLimitsDocsUrl = (platform: string): string => {
const anchor: string | undefined = MEDIA_LIMITS_ANCHOR[platform as PlatformValue];
return `${DOCS_URL}/knowledge-base/media${anchor ? `#${anchor}` : ''}`;
};
const PLATFORM_GUIDE_SLUG: Partial<Record<PlatformValue, string>> = {
[Platform.Instagram]: 'instagram',
[Platform.Facebook]: 'facebook',
[Platform.Threads]: 'threads',
[Platform.X]: 'x-twitter',
[Platform.LinkedIn]: 'linkedin',
[Platform.TikTok]: 'tiktok',
[Platform.YouTube]: 'youtube',
[Platform.Pinterest]: 'pinterest',
[Platform.Bluesky]: 'bluesky',
[Platform.Mastodon]: 'mastodon',
[Platform.Discord]: 'discord',
[Platform.Telegram]: 'telegram',
};
export const platformGuideDocsUrl = (platform: string): string | null => {
const slug = PLATFORM_GUIDE_SLUG[platform as PlatformValue];
return slug ? `${DOCS_URL}/platforms/${slug}` : null;
};