StreamClipper AI Faz 1: ingestion + sinyal analizi + STT + altyapı iskeleti

yt-dlp headless capture (15dk segmentleme), ses peak + chat velocity sinyal
tespiti, OpenAI Whisper STT (kelime zaman damgalı), BullMQ/Redis/Postgres
altyapısı ve kanal durumu + transkript kütüphanesi gösteren Next.js panel.
LLM virality skorlama, render/crop/altyazı ve multi-platform dağıtım bu
fazın kapsamı dışında.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-30 14:36:50 +03:00
co-authored by Claude Sonnet 5
commit eccc74166a
44 changed files with 3897 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import express from "express";
import { prisma } from "@streamclipper/db";
import { env } from "./env";
export function startServer() {
const app = express();
app.get("/health", (_req, res) => res.json({ ok: true }));
app.get("/status", async (_req, res) => {
const channels = await prisma.channel.findMany({
include: {
sessions: {
where: { endedAt: null },
orderBy: { startedAt: "desc" },
take: 1,
},
},
});
res.json({
channels: channels.map((c) => ({
id: c.id,
name: c.name,
isActive: c.isActive,
lastCheckedAt: c.lastCheckedAt,
recording: c.sessions.length > 0,
activeSessionId: c.sessions[0]?.id ?? null,
})),
});
});
app.listen(env.port, () => {
console.log(`[server] api-daemon listening on :${env.port}`);
});
}