Download frontend/src/lib/blog-posts.ts from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 6.62 kB
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/frontend/src/lib/blog-posts.ts
- Command line
-
hf download hf://spaces/new-arc/vector/frontend/src/lib/blog-posts.ts
-
curl -L -o blog-posts.ts https://huggingface.co/spaces/new-arc/vector/resolve/main/frontend/src/lib/blog-posts.ts
6.62 kB
| import type { Metadata } from "next"; | |
| import { getSiteUrl } from "@/lib/site"; | |
| import { creatorGuides } from "@/lib/creator-guides"; | |
| export { HOSTED_APP_URL, getSiteUrl } from "@/lib/site"; | |
| export interface BlogPost { | |
| /** Set for editorial content not yet translated; do not localize only its title. */ | |
| language?: "en"; | |
| slug: string; | |
| image?: { src: string; alt: string; width: number; height: number }; | |
| title: string; | |
| description: string; | |
| eyebrow: string; | |
| category: string; | |
| publishedAt: string; | |
| updatedAt: string; | |
| readingTime: string; | |
| author: string; | |
| keywords: string[]; | |
| summary: string; | |
| } | |
| export const blogPosts: BlogPost[] = [ | |
| { | |
| language: "en", | |
| slug: "tiktok-publishing-is-live", | |
| title: "TikTok publishing is now live in SupoClip", | |
| description: "Publish clips straight to TikTok, select TikTok and YouTube together on the web, and schedule ahead on Creator. Here’s how to get started.", | |
| eyebrow: "Product update", | |
| category: "Product updates", | |
| publishedAt: "2026-10-30", | |
| updatedAt: "2026-10-30", | |
| readingTime: "3 min read", | |
| author: "SupoClip", | |
| keywords: ["SupoClip TikTok publishing", "publish clips to TikTok", "TikTok and YouTube publishing", "schedule TikTok posts"], | |
| summary: "Your finished clips can now go straight to TikTok. Connect your account, pick a clip, and publish from SupoClip—without downloading and uploading it again.", | |
| }, | |
| ...creatorGuides.map((guide) => guide.post), | |
| { | |
| slug: "supoclip-vs-supo-live", | |
| image: { src: "/blog/supoclip-open-source-clipping.webp", alt: "Editorial illustration of a podcast recording becoming three vertical video clips", width: 1672, height: 941 }, | |
| title: "SupoClip vs supo.live: Why Open Source Wins", | |
| description: | |
| "Compare SupoClip and supo.live for AI video clipping. See why SupoClip wins for open-source control, self-hosting, and customizable video workflows.", | |
| eyebrow: "Supo.live Alternative", | |
| category: "Comparison", | |
| publishedAt: "2026-09-21", | |
| updatedAt: "2026-10-05", | |
| readingTime: "5 min read", | |
| author: "SupoClip", | |
| keywords: ["SupoClip vs supo.live", "supo.live alternative", "open-source video clipper", "self-hosted AI video clipping", "AI clip maker"], | |
| summary: | |
| "For creators and teams who want control over their clipping workflow, SupoClip is the better open-source alternative to supo.live.", | |
| }, | |
| { | |
| slug: "supoclip-vs-opusclip", | |
| title: "SupoClip vs OpusClip: A Sourced Comparison", | |
| description: | |
| "SupoClip vs OpusClip compared on deployment, pricing model, watermarks, model choice, and workflow, with a source linked for every claim.", | |
| eyebrow: "OpusClip Comparison", | |
| category: "Comparison", | |
| publishedAt: "2026-10-05", | |
| updatedAt: "2026-10-05", | |
| readingTime: "7 min read", | |
| author: "SupoClip", | |
| keywords: [ | |
| "SupoClip vs OpusClip", | |
| "OpusClip alternative", | |
| "OpusClip vs open source", | |
| "self-hosted OpusClip alternative", | |
| "OpusClip watermark", | |
| ], | |
| summary: | |
| "A side-by-side of what each product documents, where the two differ, and which one fits your workflow.", | |
| }, | |
| { | |
| slug: "self-host-supoclip-docker", | |
| title: "How to Self-Host SupoClip with Docker Compose", | |
| description: | |
| "Self-host SupoClip, the open-source AI video clipper: requirements, .env setup, a fully local Whisper + Ollama option, first-run checks, and a production checklist.", | |
| eyebrow: "Self-Hosting Guide", | |
| category: "Guide", | |
| publishedAt: "2026-10-05", | |
| updatedAt: "2026-10-05", | |
| readingTime: "9 min read", | |
| author: "SupoClip", | |
| keywords: [ | |
| "self-host SupoClip", | |
| "self-hosted AI video clipper", | |
| "open-source video clipper Docker", | |
| "self-hosted OpusClip alternative", | |
| "Whisper Ollama video clipping", | |
| ], | |
| summary: | |
| "A practical walkthrough of the repository's Docker Compose stack: what each service does, which keys you need, how to run without cloud AI, and what to harden before production.", | |
| }, | |
| { | |
| slug: "best-free-opusclip-alternative", | |
| title: "Free OpusClip Alternative: Self-Hosting Costs and Tradeoffs", | |
| description: "Looking for a free OpusClip alternative? Understand what self-hosting SupoClip costs, what you maintain, and when a paid hosted workflow is a better fit.", | |
| eyebrow: "OpusClip Alternative", | |
| category: "Comparison", | |
| publishedAt: "2026-05-07", | |
| updatedAt: "2026-10-26", | |
| readingTime: "6 min read", | |
| author: "SupoClip", | |
| keywords: [ | |
| "free OpusClip alternative", | |
| "OpusClip alternative", | |
| "AI clip maker", | |
| "free AI video clipper", | |
| "open-source OpusClip alternative", | |
| "YouTube shorts clipper", | |
| ], | |
| summary: "The SupoClip source is free. This guide explains the hardware, provider costs, and maintenance behind a self-hosted clipping workflow so you can decide whether it fits.", | |
| }, | |
| ]; | |
| export function getBlogPost(slug: string) { | |
| return blogPosts.find((post) => post.slug === slug); | |
| } | |
| /** Overlay translated title, description, and listing copy. Keywords stay English. */ | |
| export function applyBlogCopy(post: BlogPost, translate: (key: string) => string): BlogPost { | |
| if (post.language) return post; | |
| const slug = post.slug; | |
| return { | |
| ...post, | |
| title: translate(`${slug}.title`), | |
| description: translate(`${slug}.description`), | |
| eyebrow: translate(`${slug}.eyebrow`), | |
| category: translate(`${slug}.category`), | |
| readingTime: translate(`${slug}.readingTime`), | |
| summary: translate(`${slug}.summary`), | |
| image: post.image ? { ...post.image, alt: translate(`${slug}.imageAlt`) } : undefined, | |
| }; | |
| } | |
| export function getBlogPostMetadata(post: BlogPost): Metadata { | |
| const siteUrl = getSiteUrl(); | |
| const url = `${siteUrl}/blog/${post.slug}`; | |
| return { | |
| title: { absolute: `${post.title} | SupoClip` }, | |
| description: post.description, | |
| keywords: post.keywords, | |
| alternates: { | |
| canonical: url, | |
| }, | |
| openGraph: { | |
| title: post.title, | |
| description: post.description, | |
| type: "article", | |
| url, | |
| siteName: "SupoClip", | |
| publishedTime: post.publishedAt, | |
| modifiedTime: post.updatedAt, | |
| authors: [post.author], | |
| tags: post.keywords, | |
| images: post.image ? [{ url: post.image.src, width: post.image.width, height: post.image.height, alt: post.image.alt }] : undefined, | |
| }, | |
| twitter: { | |
| card: "summary_large_image", | |
| images: post.image ? [{ url: post.image.src, alt: post.image.alt }] : undefined, | |
| title: post.title, | |
| description: post.description, | |
| }, | |
| }; | |
| } | |