<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Looped</title>
    <description>The latest articles on Forem by Looped (@nonlooped).</description>
    <link>https://forem.com/nonlooped</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3949159%2F42220d19-0785-4eb4-89ed-030ec6a29deb.png</url>
      <title>Forem: Looped</title>
      <link>https://forem.com/nonlooped</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/nonlooped"/>
    <language>en</language>
    <item>
      <title>Context bloat is the new bundle bloat</title>
      <dc:creator>Looped</dc:creator>
      <pubDate>Sun, 24 May 2026 23:42:57 +0000</pubDate>
      <link>https://forem.com/nonlooped/context-bloat-is-the-new-bundle-bloat-37ip</link>
      <guid>https://forem.com/nonlooped/context-bloat-is-the-new-bundle-bloat-37ip</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; AI coding agents are now part of the dev workflow, but most repos still treat context like it is free. It is not. &lt;code&gt;dist/&lt;/code&gt;, coverage output, source maps, generated clients, logs, snapshots, and lockfile churn all make agents waste attention. I built &lt;strong&gt;ContextLevy&lt;/strong&gt; as a small PR guardrail for that.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The thing nobody wants to admit
&lt;/h2&gt;

&lt;p&gt;Your AI coding agent reads your repo mess.&lt;/p&gt;

&lt;p&gt;Not always perfectly. Not always literally every file. But enough that messy repositories become worse environments for tools like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cursor&lt;/li&gt;
&lt;li&gt;Codex&lt;/li&gt;
&lt;li&gt;Claude Code&lt;/li&gt;
&lt;li&gt;Copilot&lt;/li&gt;
&lt;li&gt;local coding agents&lt;/li&gt;
&lt;li&gt;random CLI agents your team experiments with next week&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the mess usually does &lt;strong&gt;not&lt;/strong&gt; look dramatic.&lt;/p&gt;

&lt;p&gt;It looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+ dist/index.js
+ coverage/lcov.info
+ generated/client.ts
+ bundle.js.map
+ snapshots/
+ debug.log
+ package-lock.json with 9,000 changed lines
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;None of that necessarily breaks your app.&lt;/p&gt;

&lt;p&gt;But it does make your repo heavier to reason about.&lt;/p&gt;

&lt;p&gt;For humans, we learned to ignore junk.&lt;/p&gt;

&lt;p&gt;For agents, junk becomes context.&lt;/p&gt;




&lt;h2&gt;
  
  
  Bundle bloat already taught us this lesson
&lt;/h2&gt;

&lt;p&gt;Frontend devs understand bundle bloat because we learned to measure it.&lt;/p&gt;

&lt;p&gt;A pull request adding 30 KB of JavaScript is easy to miss.&lt;/p&gt;

&lt;p&gt;A bot comment saying this is harder to ignore:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Bundle size increased by 30 KB
Main chunk increased by 18 KB
Vendor chunk increased by 12 KB
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That comment does not replace engineering judgment.&lt;/p&gt;

&lt;p&gt;It creates friction at the right moment.&lt;/p&gt;

&lt;p&gt;Before the cost lands in &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That is the same mental model I think AI-heavy repos need now.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Bundle bloat was hidden cost for users.&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Context bloat is hidden cost for agents.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What is context bloat?
&lt;/h2&gt;

&lt;p&gt;Context bloat is when a repo accumulates files that are technically valid, but low-value or noisy for AI coding workflows.&lt;/p&gt;

&lt;h3&gt;
  
  
  Common examples
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File/change&lt;/th&gt;
&lt;th&gt;Why it is noisy&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;dist/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Usually generated output, not source of truth&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;coverage/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Huge text output that agents should rarely inspect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;*.map&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Source maps can be massive and low-signal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;generated clients&lt;/td&gt;
&lt;td&gt;Sometimes needed, often overwhelming&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lockfile churn&lt;/td&gt;
&lt;td&gt;Can dominate PR diffs with little semantic value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;snapshots&lt;/td&gt;
&lt;td&gt;Useful for tests, noisy for reasoning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;logs&lt;/td&gt;
&lt;td&gt;Almost never belong in repo context&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;agent instruction files&lt;/td&gt;
&lt;td&gt;Small changes can affect agent behavior a lot&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The issue is not that these files are always bad.&lt;/p&gt;

&lt;p&gt;The issue is that they should not become invisible cost.&lt;/p&gt;




&lt;h2&gt;
  
  
  “Just use &lt;code&gt;.gitignore&lt;/code&gt;” is not enough
&lt;/h2&gt;

&lt;p&gt;You should use &lt;code&gt;.gitignore&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Seriously.&lt;/p&gt;

&lt;p&gt;But &lt;code&gt;.gitignore&lt;/code&gt; only helps with files before they are tracked.&lt;/p&gt;

&lt;p&gt;It does not help much when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;generated files are intentionally committed&lt;/li&gt;
&lt;li&gt;old junk is already tracked&lt;/li&gt;
&lt;li&gt;snapshots grow over time&lt;/li&gt;
&lt;li&gt;lockfiles churn hard&lt;/li&gt;
&lt;li&gt;someone changes agent instructions in a risky way&lt;/li&gt;
&lt;li&gt;different tools use different ignore/indexing behavior&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also, &lt;code&gt;.gitignore&lt;/code&gt; is local hygiene.&lt;/p&gt;

&lt;p&gt;A PR comment is team hygiene.&lt;/p&gt;

&lt;p&gt;It shows up where the merge decision happens.&lt;/p&gt;




&lt;h2&gt;
  
  
  “Just tell the AI to ignore it” also does not scale
&lt;/h2&gt;

&lt;p&gt;This sounds good until you remember how real teams work.&lt;/p&gt;

&lt;p&gt;One dev uses Cursor.&lt;/p&gt;

&lt;p&gt;Another uses Claude Code.&lt;/p&gt;

&lt;p&gt;Someone else uses Codex.&lt;/p&gt;

&lt;p&gt;Someone runs a local model through a CLI.&lt;/p&gt;

&lt;p&gt;Next month, the team tries another agent entirely.&lt;/p&gt;

&lt;p&gt;Every tool has different rules for indexing, retrieval, file search, ignore behavior, and context selection.&lt;/p&gt;

&lt;p&gt;The repo is the shared layer.&lt;/p&gt;

&lt;p&gt;Cleaner repo context helps every tool downstream.&lt;/p&gt;




&lt;h2&gt;
  
  
  So I built ContextLevy
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;ContextLevy&lt;/strong&gt; is a small open-source tool that acts like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;bundle-size checks, but for AI coding context&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It runs on pull requests and flags diffs that add a lot of context weight.&lt;/p&gt;

&lt;h3&gt;
  
  
  It catches things like
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;committed build output&lt;/li&gt;
&lt;li&gt;coverage reports&lt;/li&gt;
&lt;li&gt;source maps&lt;/li&gt;
&lt;li&gt;generated clients&lt;/li&gt;
&lt;li&gt;large lockfile churn&lt;/li&gt;
&lt;li&gt;snapshots&lt;/li&gt;
&lt;li&gt;logs&lt;/li&gt;
&lt;li&gt;agent instruction changes&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  It can run as
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;a GitHub Action&lt;/li&gt;
&lt;li&gt;a GitHub App&lt;/li&gt;
&lt;li&gt;a local CLI&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  It does not
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;call an LLM&lt;/li&gt;
&lt;li&gt;upload your code&lt;/li&gt;
&lt;li&gt;judge code quality&lt;/li&gt;
&lt;li&gt;replace code review&lt;/li&gt;
&lt;li&gt;pretend to be an AI platform&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It just analyzes the diff and leaves a focused PR comment.&lt;/p&gt;

&lt;p&gt;That is the whole point.&lt;/p&gt;

&lt;p&gt;Small guardrail. Clear feedback.&lt;/p&gt;




&lt;h2&gt;
  
  
  What a ContextLevy comment is supposed to do
&lt;/h2&gt;

&lt;p&gt;The goal is not to shame people for committing generated files.&lt;/p&gt;

&lt;p&gt;Sometimes generated files belong in the repo.&lt;/p&gt;

&lt;p&gt;The goal is to make the cost visible:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ContextLevy · Warning · ~84k added context tokens

Largest contributors:
+ coverage/lcov.info
+ dist/index.js
+ generated/client.ts

Suggestion:
Consider ignoring coverage output and build artifacts unless they are intentionally tracked.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is it.&lt;/p&gt;

&lt;p&gt;Just a useful nudge before &lt;code&gt;main&lt;/code&gt; gets heavier.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why this is not just another AI wrapper
&lt;/h2&gt;

&lt;p&gt;Most AI devtools try to add more intelligence.&lt;/p&gt;

&lt;p&gt;ContextLevy does the opposite.&lt;/p&gt;

&lt;p&gt;It assumes the boring part matters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;what files exist&lt;/li&gt;
&lt;li&gt;what changed in the PR&lt;/li&gt;
&lt;li&gt;how much text was added&lt;/li&gt;
&lt;li&gt;whether that text is likely useful&lt;/li&gt;
&lt;li&gt;whether the repo is getting noisier over time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A lot of AI tooling discourse focuses on better models.&lt;/p&gt;

&lt;p&gt;But model quality is only half the story.&lt;/p&gt;

&lt;p&gt;The other half is context quality.&lt;/p&gt;

&lt;p&gt;Garbage context still hurts, even with better models.&lt;/p&gt;

&lt;p&gt;Bigger context windows do not fix this.&lt;/p&gt;

&lt;p&gt;They just make it easier to stuff more junk into the prompt.&lt;/p&gt;




&lt;h2&gt;
  
  
  The fair criticism
&lt;/h2&gt;

&lt;p&gt;The obvious criticism is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Couldn’t I make this with a script?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;You can also write your own formatter, linter, bundle-size checker, release script, changelog generator, and dependency bot.&lt;/p&gt;

&lt;p&gt;Most useful devtools are not valuable because the underlying idea is impossible.&lt;/p&gt;

&lt;p&gt;They are valuable because they package the boring workflow into something teams actually run.&lt;/p&gt;

&lt;p&gt;The value is in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;useful defaults&lt;/li&gt;
&lt;li&gt;CI integration&lt;/li&gt;
&lt;li&gt;PR comments&lt;/li&gt;
&lt;li&gt;config&lt;/li&gt;
&lt;li&gt;predictable output&lt;/li&gt;
&lt;li&gt;low setup cost&lt;/li&gt;
&lt;li&gt;making the issue visible consistently&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is what ContextLevy is trying to be.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who this is for
&lt;/h2&gt;

&lt;p&gt;ContextLevy makes sense if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;your team uses AI coding agents heavily&lt;/li&gt;
&lt;li&gt;your repo has lots of generated or build output&lt;/li&gt;
&lt;li&gt;your PRs often include noisy files&lt;/li&gt;
&lt;li&gt;you care about keeping AI context clean&lt;/li&gt;
&lt;li&gt;you want a lightweight CI guardrail&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It probably does &lt;strong&gt;not&lt;/strong&gt; make sense if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;your repo is tiny&lt;/li&gt;
&lt;li&gt;you barely use coding agents&lt;/li&gt;
&lt;li&gt;your team already has strict generated-file policies&lt;/li&gt;
&lt;li&gt;you do not want another PR check&lt;/li&gt;
&lt;li&gt;you expect semantic code review from it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last point matters.&lt;/p&gt;

&lt;p&gt;ContextLevy is not a reviewer.&lt;/p&gt;

&lt;p&gt;It is a warning light.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I think this will matter more
&lt;/h2&gt;

&lt;p&gt;AI coding agents are moving from autocomplete to actual development loops.&lt;/p&gt;

&lt;p&gt;People now ask agents to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;explain unfamiliar codebases&lt;/li&gt;
&lt;li&gt;implement cross-file features&lt;/li&gt;
&lt;li&gt;review pull requests&lt;/li&gt;
&lt;li&gt;debug CI failures&lt;/li&gt;
&lt;li&gt;migrate frameworks&lt;/li&gt;
&lt;li&gt;generate tests&lt;/li&gt;
&lt;li&gt;refactor architecture&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That means repo context is becoming part of the development environment.&lt;/p&gt;

&lt;p&gt;We already optimize package size.&lt;/p&gt;

&lt;p&gt;We already optimize test speed.&lt;/p&gt;

&lt;p&gt;We already optimize CI time.&lt;/p&gt;

&lt;p&gt;We already optimize dependency weight.&lt;/p&gt;

&lt;p&gt;So why are we pretending AI context is free?&lt;/p&gt;




&lt;h2&gt;
  
  
  My actual question
&lt;/h2&gt;

&lt;p&gt;I am not claiming ContextLevy is the final answer.&lt;/p&gt;

&lt;p&gt;I am trying to figure out if this problem deserves more serious tooling.&lt;/p&gt;

&lt;p&gt;Repo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/unloopedmido/contextlevy" rel="noopener noreferrer"&gt;https://github.com/unloopedmido/contextlevy&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I would genuinely like blunt feedback:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Is “context bloat” a real problem you have felt?&lt;/li&gt;
&lt;li&gt;Would you install a PR check for this?&lt;/li&gt;
&lt;li&gt;Are the default noisy-file categories correct?&lt;/li&gt;
&lt;li&gt;What would make this feel like a serious devtool instead of AI-tool noise?&lt;/li&gt;
&lt;li&gt;Is the bundle-size analogy clear, or does it feel forced?&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Final thought
&lt;/h2&gt;

&lt;p&gt;Bundle bloat became obvious once teams started measuring it.&lt;/p&gt;

&lt;p&gt;Context bloat is still mostly invisible.&lt;/p&gt;

&lt;p&gt;But as AI agents become normal parts of development, invisible repo noise will matter more.&lt;/p&gt;

&lt;p&gt;Maybe the fix is not complicated.&lt;/p&gt;

&lt;p&gt;Maybe it starts with a simple PR comment saying:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“This change adds a lot of context weight. Are you sure?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is what ContextLevy is trying to do.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>github</category>
      <category>githubactions</category>
    </item>
    <item>
      <title>I Built Cuekiyo: a Local-First Anime OP/ED Video Pipeline with React, FastAPI, yt-dlp and FFmpeg</title>
      <dc:creator>Looped</dc:creator>
      <pubDate>Sun, 24 May 2026 14:29:15 +0000</pubDate>
      <link>https://forem.com/nonlooped/i-built-cuekiyo-a-local-first-anime-oped-video-pipeline-with-react-fastapi-yt-dlp-and-ffmpeg-2k4k</link>
      <guid>https://forem.com/nonlooped/i-built-cuekiyo-a-local-first-anime-oped-video-pipeline-with-react-fastapi-yt-dlp-and-ffmpeg-2k4k</guid>
      <description>&lt;p&gt;I just released &lt;strong&gt;Cuekiyo v1.0.0&lt;/strong&gt;, an open-source local web app for building anime opening and ending compilation videos.&lt;/p&gt;

&lt;p&gt;The idea is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Pick anime titles → approve OP/ED songs → review YouTube clip candidates → export a finished MP4.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;No cloud editor. No upload step. No paid API dependency. The whole thing runs on your machine.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/unloopedmido/cuekiyo" rel="noopener noreferrer"&gt;https://github.com/unloopedmido/cuekiyo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I built this because the manual workflow for making anime opening/ending compilations is honestly painful. You end up with a bunch of browser tabs, copied timestamps, separate download commands, trimming tools, naming chaos, random folders, and repeated re-renders whenever one clip changes.&lt;/p&gt;

&lt;p&gt;Cuekiyo turns that into a guided local pipeline. It automates the boring parts, but still pauses at the moments where a human should make the decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Making a compilation video sounds simple until you actually try to do it cleanly.&lt;/p&gt;

&lt;p&gt;A typical manual workflow looks something like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pick the anime you want to include.&lt;/li&gt;
&lt;li&gt;Find the opening and ending theme names.&lt;/li&gt;
&lt;li&gt;Search YouTube for each song.&lt;/li&gt;
&lt;li&gt;Check which uploads are usable.&lt;/li&gt;
&lt;li&gt;Copy links or timestamps somewhere.&lt;/li&gt;
&lt;li&gt;Download the source videos.&lt;/li&gt;
&lt;li&gt;Trim each clip.&lt;/li&gt;
&lt;li&gt;Normalize or at least avoid wildly inconsistent audio.&lt;/li&gt;
&lt;li&gt;Add title overlays/lower-thirds.&lt;/li&gt;
&lt;li&gt;Stitch everything together.&lt;/li&gt;
&lt;li&gt;Re-render when something is wrong.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is not hard once. The problem is repetition.&lt;/p&gt;

&lt;p&gt;If you are making one clip, a normal video editor is enough. If you are making a structured compilation with many anime titles, many theme songs, multiple sources, consistent overlays, and predictable output folders, the workflow becomes more like a small media pipeline than a one-off edit.&lt;/p&gt;

&lt;p&gt;That was the actual problem I wanted to solve.&lt;/p&gt;

&lt;p&gt;Not “replace video editors.”&lt;/p&gt;

&lt;p&gt;More like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Give me a local studio that handles the repetitive pipeline work, while still letting me control the creative choices.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What Cuekiyo does
&lt;/h2&gt;

&lt;p&gt;Cuekiyo is built around a guided project flow.&lt;/p&gt;

&lt;p&gt;You create a project, choose anime titles, select whether you want openings, endings, or both, then move through a set of approval steps.&lt;/p&gt;

&lt;p&gt;The core flow is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Create a project&lt;/strong&gt;&lt;br&gt;
Name it, choose anime titles, pick the song types, and configure overlay/render defaults.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Select songs&lt;/strong&gt;&lt;br&gt;
Cuekiyo loads theme data and lets you approve which OP/ED tracks should be included.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Review clip candidates&lt;/strong&gt;&lt;br&gt;
The app sources YouTube candidates, but you still choose what actually gets used. You can also paste your own link when automation gets it wrong.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Trim and process clips&lt;/strong&gt;&lt;br&gt;
Cuekiyo downloads, probes, normalizes, cuts, and overlays clips locally.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Confirm render order&lt;/strong&gt;&lt;br&gt;
You choose the final order before rendering.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Export MP4&lt;/strong&gt;&lt;br&gt;
The final compilation is written to your local project folder.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The important design rule was this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Automation should handle labor, not taste.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is why Cuekiyo pauses at user gates. Choosing the right song, source clip, trim point, and final order is subjective. A pipeline can help, but it should not pretend to know your taste better than you do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why local-first?
&lt;/h2&gt;

&lt;p&gt;I wanted Cuekiyo to feel like a desktop creative tool, but with the development speed and UI flexibility of a web app.&lt;/p&gt;

&lt;p&gt;So instead of building a hosted SaaS product, Cuekiyo runs locally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The backend runs on your machine.&lt;/li&gt;
&lt;li&gt;The frontend runs in your browser.&lt;/li&gt;
&lt;li&gt;Project state lives in SQLite.&lt;/li&gt;
&lt;li&gt;Media files live under &lt;code&gt;data/projects/{id}/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Rendering happens through local FFmpeg.&lt;/li&gt;
&lt;li&gt;Nothing needs to be uploaded to a random cloud service.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That matters for this kind of app because video files are large, copyrighted media has legal/terms-of-service complexity, and creators often want direct control over their own files.&lt;/p&gt;

&lt;p&gt;Local-first also keeps the project simpler operationally. There is no user account system, no storage billing, no hosted render queue, no cloud worker fleet, and no database server to maintain.&lt;/p&gt;

&lt;p&gt;The trade-off is that users need local dependencies installed: Python, Node.js, FFmpeg, FFprobe, and yt-dlp. For v1, I accepted that trade-off because I wanted to ship the core product first.&lt;/p&gt;

&lt;p&gt;Long term, I want the install experience to become much closer to “download, open, create.”&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;Cuekiyo is split into a FastAPI backend and a React frontend.&lt;/p&gt;

&lt;p&gt;The main stack is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; FastAPI, SQLAlchemy, SQLite&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React 19, Vite, Tailwind CSS, shadcn/ui, React Router&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Media:&lt;/strong&gt; FFmpeg, FFprobe, yt-dlp&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overlay rendering:&lt;/strong&gt; Satori-based HTML-to-PNG overlays&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Metadata:&lt;/strong&gt; Jikan and AniList&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Progress updates:&lt;/strong&gt; WebSockets&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Project storage:&lt;/strong&gt; local SQLite database + local filesystem&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The frontend handles the guided workflow and review screens. The backend owns the pipeline, state transitions, media processing, and filesystem safety.&lt;/p&gt;

&lt;h2&gt;
  
  
  The architecture
&lt;/h2&gt;

&lt;p&gt;At a high level, Cuekiyo is a state machine wrapped around a media pipeline.&lt;/p&gt;

&lt;p&gt;The pipeline goes through stages like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DRAFT
→ LOAD_THEMES
→ SONG_SELECTION
→ SOURCING
→ AWAITING_CANDIDATES
→ DOWNLOADING
→ PROBING_NORMALIZING
→ CUTTING
→ OVERLAYING
→ AWAITING_RENDER_ORDER
→ RENDERING
→ COMPLETED
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Some stages run automatically. Others are user gates.&lt;/p&gt;

&lt;p&gt;The user gates are the important part:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Song selection&lt;/li&gt;
&lt;li&gt;Candidate review&lt;/li&gt;
&lt;li&gt;Optional trim/review decisions&lt;/li&gt;
&lt;li&gt;Final render order&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything else can be automated.&lt;/p&gt;

&lt;p&gt;A single FastAPI process owns the pipeline. Jobs run in background threads, and progress is pushed to the frontend over WebSockets. SQLite stores the project state, job state, and a heartbeat for the active pipeline lock.&lt;/p&gt;

&lt;p&gt;For v1, Cuekiyo uses one global pipeline lock. That means one project renders/processes at a time. This is intentionally simple. It avoids a lot of messy cross-project concurrency bugs while keeping crash recovery understandable.&lt;/p&gt;

&lt;p&gt;Is it the final architecture forever? No.&lt;/p&gt;

&lt;p&gt;But for a v1 local app, it is honest and maintainable.&lt;/p&gt;

&lt;h2&gt;
  
  
  The media pipeline
&lt;/h2&gt;

&lt;p&gt;The hardest part of Cuekiyo was not making a nice UI.&lt;/p&gt;

&lt;p&gt;The hardest part was making a media pipeline that does not immediately collapse under real-world weirdness.&lt;/p&gt;

&lt;p&gt;External media tools are powerful, but they fail in many ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A source video disappears.&lt;/li&gt;
&lt;li&gt;yt-dlp returns unexpected metadata.&lt;/li&gt;
&lt;li&gt;FFmpeg fails because of an encoder issue.&lt;/li&gt;
&lt;li&gt;A clip has weird duration or stream data.&lt;/li&gt;
&lt;li&gt;A path contains characters you forgot to handle.&lt;/li&gt;
&lt;li&gt;GPU encoding works on your machine but not someone else’s.&lt;/li&gt;
&lt;li&gt;A downloaded file exists, but a later processing artifact does not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cuekiyo tries to make those problems manageable by treating each stage as a separate pipeline step.&lt;/p&gt;

&lt;p&gt;Downloads, probing, normalization, cutting, overlaying, and rendering are distinct operations. That makes the flow easier to inspect, easier to retry, and easier to explain in the UI.&lt;/p&gt;

&lt;p&gt;I also made a point of passing subprocess arguments as argument arrays instead of shell strings. For a local media tool that touches user-provided links and filesystem paths, that is not optional polish. It is baseline safety.&lt;/p&gt;

&lt;h2&gt;
  
  
  GPU encoding and fallback
&lt;/h2&gt;

&lt;p&gt;One feature I wanted early was NVIDIA NVENC support.&lt;/p&gt;

&lt;p&gt;A lot of people doing local video work have NVIDIA GPUs, and hardware encoding can make rendering much faster. But hard-requiring NVENC would be a bad idea because not every machine supports it, and FFmpeg builds vary.&lt;/p&gt;

&lt;p&gt;So Cuekiyo probes for NVENC support and falls back to CPU encoding with &lt;code&gt;libx264&lt;/code&gt; when needed.&lt;/p&gt;

&lt;p&gt;That kind of fallback matters because local-first software has to handle different user machines gracefully. You cannot assume the environment is exactly like yours.&lt;/p&gt;

&lt;h2&gt;
  
  
  The frontend
&lt;/h2&gt;

&lt;p&gt;The frontend is built with React 19, Vite, Tailwind CSS, shadcn/ui, and React Router.&lt;/p&gt;

&lt;p&gt;The UI goal was not to look like a raw admin dashboard. I wanted it to feel more like a creative tool:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;project cards&lt;/li&gt;
&lt;li&gt;guided steps&lt;/li&gt;
&lt;li&gt;clear status states&lt;/li&gt;
&lt;li&gt;clip candidate review&lt;/li&gt;
&lt;li&gt;visible progress&lt;/li&gt;
&lt;li&gt;settings that affect the pipeline without feeling scary&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The frontend talks to the backend through API routes and WebSocket progress events. That live progress feedback is important because media work can take time. If the UI just sits there silently while FFmpeg runs, users assume something broke.&lt;/p&gt;

&lt;p&gt;Even when the backend is doing heavy work, the frontend should make the pipeline feel understandable.&lt;/p&gt;

&lt;h2&gt;
  
  
  The biggest design decision: pause only when the user needs to choose
&lt;/h2&gt;

&lt;p&gt;A lot of automation tools make one of two mistakes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;They automate too little, so the user still does all the boring work.&lt;/li&gt;
&lt;li&gt;They automate too much, so the user has to clean up wrong decisions afterward.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Cuekiyo’s middle ground is the user gate model.&lt;/p&gt;

&lt;p&gt;The app should not ask for confirmation after every tiny technical step. That would be annoying.&lt;/p&gt;

&lt;p&gt;But it also should not silently pick every YouTube source and every final order without review. That would be risky.&lt;/p&gt;

&lt;p&gt;So the pipeline auto-advances through mechanical stages and pauses at taste-based decisions.&lt;/p&gt;

&lt;p&gt;That model ended up making the product feel much better. It also made the backend easier to reason about because gated states became explicit parts of the state machine instead of random UI conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Known v1 trade-offs
&lt;/h2&gt;

&lt;p&gt;Cuekiyo v1.0.0 is not perfect, and I do not want to pretend it is.&lt;/p&gt;

&lt;p&gt;The biggest v1 trade-offs are:&lt;/p&gt;

&lt;h3&gt;
  
  
  One pipeline job at a time
&lt;/h3&gt;

&lt;p&gt;The global lock keeps the job runner simple and prevents multiple projects from fighting over local resources. The downside is that cross-project parallelism is not supported yet.&lt;/p&gt;

&lt;p&gt;For a local v1 release, I think this is acceptable. Parallel jobs are on the roadmap.&lt;/p&gt;

&lt;h3&gt;
  
  
  Simplified concat/crossfade graph
&lt;/h3&gt;

&lt;p&gt;The current rendering path supports the compilation flow, but the FFmpeg filter graph can become more sophisticated. A richer render graph would make future transitions and multi-clip layouts easier.&lt;/p&gt;

&lt;h3&gt;
  
  
  Retry can be smarter
&lt;/h3&gt;

&lt;p&gt;The current retry flow is good enough for the v1 model, but a more durable per-stage cursor would be better. That would let the app resume from the exact failed boundary instead of inferring it.&lt;/p&gt;

&lt;p&gt;These are not hidden issues. They are documented because I would rather be honest about the architecture than pretend every v1 decision is final.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;Building Cuekiyo taught me a few things.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Local-first apps still need product thinking
&lt;/h3&gt;

&lt;p&gt;It is easy to think “local tool” means “developer utility.” But Cuekiyo is not just a script with a UI. It needs onboarding, clear states, useful errors, and a workflow that makes sense to a non-author.&lt;/p&gt;

&lt;p&gt;The fact that it runs locally does not remove the need for product design.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. State machines are worth it for workflow-heavy apps
&lt;/h3&gt;

&lt;p&gt;Once an app has long-running jobs, user gates, retries, failures, cancellations, and progress events, implicit state becomes painful fast.&lt;/p&gt;

&lt;p&gt;Making the pipeline states explicit helped a lot.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. FFmpeg is powerful, but the wrapper code matters
&lt;/h3&gt;

&lt;p&gt;FFmpeg can do almost anything, but users should not have to care about the command graph. The real work is building a safe, inspectable layer around it.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. “Automate everything” is not always the right product
&lt;/h3&gt;

&lt;p&gt;The best version of Cuekiyo is not a bot that blindly creates videos. It is a studio that removes repetitive labor while keeping human choice in the loop.&lt;/p&gt;

&lt;p&gt;That distinction changed how I designed the whole app.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is next
&lt;/h2&gt;

&lt;p&gt;Now that v1.0.0 is public, the next focus is making Cuekiyo easier to try.&lt;/p&gt;

&lt;p&gt;The biggest priorities are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A better first-run experience&lt;/li&gt;
&lt;li&gt;A portable desktop-style release&lt;/li&gt;
&lt;li&gt;Better install/dependency checks&lt;/li&gt;
&lt;li&gt;Smarter retry behavior&lt;/li&gt;
&lt;li&gt;Parallel project jobs&lt;/li&gt;
&lt;li&gt;Richer render/crossfade options&lt;/li&gt;
&lt;li&gt;More creator-focused docs and demos&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The core pipeline works, but discoverability and install friction matter a lot for open-source projects. If someone is interested, they should be able to understand and try the project quickly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Cuekiyo started as a niche idea, but it became one of the most complete projects I have built so far.&lt;/p&gt;

&lt;p&gt;It combines full-stack app development, local-first architecture, media processing, background jobs, WebSocket progress, UI/UX design, and release engineering into one project.&lt;/p&gt;

&lt;p&gt;That is exactly the kind of project I wanted in my portfolio: not just a demo, but an actual tool with product decisions, trade-offs, and a real workflow.&lt;/p&gt;

&lt;p&gt;If you are interested in local-first tools, media automation, React/FastAPI apps, or just weirdly specific open-source software, feel free to check it out.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/unloopedmido/cuekiyo" rel="noopener noreferrer"&gt;https://github.com/unloopedmido/cuekiyo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Stars and feedback are genuinely appreciated.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>react</category>
      <category>fastapi</category>
      <category>ffmpeg</category>
    </item>
  </channel>
</rss>
