AI content pipeline · Vienna, Austria

The short-form studio built to protect the accounts it posts to.

Kuyash discovers trends, drafts scripts and captions, assembles 15–45s vertical videos, runs every output through a compliance agent, and is built to publish to Instagram Reels, TikTok and YouTube Shorts (Instagram tested live) — with truthful records and hard guardrails.

0
Tests passing
0
Architecture decisions
0
Target platforms
0
Frameworks · pure PHP

Published a real AI-assisted Reel to Instagram.
On that run, everything ran live except two steps (trend and text, which used mocks): the voice (OpenAI TTS), the footage (Pexels), the ffmpeg assembly, the compliance check, and the Zernio publish. The compliance check required an AI label for the synthetic voice.

Status

What this actually is.

I designed and built Kuyash myself, with AI coding tools under my direction — architecture, the PHP backend, the SQLite job queue, the compliance engine and the frontend — over about three months: ~26,000 lines of application PHP across 17 modules (plus a ~12,700-line test suite), 18 migrations, 26 architecture decision records, ~1,127 tests, 113 commits. No framework, no team.

Instagram is tested live; the TikTok and YouTube adapters are built but not yet live-tested.

A personal-first V1 — no paying customers, not enterprise. What it is: a real, running system with ~1,127 tests, hard guardrails and a strict prod/demo boundary.

V1 produces stock + text-to-speech video. That is functional, not cinematic — AI text-to-video is on the roadmap, not in this build.

There is no public hosted demo. Kuyash runs locally behind Caddy + Cloudflare Tunnel, so this page shows real screenshots and public code — not a click-through URL.

Overview

What makes it different.

Most content tooling optimises for volume. Kuyash optimises for the thing volume puts at risk: the account.

🛡️

Compliance is architecture

Automatic per-platform AI labels, a slop/variation scorer that blocks near-duplicates, enforced format rules (15–45s, 9:16) — and an audit-log entry for every decision.

✍️

Truthful approval records

Manual mode records a real human — account and timestamp. Auto mode records "auto-approved by the compliance agent". Never misrepresented, anywhere: UI, API or logs.

⛓️

Autonomy on a leash

Per-account daily post caps, a budget cap with a cost pre-flight — an over-budget run never starts — a kill switch, a daily digest, and automatic fallback to Manual on a quality drop.

🔍

The honesty invariant

Every fabricated figure carries a [SAMPLE] chip; real numbers are unmarked; an unreadable value says "couldn't read", never a fake 0. A real connected account never wears fake metrics.

🔌

Mock-first adapters

Every vendor — OpenAI, Pexels, Zernio, R2, ffmpeg — sits behind a provider-agnostic adapter with a mock. Swapping one is a single class plus one config line.

🏢

Multi-tenant from day one

workspace_id on every tenant table, enforced in every query. The UI is single-user in V1; the schema never had to be retrofitted.

Decisions

The calls I made — and what they cost.

Kuyash has no customers to point to. What it has is a trail of deliberate engineering decisions — here are the five I'd defend in an interview.

🧱

Pure PHP, no framework

I built on PHP 8.3 with no Laravel or Symfony, no composer.json, no build step. The alternative — a framework — would have handed me routing, an ORM and a queue for free. The cost I took on: more boilerplate and more surface area I own myself. Why it was worth it: no framework churn, full control of the job queue and the audit path down to the SQL, and a codebase a reviewer can read end-to-end in an afternoon without learning my abstractions.

🛡️

Compliance as architecture, not a feature

Every run passes a compliance agent that cannot be skipped, and the AI label for synthetic media is set automatically. The easy alternative is a compliance "check" bolted on at the end — simple to bypass, simple to forget. The cost: the pipeline is more rigid; there is no fast path that skips the gate. But the whole product exists to protect the account, and a gate you can route around is not a gate.

🧾

Append-only audit, enforced by the database

The event log is append-only through SQL triggers that abort any UPDATE or DELETE — a constraint, not a convention. I rejected trusting application code to "only insert". The cost: history is clumsier to touch. The payoff: you cannot rewrite the audit log even with direct SQL access, which is the one property that makes an audit log worth keeping.

🔌

Mock-first adapters

Every vendor — OpenAI, Pexels, Zernio, R2, ffmpeg — sits behind a provider-agnostic interface with a mock implementation; one config flag is the only difference between demo and live. The alternative was calling real APIs straight from core code. The cost is an extra layer per integration. In return I can build and test the whole pipeline offline for about zero dollars, swap a provider in one class plus one config line, and keep every vendor name out of the core logic.

✍️

No back door around compliance — not even the edit box

When a human edits a caption at the approval step, the edited text is re-scored through the same slop and AI-label rules before it can publish. I rejected trusting edited text just because a person touched it. The cost: an edit can be rejected by the same rules that gate generated content. But "nothing publishes without passing compliance" has to hold for human edits too, or it is not a guarantee.

The loop

One pipeline, twelve durable steps.

Every run is a chain of durable SQLite jobs. A crash re-queues the interrupted step; a unique idempotency key stops the same work being enqueued twice, and a watchdog reclaims jobs from dead workers. Compliance is never optional.

Interactive recreationRebuilt from the product's own PRODUCTION LINE — pick a step.
Every step is a durable, idempotent job — a crash resumes where it stopped.
📈

Trend-driven

Trend Radar surfaces rising topics in your niche; one click starts the full pipeline pinned to that topic.

📤

Bring your own video

Distribution-only: upload a finished clip and Kuyash handles captions, hashtags, compliance and scheduling. The fastest path, and the one I use most.

🗓️

Weekly plan

A calendar of publishing times, each slot in one of two modes — you add the video, or Kuyash makes one. Either way it still passes an approval gate.

The honesty invariant

Which of these numbers are real?

The product answers that question on every screen, without being asked — the showcase dataset is [SAMPLE]-labelled everywhere an operator can see it. Press the button and it will answer it here too.

Interactive recreationRebuilt from the dashboard's CONNECTED ACCOUNTS card.
@ai.neeidyInstagram
♥ —💬 —➤ —no data yet
7 followers
HealthyConnected
@smoke_ttTikTok
♥ 7K💬 406➤ 509SAMPLE
61.2K followersSAMPLE+69 today
Healthy
the third state
couldn't read
Your accounts could not be read just now
— this is not the same as having none.

Every figure marked “sample” is a stand-in, not a measurement. Follower counts without that mark come from the connected account.

Scheduling

The week, and who fills it.

Each publishing time carries one of two modes. Click an empty slot and choose — then watch what the day says afterwards.

Interactive recreationRebuilt from /plan — the real capture is further down. Europe/Istanbul

Nothing is published until you approve it — whichever way it was made.

Boundary

Real data never reaches the demo.

  • Inert — it never triggers the worker, spends money, publishes, or writes to the audit log.
  • One-command reversible — bin/demo-teardown.php removes exactly its own rows and files.
  • It refuses to install into a workspace in Auto mode or with live publishing on, unless explicitly overridden.
  • A real connected account is never given invented metrics — not even chipped ones.
The gate

The approval card, as it really works.

This is the screen the whole product exists to protect. Switch platform, edit the caption, flip Manual/Auto — and watch what the approval record says.

Interactive recreationRebuilt from /queue · the real capture is further down.
9:16 preview frame from the running system
[SAMPLE]0:229:16

Preview approval · run #27

awaiting approval checks passed AI label will be set
similarity to your recent posts 0.31 15–45s · 9:16 OK
0 of about 2200 characters

Approval mode

The record this will write:

Nothing here is invented: the chips, the record wording and the character limits are the product's own.

Autonomy

Guardrails, not good faith.

Auto mode is opt-in, and every way it can run away from you is capped, logged or reversible.

💳

Budget cap + cost pre-flight

Per workspace. A run that cannot afford to finish never starts — you never pay for half a video. The gate prices a stock-mode video at ≈ $0.10, the conservative per-job estimate in config/usage.php.

🛑

Kill switch

Stops all auto-approvals and holds queued auto-approved publishes instantly. Never touches manual decisions; every flip is audited.

📊

Quality score → Manual

When the rolling quality score drops, the workspace falls back to Manual on its own. The system reduces its own autonomy.

Under the hood

Architecture.

Deliberately dependency-light and inspectable: no frameworks, no build step, no composer.json.

Web
Caddy
TLS · security headers
Cloudflare Tunnel
no open ports
Application
PHP 8.3
routes · controllers · services
Server-rendered views
vanilla JS · custom CSS
Production
Worker
separate process · watchdog
SQLite job queue
durable · idempotent · retries
Event log
append-only
Adapters · mock-first
OpenAI
text · TTS
Pexels
stock footage
Zernio
publishing
ffmpeg
assembly · posters
Data & storage
SQLite (WAL)
workspace-scoped
Cloudflare R2
private · signed URLs
Proof, not mockups

Straight from the running system.

No recreations in this section — the panels above are interactive rebuilds, and every frame below is a real, unedited capture. Click any to enlarge.

Kuyash dashboard: real follower count unmarked beside [SAMPLE]-chipped demo accounts

Dashboard

Honest by default — real numbers unmarked, every stand-in labelled [SAMPLE].

Kuyash approval queue with preview, per-platform text and approve or reject

Approval queue

The preview, the text that will publish, and the decision — editable per platform before approving.

Kuyash weekly plan calendar with two per-slot modes

Weekly plan

Publishing times with two per-slot modes — you add the video, or Kuyash makes one.

Kuyash content library with real extracted poster frames

Content library

Posters extracted from the real files — every demo asset titled [SAMPLE].

Kuyash trend radar with every score marked sample

Trend Radar

No trend provider switched on — so every score is marked sample, and the page says it ranks nothing real.

Kuyash settings: kill switch, approval mode, daily and budget caps

Guardrails

Kill switch, approval mode with its exact record wording, daily post cap and monthly budget cap.

Captured from the running system · dark theme · English locale.

Stack

Built with.

PHP 8.3SQLite (WAL)Caddy Cloudflare TunnelCloudflare R2OpenAI PexelsffmpegZernio Vanilla JS
0
Tests passing
0
Architecture decisions
0
Migrations
0
% inspectable