<?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>DEV Community: cz</title>
    <description>The latest articles on DEV Community by cz (@czmilo).</description>
    <link>https://dev.to/czmilo</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2967164%2F5112a40e-2fd3-437e-9cd5-7e7bb510c5ea.jpg</url>
      <title>DEV Community: cz</title>
      <link>https://dev.to/czmilo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/czmilo"/>
    <language>en</language>
    <item>
      <title>How We Hosted 10 Interactive 3D &amp; Simulation Workbenches Inside One Cloudflare Workers App Without Blowing the Bundle</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Sat, 05 Dec 2026 11:10:59 +0000</pubDate>
      <link>https://dev.to/czmilo/how-we-hosted-10-interactive-3d-simulation-workbenches-inside-one-cloudflare-workers-app-without-k72</link>
      <guid>https://dev.to/czmilo/how-we-hosted-10-interactive-3d-simulation-workbenches-inside-one-cloudflare-workers-app-without-k72</guid>
      <description>&lt;p&gt;&lt;strong&gt;The short answer:&lt;/strong&gt; if you want to serve ten heavy, browser-native 3D and simulation workspaces from a single full-stack Cloudflare Workers application, keep every rendering engine strictly behind a client-only dynamic adapter boundary. Server-render the metadata, access rules, and curriculum shell at the edge; lazy-load Three.js, physics loops, and course data into isolated client chunks only after hydration.&lt;/p&gt;

&lt;p&gt;That single architectural boundary is what allowed us to ship &lt;a href="https://seeitknowit.com" rel="noopener noreferrer"&gt;See It. Know It.&lt;/a&gt;—an interactive visual learning platform currently hosting 10 live courses and 234 interactive lessons spanning mechanical engineering, home electricity, Arduino/ESP32 robotics, seismic waves, networking protocols, distributed systems, algorithms, and Bitcoin cryptography—inside one TanStack Start + Cloudflare Workers codebase without tripping over Worker isolate memory limits or breaking SSR.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Engineering Constraint: Heavy Client Engines Meet Lean Edge Isolates
&lt;/h2&gt;

&lt;p&gt;Most interactive learning demos live on standalone single-page sites. When you build one 3D car engine viewer or one network packet visualizer, bundling Three.js into the root entry point is annoying but survivable.&lt;/p&gt;

&lt;p&gt;Things change quickly when ten distinct interactive workbenches share one domain, one authentication system, one database, and one checkout flow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spark to Wheels&lt;/strong&gt; (32 lessons): interactive 3D combustion, transmission, differential, and suspension models.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How It's Wired&lt;/strong&gt; (37 lessons): 3D home electrical panels, breakers, RCD fault simulations, and switching circuits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Learn Arduino&lt;/strong&gt; (16 lessons), &lt;strong&gt;RoverKit&lt;/strong&gt; (10 stages), and &lt;strong&gt;Robotics Lab&lt;/strong&gt; (12 lessons): 3D microcontrollers, autonomous robot car assembly, and cel-shaded PCB workbenches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Earthquake Simulator&lt;/strong&gt; (6 free lessons): 3D geological fault cutaway, P/S/Love/Rayleigh seismic wave particle motion, and building resonance charts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Protocol Explorer&lt;/strong&gt; (39 lessons), &lt;strong&gt;Designed to Scale&lt;/strong&gt; (40 lessons), &lt;strong&gt;Byte-Sized Algorithms&lt;/strong&gt; (24 lessons), and &lt;strong&gt;Learn Bitcoin&lt;/strong&gt; (18 labs using real cryptographic primitives via &lt;code&gt;@noble/curves&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At the same time, our backend runs on &lt;strong&gt;TanStack Start&lt;/strong&gt; (Vite 8 + &lt;code&gt;@cloudflare/vite-plugin&lt;/code&gt;) deployed to &lt;strong&gt;Cloudflare Workers (&lt;code&gt;workerd&lt;/code&gt;)&lt;/strong&gt; with &lt;strong&gt;Cloudflare D1&lt;/strong&gt; (SQLite + Drizzle ORM) and &lt;strong&gt;Better Auth&lt;/strong&gt;. Cloudflare Workers isolates operate within tight memory budgets (128 MB baseline per isolate) and do not expose browser globals like &lt;code&gt;window&lt;/code&gt;, &lt;code&gt;document&lt;/code&gt;, &lt;code&gt;HTMLCanvasElement&lt;/code&gt;, or WebGL contexts.&lt;/p&gt;

&lt;p&gt;If even one course accidentally pulls Three.js or a large lesson dataset into the server bundle:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;SSR crashes on missing DOM/WebGL globals, or forces fragile shims.&lt;/li&gt;
&lt;li&gt;The Worker bundle balloons, increasing memory pressure under concurrent requests.&lt;/li&gt;
&lt;li&gt;Learners visiting the homepage or reading a course overview download megabytes of unrelated 3D geometry for courses they never opened.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Unified Shell + Dynamic Adapter Pattern
&lt;/h2&gt;

&lt;p&gt;Instead of maintaining ten separate micro-frontends or ten custom route implementations, we unified every course page behind a single route (&lt;code&gt;src/routes/{-$locale}.courses.$slug.tsx&lt;/code&gt;) and a single client shell (&lt;code&gt;CoursePlayerShell&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;The key file is &lt;code&gt;components/courses/course-loader.ts&lt;/code&gt;, which defines a strict contract (&lt;code&gt;CourseAdapterProps&lt;/code&gt;) and a lazy loader map (&lt;code&gt;ADAPTER_LOADERS&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;ComponentType&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'react'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;CourseAdapterProps&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;courseSlug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;unlocked&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;freeLessonCount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;courseLang&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;onRequestUpgrade&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lessonId&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;requestedLessonId&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;CourseAdapterComponent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;ComponentType&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CourseAdapterProps&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;AdapterLoader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;CourseAdapterComponent&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;ADAPTER_LOADERS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;AdapterLoader&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s1"&gt;'spark-to-wheels'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/spark-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'how-its-wired'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/wired-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'learn-arduino'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/arduino-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;roverkit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/rover-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'protocol-explorer'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/protocol-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'learn-bitcoin'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/bitcoin-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'designed-to-scale'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/design-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'robotics-lab'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/robotics-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'byte-sized-algorithms'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/algorithms-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'earthquake-simulator'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./adapters/earthquake-adapter'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getCourseAdapterLoader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AdapterLoader&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="no"&gt;ADAPTER_LOADERS&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice what this contract accomplishes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Static analyzability for Vite 8&lt;/strong&gt;: Because every dynamic &lt;code&gt;import()&lt;/code&gt; path is a static string literal, Vite cleanly splits each course—its Three.js builders, shaders, lesson text, and localized dictionaries—into its own Rollup/Rolldown client chunk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero SSR contamination&lt;/strong&gt;: &lt;code&gt;CoursePlayerShell&lt;/code&gt; invokes &lt;code&gt;getCourseAdapterLoader(course.slug)&lt;/code&gt; strictly inside a client-side &lt;code&gt;useEffect&lt;/code&gt; hook. During SSR on Cloudflare Workers, the adapter code never executes and is never pulled into the server graph.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uniform platform capabilities&lt;/strong&gt;: Every adapter receives the exact same props for entitlement state (&lt;code&gt;unlocked&lt;/code&gt;, &lt;code&gt;freeLessonCount&lt;/code&gt;), active in-course language (&lt;code&gt;courseLang&lt;/code&gt;), upgrade triggers (&lt;code&gt;onRequestUpgrade&lt;/code&gt;), and deep-linked lessons (&lt;code&gt;requestedLessonId&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff04oskxzjunv4wah3sis.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff04oskxzjunv4wah3sis.png" alt="Diagram of the request and rendering pipeline separating edge SSR metadata and access checks from client-side dynamic adapter chunk loading and Three.js WebGL initialization" width="799" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Handling Race Conditions and Cleanup on Course Navigation
&lt;/h2&gt;

&lt;p&gt;When a learner jumps quickly from &lt;em&gt;Protocol Explorer&lt;/em&gt; to &lt;em&gt;Spark to Wheels&lt;/em&gt; and then to &lt;em&gt;Earthquake Simulator&lt;/em&gt;, async chunk loading can resolve out of order. A naive &lt;code&gt;setState&lt;/code&gt; inside &lt;code&gt;.then()&lt;/code&gt; would mount the wrong workbench on top of the current route.&lt;/p&gt;

&lt;p&gt;Inside &lt;code&gt;CoursePlayerShell&lt;/code&gt;, we guard adapter state with both a cancellation flag and a slug-tagged state object:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;adapter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setAdapter&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useState&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nc"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;CourseAdapterComponent&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nc"&gt;AdapterComponent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;adapter&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;course&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;adapter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Component&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;active&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;setAdapter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;setAdapterError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;loader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getCourseAdapterLoader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;course&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;loader&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;setAdapterError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Interactive workspace is being connected for this course.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="nf"&gt;loader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mod&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;active&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;setAdapter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;course&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;mod&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`[course-loader] Failed loading ${course.slug}:`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;active&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;setAdapterError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Could not load the interactive 3D workspace. Please reload.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;active&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;course&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tagging &lt;code&gt;adapter&lt;/code&gt; with &lt;code&gt;{ slug, Component }&lt;/code&gt; ensures that even during synchronous React transitions before the effect cleans up, the shell never renders the previous course's component against the new course's props.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping Three.js Resilient Inside React 19
&lt;/h2&gt;

&lt;p&gt;Even after isolating the course chunk on the client, Three.js scenes need careful lifecycle management inside React:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mount only when &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt; exists and clean up WebGL resources&lt;/strong&gt;: In &lt;code&gt;EarthquakeStage3D&lt;/code&gt;, the Three.js scene controller is instantiated asynchronously on mount and disposed on unmount so navigating between courses does not leak WebGL contexts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep high-frequency updates out of React re-renders&lt;/strong&gt;: Projected 2D annotation pins over a 3D geological block move every frame when the user orbits the camera. Instead of storing 60 FPS coordinates in React state, we push frame updates directly to pin DOM refs and run a lightweight vertical de-overlapping pass (&lt;code&gt;deoverlapPins&lt;/code&gt;) so labels stay legible without triggering React reconciliation loops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Respect &lt;code&gt;prefers-reduced-motion&lt;/code&gt; and provide a graceful fallback&lt;/strong&gt;: If WebGL initialization fails on a restricted device or headless browser, the stage switches to a fallback state rather than crashing the surrounding lesson text and charts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1lx32k2yhntbbcf5vpex.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1lx32k2yhntbbcf5vpex.png" alt="Technical illustration contrasting a monolithic WebGL bundle with a clean client-side Three.js canvas lifecycle featuring ref-driven 2D annotation overlays and graceful fallback handling" width="799" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Lives on the Edge Server Instead?
&lt;/h2&gt;

&lt;p&gt;Keeping the 3D engine off the server does not mean the server sits idle. On every request, our Cloudflare Worker handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SSR HTML and SEO metadata&lt;/strong&gt;: Each course route renders complete structured metadata, curriculum highlights, and explanatory sections (&lt;code&gt;CourseSeoSection&lt;/code&gt;) directly from &lt;code&gt;config/courses.ts&lt;/code&gt;, so search engines and readers see meaningful content before the 3D chunk finishes downloading.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single-source-of-truth access control&lt;/strong&gt;: &lt;code&gt;lib/course-access.ts&lt;/code&gt; evaluates whether a learner has full access (free course like &lt;em&gt;Earthquake Simulator&lt;/em&gt;, active subscription, admin complimentary grant, or verified $4.99 single-course purchase) or the default first 3 free lessons.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy-friendly analytics&lt;/strong&gt;: A lightweight &lt;code&gt;POST /api/courses/$slug/view&lt;/code&gt; endpoint records workspace views only after the client adapter actually loads—never counting raw SSR crawls—and deduplicates anonymous viewers via a local random UUID with zero IP addresses or browser fingerprints stored.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runtime configuration from D1&lt;/strong&gt;: Featured courses, hidden slugs, single-course pricing, and subscription settings live in Cloudflare D1 (&lt;code&gt;site_settings&lt;/code&gt;), taking effect immediately without redeploying the Worker.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lessons Worth Remembering Before You Build Your Own Multi-Workbench App
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Draw the SSR/WebGL boundary early, not after bundle bloat hits.&lt;/strong&gt; Once Three.js imports creep into shared utility modules, untangling them from server routes is painful.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Standardize the adapter interface before course #3.&lt;/strong&gt; Defining &lt;code&gt;CourseAdapterProps&lt;/code&gt; once meant adding our 10th course (&lt;em&gt;Earthquake Simulator&lt;/em&gt;) required zero changes to authentication, billing, fullscreen handling, or analytics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure real client load, not just SSR TTFB.&lt;/strong&gt; Fast edge HTML is great, but learners care about how quickly the 3D canvas becomes interactive. Isolating per-course chunks keeps each course's download strictly proportional to what the user actually clicked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never gate your best demo behind a login wall.&lt;/strong&gt; Letting anyone open the first 3 lessons of every course—or the entire &lt;em&gt;Earthquake Simulator&lt;/em&gt;—directly in the browser lets the engineering speak for itself.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want to poke around the live 3D workbenches and see how fast the edge shell hands off to the client canvas, you can try any course free in your browser at &lt;a href="https://seeitknowit.com" rel="noopener noreferrer"&gt;See It. Know It.&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>webdev</category>
      <category>workers</category>
      <category>serverless</category>
    </item>
    <item>
      <title>I Built a Network Protocol Explorer as a Deterministic Visual Lesson</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Sat, 28 Nov 2026 12:04:09 +0000</pubDate>
      <link>https://dev.to/czmilo/i-built-a-network-protocol-explorer-as-a-deterministic-visual-lesson-1p37</link>
      <guid>https://dev.to/czmilo/i-built-a-network-protocol-explorer-as-a-deterministic-visual-lesson-1p37</guid>
      <description>&lt;p&gt;Network protocols are easier to learn when you can watch a packet move, pause the sequence, and inspect the bytes that caused the next event. That is the idea behind &lt;a href="https://protocolexplorer.org/" rel="noopener noreferrer"&gt;Protocol Explorer&lt;/a&gt;: a browser based learning workspace that turns protocol lessons into synchronized device scenes, packet events, and explanations.&lt;/p&gt;

&lt;p&gt;The important engineering choice was not “make it 3D.” It was to make the visual story traceable to structured lesson data. A router animation is only useful if the learner can ask: which packet is this, which step are we on, and what does this field mean?&lt;/p&gt;

&lt;h2&gt;
  
  
  The scene is a view of lesson data
&lt;/h2&gt;

&lt;p&gt;The current workspace is implemented in React with original isometric SVG devices. The visual network is assembled from laptops, routers, switches, servers, cameras, and a network cloud. These are not video frames. A lesson provides ordered steps and events; the workspace renders the relevant devices and packet paths for the selected step.&lt;/p&gt;

&lt;p&gt;That separation matters. Playback, route selection, node layout, and address updates live in pure functions under &lt;code&gt;lib/learning/&lt;/code&gt;. They can calculate what should happen without depending on the DOM or a database. React then presents that state and handles user input. If the learner changes steps, the interface can derive the scene again instead of trusting a pile of animation side effects.&lt;/p&gt;

&lt;p&gt;The course facts are also kept outside the old upstream bundle. The data set has 39 protocol courses and 231 stable step positions. There are 557 illustrative packet fixtures. The stable positions are useful because progress and links can keep pointing to the same lesson step as the interface changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  A packet should be inspectable, not decorative
&lt;/h2&gt;

&lt;p&gt;The packet inspector lets a learner select a packet field or byte range and view hexadecimal and ASCII representations. Captures include field names, offsets, and numeric values. Some bytes are intentionally unknown or encrypted. Those render as &lt;code&gt;??&lt;/code&gt;; the interface does not invent plaintext for ciphertext.&lt;/p&gt;

&lt;p&gt;This keeps the animation honest. A packet moving from a client to a router is a teaching model. The bytes shown in the inspector are an illustrative fixture, not a promise that every on-screen exchange is a live capture from a production network. Keeping that distinction visible is better than implying more fidelity than the data supports.&lt;/p&gt;

&lt;h2&gt;
  
  
  The learning loop
&lt;/h2&gt;

&lt;p&gt;Each lesson is broken into steps. Playback advances events in order; a learner can pause, restart, move backward or forward, or jump directly to a step. The scene and the step explanation change together. Reduced motion suppresses animation while preserving step controls, and a hidden page pauses the animation clock.&lt;/p&gt;

&lt;p&gt;The experience also has a useful fallback: the explanation remains textual. A diagram may make a route easier to follow, but it cannot be the only place where the lesson exists. Screen readers, reduced-motion users, mobile layouts, and someone reading a copied explanation all benefit from that rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned building it with AI
&lt;/h2&gt;

&lt;p&gt;For this project, Opus 5.5 and Gemini 4 Neon took roughly 40 minutes to an hour to produce a strong 3D result. GLM 5.4 Max took around four hours, and the result was also good. The version people can see today was built with GLM 5.4 Max. Those are observations from this build, not a controlled benchmark: task framing, iteration count, codebase context, and visual criteria all affect the time.&lt;/p&gt;

&lt;p&gt;My takeaway is that model capability and production speed are separate questions. A model can produce an appealing scene quickly, while the work of making lessons stable, inspectable, accessible, and compatible with progress links remains. The educational value comes from connecting visuals to explicit facts and state, not from the render alone.&lt;/p&gt;

&lt;p&gt;Protocol Explorer is still an evolving learning product. Its packet fixtures are illustrative, and the scene is a teaching model. But the core pattern is reusable: represent the lesson as data, derive deterministic state from it, and make every visual event explainable in text.&lt;/p&gt;

&lt;h2&gt;
  
  
  A concrete example of the boundary
&lt;/h2&gt;

&lt;p&gt;Imagine a lesson step that explains a request passing from a client through an intermediary toward a server. The scene needs to know which endpoints are visible, which route segment is active, and which packet label belongs to the current event. The explanation needs to name the transition. The inspector needs to open the matching packet fixture. These are three views of the same lesson moment, so they should share a stable packet reference rather than independently guessing which item is current.&lt;/p&gt;

&lt;p&gt;This is also why a packet list is useful alongside the animation. A learner can select an earlier packet after playback has moved on. The selected packet does not rewrite the lesson state; it changes what the inspector focuses on. Separating playback selection from inspection selection avoids a subtle usability problem: browsing data should not accidentally restart the scene or mark a different step complete.&lt;/p&gt;

&lt;p&gt;For course authors, structured data creates an explicit review surface. A reviewer can check the event order, inspect the referenced packet, and read the matching explanation. That is more work up front than drawing a sequence once, but it helps when the course expands or when a translation needs to preserve the same technical meaning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I would measure next
&lt;/h2&gt;

&lt;p&gt;The implementation gives us observable interaction points, but it does not by itself tell us whether learners understand more. A useful next evaluation would compare learners’ ability to explain a route or identify a field before and after a lesson, while recording whether they used playback, text, or the inspector. We would also need to compare against a text-only lesson with equivalent content, not against an unrelated baseline.&lt;/p&gt;

&lt;p&gt;I would avoid treating time-on-page as learning. Someone who pauses for ten minutes may be carefully checking a field or may simply have walked away. Better questions include whether the learner can predict the next hop, distinguish an address from a port, or explain why a particular field is visible in one packet and not another. Those are outcomes a course can define and review.&lt;/p&gt;

&lt;p&gt;Accessibility needs evaluation too. Reduced motion and keyboard controls are implementation features, but only actual use can show whether the controls are discoverable and whether the textual pathway carries enough context. A visualization is more inclusive when it does not assume that every learner prefers motion, color, or spatial diagrams.&lt;/p&gt;

&lt;p&gt;This is why I describe the project as a visual learning workspace rather than a proven faster-learning method. The first claim is visible in the product. The second needs evidence. Keeping that distinction clear makes the product easier to trust and gives us a better roadmap for research. &lt;a href="https://protocolexplorer.org/" rel="noopener noreferrer"&gt;Protocol Explorer&lt;/a&gt;&lt;/p&gt;

</description>
      <category>education</category>
      <category>webdev</category>
    </item>
    <item>
      <title>PoseWear makes AI try-on easier by giving every reference image a job</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Tue, 24 Nov 2026 06:38:14 +0000</pubDate>
      <link>https://dev.to/czmilo/posewear-makes-ai-try-on-easier-by-giving-every-reference-image-a-job-253</link>
      <guid>https://dev.to/czmilo/posewear-makes-ai-try-on-easier-by-giving-every-reference-image-a-job-253</guid>
      <description>&lt;p&gt;&lt;strong&gt;The most useful idea in PoseWear is simple: separate the person, the outfit, and the pose before asking an image model to combine them.&lt;/strong&gt; That turns a vague request into something a developer can inspect, debug, and compare across providers. The open-source project is worth exploring even if you never deploy a fashion application: it is a compact example of a browser interface translating user intent into several incompatible multimodal APIs.&lt;/p&gt;

&lt;p&gt;I reviewed the &lt;a href="https://github.com/atuizz/posewear/tree/0c97ab4b7e68e6212a5839d8320957f90627e629" rel="noopener noreferrer"&gt;PoseWear repository at commit 0c97ab4&lt;/a&gt;, including &lt;code&gt;build.py&lt;/code&gt;, &lt;code&gt;src/studio.js&lt;/code&gt;, the proxy function, and the browser tests. I also examined three existing showcase groups and an archived, five-model production smoke test from the separate Posewear web application. The images below distinguish those two sources. This is a source review with existing outputs, rather than a newly run benchmark.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the contract
&lt;/h2&gt;

&lt;p&gt;A fashion request usually contains several independent requirements. The face should remain recognisable. The coat should come from the clothing reference. The body should follow a sketch. The background should follow a written direction. If all of those are left implicit, a plausible image can still be the wrong answer.&lt;/p&gt;

&lt;p&gt;In the open-source implementation, &lt;code&gt;compose()&lt;/code&gt; names the image ranges and gives them roles. The actual generation array is assembled as person images, garment images, pose images, and expression images. The prompt uses that same order. With one image in each of the first three categories, a simplified contract is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Image 1: preserve this adult person's appearance.
Image 2: reproduce this outfit, including layers and accessories.
Image 3: use this body pose and camera angle.
Use the pose sketch as guidance; do not draw its guide marks.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is an explanation of the contract, not a drop-in replacement for the repository's complete prompt. &lt;code&gt;compose()&lt;/code&gt; also handles missing portraits, multiple clothing pieces, expressions, and output styles. The important invariant is that the prose and attachment order agree. See the actual &lt;a href="https://github.com/atuizz/posewear/blob/0c97ab4b7e68e6212a5839d8320957f90627e629/src/studio.js" rel="noopener noreferrer"&gt;prompt and request implementation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The separate &lt;code&gt;posewear.net&lt;/code&gt; application now normalises the first three references as pose, outfit, person. That is a different contract. Copying a prompt between the two without changing its numbering can change which image supplies identity. This small detail is more actionable than adding another paragraph of descriptive adjectives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three examples that expose different failure modes
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. A standing outfit: start with a readable baseline
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhfb2d5at8xbmqajjo6lo.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhfb2d5at8xbmqajjo6lo.webp" alt="Standing pose, beige coat outfit, portrait, and an ImageGen showcase result" width="800" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first group, &lt;code&gt;sc-001&lt;/code&gt;, contains a front-facing sketch with both hands behind the head, a beige coat over a black turtleneck and pleated skirt, tights and tall boots, and a long-haired portrait. The showcase result keeps the raised elbows, the long coat, and the layered black outfit. The face is rendered as a smiling adult with a similar hairstyle.&lt;/p&gt;

&lt;p&gt;This is a useful baseline because the full body and most garment boundaries are visible. Check the coat length, skirt pleats, boots, and shoulder bag separately. A generally convincing image can still omit a belt or change the bag. “Looks realistic” is too broad an acceptance test.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A low-angle reclining pose: test geometry
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fixq8migoqmfn2bqcx43w.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fixq8migoqmfn2bqcx43w.webp" alt="Reclining pose, grey hoodie outfit, portrait, and an ImageGen showcase result" width="800" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;sc-003&lt;/code&gt;, the references describe a person lying back, one knee raised, seen from a low camera position. The outfit includes a grey hoodie, jeans, black shoes, and a bag. The result places a shoe sole close to the camera and makes the raised knee prominent. Those visible relationships explain the intended perspective better than the word “dynamic.”&lt;/p&gt;

&lt;p&gt;The clothing reference also contains a cap that is absent from the result. That is an observable omission, not evidence that the whole task failed. It demonstrates why accessory fidelity deserves its own review. Inspect limb overlap and the relationship between the foreground shoe and the torso as well as the face.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. A seated anime image: test which properties survive a style change
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7y2c41zm9i2clo8cgy6s.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7y2c41zm9i2clo8cgy6s.webp" alt="Side-sitting pose, blue outfit, portrait, and an ImageGen anime showcase result" width="800" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Group &lt;code&gt;sc-006&lt;/code&gt; combines a side-sitting sketch with one arm raised, a pale blue top and cardigan, white trousers, sandals, a bag, and a short-haired portrait. The result is a drawn character on a pastel background, with the raised arm and folded legs still legible.&lt;/p&gt;

&lt;p&gt;Here, photographic skin texture is intentionally replaced by illustration. A fair review asks whether hairstyle, clothing colours, pose, and accessory placement remain understandable. It should not demand pixel-level facial identity across photography and anime. These three showcase outputs were recorded as built-in ImageGen illustrations on 24 November 2026; they are not labelled outputs from the five models in the next section. Their local provenance record preserves that distinction.&lt;/p&gt;

&lt;h2&gt;
  
  
  The adapter is where “compatible” gets interesting
&lt;/h2&gt;

&lt;p&gt;The upstream workbench does not run an image model in the browser. It prepares images and calls a provider. Uploaded portraits are resized and converted through canvas; library references have their own preparation path. The visible result depends on both this preparation and the remote model.&lt;/p&gt;

&lt;p&gt;The provider branches are materially different:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenAI-style edits use multipart &lt;code&gt;FormData&lt;/code&gt; with image attachments.&lt;/li&gt;
&lt;li&gt;Gemini-style requests put text and base64 image parts into &lt;code&gt;generateContent&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Seedream uses a JSON image-generation request with reference data URLs.&lt;/li&gt;
&lt;li&gt;Custom endpoints can select different protocols and image field names.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is another detail worth reading: some compatibility fallbacks can eventually produce a text-only request. The UI returns a warning when reference images were not accepted. That warning belongs in a comparison record. A successful HTTP response does not prove that the provider used the person and outfit images.&lt;/p&gt;

&lt;h2&gt;
  
  
  What five existing model outputs actually show
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fplmrli2b30yey4zjaq51.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fplmrli2b30yey4zjaq51.webp" alt="Five archived model outputs for the same standing outfit" width="799" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The archived Posewear application test used the standing group, one adult, a neutral studio background, and the same prompt and three attachments for all five calls. It used the older person–outfit–pose order. Each model produced one result. These are the configured endpoint labels in that application, not a claim about every product carrying a similar name.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Configured model&lt;/th&gt;
&lt;th&gt;Original output&lt;/th&gt;
&lt;th&gt;Visible observation in this sample&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPT Image 2.6&lt;/td&gt;
&lt;td&gt;832 × 1248&lt;/td&gt;
&lt;td&gt;A relatively tight full-body composition with the coat and boots prominent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Seedream 5.5&lt;/td&gt;
&lt;td&gt;836 × 1254&lt;/td&gt;
&lt;td&gt;Broad, readable coat panels and soft, fairly even studio light&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kling Image 4.0&lt;/td&gt;
&lt;td&gt;1664 × 2496&lt;/td&gt;
&lt;td&gt;A larger delivered raster, with restrained contrast in the displayed reduction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MiniMax H3&lt;/td&gt;
&lt;td&gt;832 × 1248&lt;/td&gt;
&lt;td&gt;A stronger floor shadow to the right and deeper tonal contrast&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MAI Image 2.7&lt;/td&gt;
&lt;td&gt;912 × 1152&lt;/td&gt;
&lt;td&gt;More space around the subject; the delivered image is not 2:3&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All five retain the broad raised-arm pose and beige-over-black styling. That is the defensible shared result. The source files and comparison manifest support the dimensions and input conditions. They do not establish a universal winner, identity score, average latency, or success rate. The comparison board uses equal display boxes without stretching; inspect the individual AVIF files for closer reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reusable engineering lesson
&lt;/h2&gt;

&lt;p&gt;Make reference roles explicit, keep image order deterministic, and record what was actually sent. Then preserve enough metadata to explain a surprising result. The upstream project stores generated history in IndexedDB and configuration in localStorage; history export includes prompts and parameters. Its mocked browser tests exercise request behaviour and errors, but their fixture images should never be presented as model-quality evidence. The &lt;a href="https://github.com/atuizz/posewear/blob/0c97ab4b7e68e6212a5839d8320957f90627e629/AGENTS.md" rel="noopener noreferrer"&gt;repository guide&lt;/a&gt; documents those boundaries.&lt;/p&gt;

&lt;p&gt;I recommend this open-source project as a readable integration example and a practical reference library. For a quick way to try the three-reference workflow, visit &lt;a href="https://posewear.net/" rel="noopener noreferrer"&gt;Posewear&lt;/a&gt;; the hosted application has its own accounts, model configuration, and pricing. If you prefer bringing your own API key and inspecting the browser code, start with the upstream repository. Thanks to &lt;strong&gt;atuizz&lt;/strong&gt;, the project contributors, and the original reference-library creators for making the workflow understandable and reusable.&lt;/p&gt;

</description>
      <category>webdev</category>
    </item>
    <item>
      <title>How I Built a Full Image-to-3D Studio on ONE Cloudflare Worker + D1 (Zero Queues, Zero KV, Zero FFmpeg)</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:31:59 +0000</pubDate>
      <link>https://dev.to/czmilo/how-i-built-a-full-image-to-3d-studio-on-one-cloudflare-worker-d1-zero-queues-zero-kv-zero-8i6</link>
      <guid>https://dev.to/czmilo/how-i-built-a-full-image-to-3d-studio-on-one-cloudflare-worker-d1-zero-queues-zero-kv-zero-8i6</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; You can run a complete production Image-to-3D studio—including async AI inference orchestration, an atomic FIFO credit ledger, GLB binary verification, interactive PBR/skeletal viewing, and 1080p 360° MP4/WebM/GIF turntable export—inside &lt;strong&gt;a single Cloudflare Worker plus one D1 database&lt;/strong&gt;, with zero Cloudflare Queues, zero Durable Objects, zero KV, zero mandatory object storage, and zero server-side FFmpeg. That is the exact production architecture running &lt;a href="https://idolmax.net/" rel="noopener noreferrer"&gt;Idol Max&lt;/a&gt; today.&lt;/p&gt;

&lt;p&gt;Below is the concrete engineering breakdown: every boundary, timeout, binary parser, SQLite batch guard, and browser WebCodecs decision—along with the real constraints and tradeoffs we accepted to keep infrastructure overhead near zero.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I Refused to Build a Distributed Stack for an AI 3D App
&lt;/h2&gt;

&lt;p&gt;When developers plan an AI 3D web app, the whiteboard usually explodes into six services before a single line of UI exists: an API server, a Redis/Queue broker, a background worker fleet, an S3/R2 bucket for uploads and outputs, a headless Chromium or FFmpeg container for turntable video rendering, and a Postgres cluster for billing.&lt;/p&gt;

&lt;p&gt;For an independent product, every extra moving part carries two hidden costs: operational fragility and unbounded variable cloud bills. I built Idol Max under four strict architectural constraints:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One Cloudflare Worker&lt;/strong&gt; serves SSR pages, JSON APIs, static assets, and the cron trigger (&lt;code&gt;{ fetch, scheduled }&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One Cloudflare D1 (SQLite) database&lt;/strong&gt; holds users, generation jobs, share tokens, site settings, thumbnails, and the full credit ledger.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero source images written to disk&lt;/strong&gt;—user photos are resized in the browser, verified in memory, and passed straight to the inference provider with &lt;code&gt;X-Fal-Store-IO: 0&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero server-side video rendering&lt;/strong&gt;—every PNG screenshot, 360° GIF, and 1080p MP4/WebM turntable is rendered deterministically on the user's GPU inside Three.js and encoded locally via WebCodecs or a Web Worker.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The stack is &lt;strong&gt;TanStack Start&lt;/strong&gt; (file-based routing unifying SSR pages and API handlers) + &lt;strong&gt;Vite 8&lt;/strong&gt; + &lt;code&gt;@cloudflare/vite-plugin&lt;/code&gt; + &lt;strong&gt;Drizzle ORM&lt;/strong&gt; + &lt;strong&gt;Better Auth&lt;/strong&gt; + &lt;strong&gt;Stripe Checkout&lt;/strong&gt; + &lt;strong&gt;Three.js 0.187&lt;/strong&gt; + &lt;strong&gt;mediabunny&lt;/strong&gt; + &lt;strong&gt;gifenc&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. One Worker, Two Entry Points: &lt;code&gt;fetch&lt;/code&gt; and &lt;code&gt;scheduled&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;In &lt;code&gt;src/server.ts&lt;/code&gt;, the entire backend exports just two handlers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;fetch&lt;/code&gt;: delegates to TanStack Start's server entry, plus a small guard (&lt;code&gt;jsonApiFallthrough&lt;/code&gt;) that converts HTML fallthroughs on &lt;code&gt;/api/*&lt;/code&gt; into strict &lt;code&gt;404&lt;/code&gt; or &lt;code&gt;405&lt;/code&gt; JSON responses so malformed API calls never accidentally return an SSR page.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;scheduled&lt;/code&gt;: driven by a single 1-minute Cloudflare Cron Trigger in &lt;code&gt;wrangler.jsonc&lt;/code&gt;. Rather than adding Cloudflare Queues or Workflows, one minute-level tick fans out three time-sliced jobs with isolated error boundaries (&lt;code&gt;guarded()&lt;/code&gt;):

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every 1 minute:&lt;/strong&gt; &lt;code&gt;syncInFlightModels(25)&lt;/code&gt; advances pending AI 3D jobs so generations finish and save cleanly even if the user closed their browser tab immediately after clicking Generate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every 5 minutes:&lt;/strong&gt; &lt;code&gt;reconcileBilling(25)&lt;/code&gt; checks for any crash window between marking a model &lt;code&gt;ready&lt;/code&gt; and settling its credit reservation (or revoking failed jobs).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Daily at 03:17 UTC:&lt;/strong&gt; &lt;code&gt;deleteExpiredModels(100)&lt;/code&gt; enforces storage retention (30 days for unpurchased accounts, 365 days once a user buys any credit pack) and prunes rate-limit rows older than 24 hours.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This eliminates an entire queue infrastructure layer while keeping job completion latency indistinguishable from real time—because active browser sessions also poll &lt;code&gt;GET /api/models/:id&lt;/code&gt;, which calls the exact same idempotent &lt;code&gt;syncModel()&lt;/code&gt; function.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. The Generation State Machine and Binary Safety Gates
&lt;/h2&gt;

&lt;p&gt;Every 3D generation passes through a strict five-state machine:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;queued → processing → saving → ready | failed&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here is what actually happens on &lt;code&gt;POST /api/generations&lt;/code&gt; before a single cent of GPU compute is spent:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step A: Zero-Dependency Binary Image Inspection
&lt;/h3&gt;

&lt;p&gt;Even though the client downsizes images before upload, the Worker never trusts &lt;code&gt;Content-Type&lt;/code&gt; or file extensions. &lt;code&gt;checkSourceImage(bytes)&lt;/code&gt; enforces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maximum payload size: &lt;strong&gt;6 MB&lt;/strong&gt; (&lt;code&gt;MAX_UPLOAD_BYTES&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Minimum and maximum pixel edge: &lt;strong&gt;64 px to 4,096 px&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Real magic-byte and header parsing in pure TypeScript (&lt;code&gt;DataView&lt;/code&gt;) for &lt;strong&gt;PNG&lt;/strong&gt; (IHDR bytes 16–24), &lt;strong&gt;JPEG&lt;/strong&gt; (walking &lt;code&gt;0xFF&lt;/code&gt; markers to &lt;code&gt;SOF0..SOF15&lt;/code&gt;), and &lt;strong&gt;WebP&lt;/strong&gt; (&lt;code&gt;RIFF....WEBP&lt;/code&gt; across &lt;code&gt;VP8X&lt;/code&gt;, &lt;code&gt;VP8&lt;/code&gt;, and &lt;code&gt;VP8L&lt;/code&gt; chunks).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This blocks spoofed files and decompression bombs (tiny compressed payloads that expand into massive bitmaps at the inference provider) using zero native image binaries inside the Worker isolate.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step B: Idempotency, Cost Gates, and 3-Phase Credit Reservation
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Idempotency:&lt;/strong&gt; Each request carries a &lt;code&gt;clientRequestId&lt;/code&gt;. Double-clicks or network retries match &lt;code&gt;(userId, idempotencyKey)&lt;/code&gt; and return the existing job without double-charging.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three cost gates:&lt;/strong&gt; Global daily cap (&lt;code&gt;maxPerDayGlobal&lt;/code&gt;, where &lt;code&gt;0&lt;/code&gt; acts as an instant emergency kill switch), per-user daily cap (&lt;code&gt;maxPerUserPerDay&lt;/code&gt;), and per-user concurrency cap (&lt;code&gt;maxInFlightPerUser&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3-phase reservation:&lt;/strong&gt; Before calling &lt;code&gt;queue.fal.run&lt;/code&gt;, we freeze credits in &lt;code&gt;credit_reservations&lt;/code&gt; using &lt;code&gt;reservationId = model.id&lt;/code&gt; with a &lt;strong&gt;90-minute hold&lt;/strong&gt;. If the HTTP submission to fal.ai fails, we immediately call &lt;code&gt;revokeReservation()&lt;/code&gt; and return the error.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy-first submission:&lt;/strong&gt; The verified bytes are encoded as a chunked base64 &lt;code&gt;data:&lt;/code&gt; URI (chunk size &lt;code&gt;0x8000&lt;/code&gt; to avoid call-stack overflow on multi-megabyte inputs) and sent to fal.ai with &lt;code&gt;X-Fal-Store-IO: 0&lt;/code&gt; so neither our server nor fal's request history keeps the source photo.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step C: Binary GLB Validation Before Settling Credits
&lt;/h3&gt;

&lt;p&gt;When fal.ai reports &lt;code&gt;COMPLETED&lt;/code&gt; for &lt;strong&gt;Idol Max Turbo&lt;/strong&gt; (&lt;code&gt;speridlabs/idol/max/turbo&lt;/code&gt;, ~20s, 10 base credits) or &lt;strong&gt;Idol Max&lt;/strong&gt; (&lt;code&gt;speridlabs/idol/max&lt;/code&gt;, ~50s, 20 base credits), &lt;code&gt;syncModel()&lt;/code&gt; claims the transition to &lt;code&gt;saving&lt;/code&gt; using a conditional SQL update so concurrent browser polls and cron ticks cannot double-process the job.&lt;/p&gt;

&lt;p&gt;Before marking the model &lt;code&gt;ready&lt;/code&gt; and settling the credit reservation, the Worker downloads the GLB and runs &lt;code&gt;inspectGlb(buffer)&lt;/code&gt;—a 70-line binary glTF 2.0 validator that checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;glTF&lt;/code&gt; magic header (&lt;code&gt;0x46546c67&lt;/code&gt;) and version &lt;code&gt;2&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Total declared byte length against actual &lt;code&gt;buffer.byteLength&lt;/code&gt; (catches truncated downloads).&lt;/li&gt;
&lt;li&gt;Valid &lt;code&gt;JSON&lt;/code&gt; chunk (&lt;code&gt;0x4e4f534a&lt;/code&gt;) and &lt;code&gt;asset.version === "2.0"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Non-zero vertex and triangle counts computed directly from &lt;code&gt;meshes[].primitives[].attributes.POSITION&lt;/code&gt; and &lt;code&gt;indices&lt;/code&gt; accessors, plus skin and animation clip counts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the GLB is corrupt or empty, the job fails and &lt;strong&gt;100% of reserved credits are refunded&lt;/strong&gt;. Even better: if the user paid extra for skeletal rigging (+3 credits on Turbo, +5 credits on Max) and fal.ai returns a valid mesh whose rig step failed (&lt;code&gt;rig.succeeded === false&lt;/code&gt;), our settlement logic automatically refunds the rigging portion—mirroring fal.ai's own billing behavior. And if a job never completes within &lt;strong&gt;30 minutes&lt;/strong&gt; (&lt;code&gt;MODEL_STALE_MS&lt;/code&gt;), it is marked &lt;code&gt;failed&lt;/code&gt; and refunded automatically.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. An Atomic FIFO Credit Ledger on D1 Without Interactive Transactions
&lt;/h2&gt;

&lt;p&gt;Cloudflare D1 executes &lt;code&gt;db.batch([...])&lt;/code&gt; as a single serialized transaction, but it does not expose long-lived interactive &lt;code&gt;BEGIN ... SELECT ... UPDATE ... COMMIT&lt;/code&gt; locks across network round trips. Naive &lt;code&gt;SELECT balance&lt;/code&gt; followed by &lt;code&gt;UPDATE balance = balance - cost&lt;/code&gt; leaks race conditions under concurrent requests.&lt;/p&gt;

&lt;p&gt;To make the ledger rock-solid on SQLite/D1:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Batches are the source of truth:&lt;/strong&gt; Every credit award (purchase pack, refund, admin grant) creates a row in &lt;code&gt;credit_grants&lt;/code&gt; with &lt;code&gt;amount&lt;/code&gt;, &lt;code&gt;remaining&lt;/code&gt;, &lt;code&gt;expiresAt&lt;/code&gt;, and &lt;code&gt;status&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FIFO ordering:&lt;/strong&gt; Consumption prioritizes grants with the earliest &lt;code&gt;expiresAt&lt;/code&gt; first (&lt;code&gt;expiresAt IS NULL&lt;/code&gt; last), then oldest &lt;code&gt;createdAt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-state guard + per-row optimistic updates:&lt;/strong&gt; After computing the FIFO allocation plan in memory, we execute a single &lt;code&gt;db.batch()&lt;/code&gt; where:

&lt;ol&gt;
&lt;li&gt;The transaction ledger &lt;code&gt;INSERT&lt;/code&gt; is gated by &lt;code&gt;fifoGuard(allocations)&lt;/code&gt;—a subquery checking that the count of rows in &lt;code&gt;credit_grants&lt;/code&gt; still matching &lt;code&gt;(id = grantId AND remaining = remainingBefore)&lt;/code&gt; equals &lt;code&gt;allocations.length&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Every grant &lt;code&gt;UPDATE&lt;/code&gt; includes &lt;code&gt;WHERE id = ? AND remaining = ? AND status = 'active'&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The cached &lt;code&gt;user_credits.credits&lt;/code&gt; column is recomputed in the same batch via &lt;code&gt;SELECT COALESCE(SUM(remaining), 0) FROM credit_grants WHERE status = 'active' AND (expires_at IS NULL OR expires_at &amp;gt; now)&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If two requests race on the same user's grants, the second batch sees a mismatched snapshot, fails cleanly without partial deduction, and retries. Because the cached balance is always recalculated from &lt;code&gt;SUM(remaining)&lt;/code&gt; on every write, cache drift is self-healing by construction. Every payment webhook from Stripe also keys off &lt;code&gt;payment_intent&lt;/code&gt; ID for strict idempotency and verifies the exact paid amount and currency.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Zero-FFmpeg Client-Side 360° Export: Three.js + WebCodecs + Web Workers
&lt;/h2&gt;

&lt;p&gt;Rendering 360° turntable videos on a backend requires GPU containers or FFmpeg workers that burn money every time someone exports a clip. Instead, we built a single Three.js engine (&lt;code&gt;ModelViewerEngine&lt;/code&gt;) shared across the paid Studio, public share pages, our &lt;a href="https://idolmax.net/glb-viewer" rel="noopener noreferrer"&gt;free online GLB viewer&lt;/a&gt;, and our &lt;a href="https://idolmax.net/3d-turntable-maker" rel="noopener noreferrer"&gt;free 3D turntable maker&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Four engineering details make browser-side exports reliable:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Zero external HDRI downloads:&lt;/strong&gt; All four lighting presets (&lt;code&gt;Studio&lt;/code&gt;, &lt;code&gt;Soft&lt;/code&gt;, &lt;code&gt;Dramatic&lt;/code&gt;, &lt;code&gt;Outdoor&lt;/code&gt;) are generated procedurally using Three.js &lt;code&gt;RoomEnvironment&lt;/code&gt; and a vertex-colored sky dome with a procedural sun baked into a PMREM cubemap (&lt;code&gt;PMREMGenerator&lt;/code&gt;). Combined with &lt;code&gt;ACESFilmicToneMapping&lt;/code&gt; and &lt;code&gt;PCFShadowMap&lt;/code&gt;, the viewer stays lightweight and loads instantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On-demand rendering + WYSIWYG Composition Mode:&lt;/strong&gt; The WebGL canvas does not spin a 60 fps &lt;code&gt;requestAnimationFrame&lt;/code&gt; loop while idle; it renders only when &lt;code&gt;OrbitControls&lt;/code&gt; fires &lt;code&gt;change&lt;/code&gt;, damping settles, or a skeletal clip (&lt;code&gt;walk&lt;/code&gt;, &lt;code&gt;run&lt;/code&gt;, &lt;code&gt;jump&lt;/code&gt;, &lt;code&gt;idle&lt;/code&gt;) plays. When exporting, the viewport enters a letterboxed composition frame locked to the chosen aspect ratio, model scale (&lt;code&gt;0.5–1.2&lt;/code&gt;), and a &lt;code&gt;12°&lt;/code&gt; elevation angle—guaranteeing the exported pixels match the preview.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic angles, never real-time capture:&lt;/strong&gt; Rather than using &lt;code&gt;MediaRecorder&lt;/code&gt; (which drops frames on slower laptops and produces stuttering loops), frame &lt;code&gt;i&lt;/code&gt; of &lt;code&gt;N&lt;/code&gt; is explicitly positioned at &lt;code&gt;startAngle ± 360 * (i / N)&lt;/code&gt;. Because frame &lt;code&gt;N - 1&lt;/code&gt; stops one exact increment before &lt;code&gt;360°&lt;/code&gt;, every exported loop is mathematically seamless regardless of hardware speed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;True WebCodecs MP4/WebM + off-thread GIF:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;For video (&lt;code&gt;720p&lt;/code&gt; or &lt;code&gt;1080p&lt;/code&gt; short-edge, &lt;code&gt;24&lt;/code&gt; or &lt;code&gt;30&lt;/code&gt; fps), we probe real browser encoder capability with &lt;code&gt;mediabunny&lt;/code&gt;'s &lt;code&gt;canEncodeVideo('avc' | 'vp9' | 'vp8', ...)&lt;/code&gt;—we never fake an MP4 by renaming a WebM blob. Supported browsers encode H.264 into an in-memory fast-start MP4 (&lt;code&gt;Mp4OutputFormat({ fastStart: 'in-memory' })&lt;/code&gt;) or VP9/VP8 into WebM directly from &lt;code&gt;CanvasSource&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;For GIFs (&lt;code&gt;320&lt;/code&gt;, &lt;code&gt;480&lt;/code&gt;, or &lt;code&gt;640&lt;/code&gt; px long edge at &lt;code&gt;10&lt;/code&gt; or &lt;code&gt;15&lt;/code&gt; fps), RGBA frames are transferred as &lt;code&gt;ArrayBuffer&lt;/code&gt;s to a dedicated Web Worker running &lt;code&gt;gifenc&lt;/code&gt; (&lt;code&gt;rgb565&lt;/code&gt; 256-color quantization). To avoid GIF's centisecond rounding drift (where naive &lt;code&gt;15 fps → 7 cs&lt;/code&gt; turns a 6.0-second turntable into 6.3 seconds), each frame delay is computed as the difference between rounded cumulative timestamps (&lt;code&gt;6, 7, 7, 6, 7...&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Between frames, the loop yields via a &lt;code&gt;MessageChannel&lt;/code&gt; micro-task (&lt;code&gt;nextTask()&lt;/code&gt;) instead of &lt;code&gt;setTimeout&lt;/code&gt;, preventing Chromium/Safari background-tab throttling from stalling an export when the user switches tabs.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Honest Tradeoffs and Verification Conditions
&lt;/h2&gt;

&lt;p&gt;This architecture is deliberately constrained, and those constraints come with real tradeoffs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Browser encoder variance:&lt;/strong&gt; Safari, Chrome, and Linux Firefox expose different WebCodecs H.264/VP9 hardware profiles. Probing &lt;code&gt;canEncodeVideo()&lt;/code&gt; avoids broken files, falling back cleanly to WebM or GIF when H.264 encoding is unavailable on a given OS/browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage proxy without R2:&lt;/strong&gt; By default, Idol Max runs with zero mandatory R2 storage—serving GLB downloads through &lt;code&gt;/api/models/:id/file&lt;/code&gt; (checking user ownership or public share tokens) and storing 1200×630 JPEG thumbnails in D1 &lt;code&gt;model_assets&lt;/code&gt; under SQLite's 2 MB row ceiling. If R2 (&lt;code&gt;MODELS&lt;/code&gt; binding) is attached later, the code automatically mirrors GLBs and sets a 24-hour &lt;code&gt;X-Fal-Object-Lifecycle-Preference&lt;/code&gt; TTL on fal's CDN copies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mesh/animation scope:&lt;/strong&gt; The viewer supports plain, Meshopt-compressed, and Draco-compressed glTF 2.0 GLB files (with Draco decoders vendored locally under &lt;code&gt;public/vendor/draco/&lt;/code&gt;). It is an inspection and showcase studio—not a full vertex-level DCC replacement for Blender.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All unit and integration behaviors—the FIFO D1 credit ledger (tested against in-memory libsql with production Drizzle migrations), model lifecycle timeouts/retries/refunds, fal.ai queue client, binary GLB/image parsers, and pricing math—are verified continuously via &lt;code&gt;bun test&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you want to inspect the Three.js viewer, test WebCodecs turntable export on your own local GLB file without creating an account, or try an Idol Max Turbo generation yourself, you can test everything live at Idol Max (&lt;code&gt;idolmax.net&lt;/code&gt;).&lt;/p&gt;

</description>
      <category>cloudflare</category>
      <category>webdev</category>
      <category>threejs</category>
      <category>typescript</category>
    </item>
    <item>
      <title>GPT Image 2.6 Explained: How an Image Model Creates GIFs</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Thu, 05 Nov 2026 12:16:53 +0000</pubDate>
      <link>https://dev.to/czmilo/gpt-image-26-explained-how-an-image-model-creates-gifs-39in</link>
      <guid>https://dev.to/czmilo/gpt-image-26-explained-how-an-image-model-creates-gifs-39in</guid>
      <description>&lt;p&gt;GPT Image 2.6 is OpenAI’s image generation and editing model family. Released on November 4, 2026, it also supports animated GIF creation, alongside improvements to generation speed and consistency across edits. The API offers Flare for fast iteration and Sunburst for more detailed visual work. &lt;a href="https://openai.com/index/introducing-images-2-6/" rel="noopener noreferrer"&gt;OpenAI’s launch announcement&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That raises an interesting question. If this is an image model, how can it produce something that moves?&lt;/p&gt;

&lt;p&gt;The answer starts with a simple observation: &lt;strong&gt;an animation can be made from a sequence of still pictures&lt;/strong&gt;. The difficult part is drawing pictures that belong together. Let’s separate that problem from the much simpler task of putting those pictures into a GIF file.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Start with six drawings
&lt;/h2&gt;

&lt;p&gt;Imagine drawing a small cat on six cards. On the first card, its paw rests on the floor. On the next few cards, the paw rises and waves. On the final cards, it comes back down.&lt;/p&gt;

&lt;p&gt;Show the cards in order, with a short pause between them, and the cat appears to move. Repeat the sequence, and you have a loop.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.lovableapp.org%2Farticles%2Fgpt-image-2-6-gif-explained%2Fframes-to-gif-05b2be4b49ca2d80.avif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.lovableapp.org%2Farticles%2Fgpt-image-2-6-gif-explained%2Fframes-to-gif-05b2be4b49ca2d80.avif" alt="Six consistent cat poses become a looping GIF when played in order with a delay between frames." width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An animated GIF stores image data and playback instructions. Its graphic control extension can specify a delay before the next image is displayed; the format measures that delay in hundredths of a second. &lt;a href="https://www.w3.org/Graphics/GIF/spec-gif89a.txt" rel="noopener noreferrer"&gt;GIF89a specification&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are two separate jobs here:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create the animation frames.&lt;/strong&gt; Decide what the cat looks like and how its pose changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Encode the animation.&lt;/strong&gt; Store the pictures in order, assign their delays, and configure repeating playback.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The encoder does not need to understand cats or waving. It only needs valid image data and instructions for playing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Why an image model can create animation
&lt;/h2&gt;

&lt;p&gt;A single image can contain several moments. A comic strip does this. So does an animator’s sheet of poses.&lt;/p&gt;

&lt;p&gt;An image model can be asked to draw those moments together, arranging them as panels in one composition. Each panel represents a different point in the action. Software can then extract the panels and play them in sequence.&lt;/p&gt;

&lt;p&gt;This arrangement is called a &lt;strong&gt;sprite sheet&lt;/strong&gt;: one image containing multiple smaller images. OpenAI’s launch examples explicitly request six sequential frames in a three-column, two-row grid, with matching panel sizes and a fixed camera. &lt;a href="https://openai.com/index/introducing-images-2-6/#animate-your-ideas-with-gifs" rel="noopener noreferrer"&gt;Official sprite-sheet examples&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.lovableapp.org%2Farticles%2Fgpt-image-2-6-gif-explained%2Fsprite-sheet-workflow-2f2f8c33f26c21c5.avif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.lovableapp.org%2Farticles%2Fgpt-image-2-6-gif-explained%2Fsprite-sheet-workflow-2f2f8c33f26c21c5.avif" alt="A six-frame sprite sheet is cropped into ordered images and encoded into a looping GIF." width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The useful idea is that &lt;strong&gt;spatial order can represent temporal order&lt;/strong&gt;. Left to right, then top to bottom, becomes first frame, second frame, and so on.&lt;/p&gt;

&lt;p&gt;This helps explain why image generation can support short animations. The task includes drawing related poses within a shared visual composition, followed by ordinary animation processing.&lt;/p&gt;

&lt;p&gt;It also explains why “generate nine unrelated pictures and combine them” is an incomplete description. Independent requests can make different choices about the character’s proportions, lighting, camera position, or background. An animation request needs those choices to stay consistent while the action changes.&lt;/p&gt;

&lt;p&gt;However, these public examples do not establish the complete internal algorithm. We should not assume that every GPT Image 2.6 GIF request uses an identical sprite-sheet pipeline, that all frames are rendered in one neural-network pass, or that OpenAI has disclosed a particular temporal architecture. The sprite sheet is a concrete, visible way to understand the workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The hard part is keeping the drawings connected
&lt;/h2&gt;

&lt;p&gt;Suppose the cat’s head becomes larger halfway through the sequence. Or the rug changes color whenever the paw moves. The file would still be a valid GIF, but the animation would flicker.&lt;/p&gt;

&lt;p&gt;Three constraints make the difference:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Visual consistency.&lt;/strong&gt; The character, setting, scale, and lighting should remain recognizable across frames.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Motion continuity.&lt;/strong&gt; Each pose should advance the same action, with changes small enough for the chosen playback speed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loop continuity.&lt;/strong&gt; The transition from the final pose back to the first should feel natural.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are requirements for a successful result, rather than a claim about a particular hidden model component.&lt;/p&gt;

&lt;p&gt;A practical starting point is one subject, one action, and a fixed camera. For the cat, ask it to raise a paw, wave once, and return to the resting pose. Asking for a camera orbit, a costume change, and a background transformation at the same time adds several more things that must remain coordinated.&lt;/p&gt;

&lt;p&gt;Returning toward the starting pose helps close the loop. Exact duplicate first and last frames are not always necessary: holding the same pose twice can introduce a small pause at the join.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Generating a GIF through the API
&lt;/h2&gt;

&lt;p&gt;The API can return a finished GIF. Your application does not have to receive a sprite sheet and crop it manually. OpenAI documents GIF output on the image generation endpoint, with the animation returned as Base64 data. &lt;a href="https://developers.openai.com/api/docs/guides/image-generation#generate-animated-gif-output" rel="noopener noreferrer"&gt;Animated GIF output guide&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is a minimal request. It requires an API key in &lt;code&gt;OPENAI_API_KEY&lt;/code&gt; and GIF access for the selected model.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;--fail-with-body&lt;/span&gt; https://api.openai.com/v1/images/generations &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$OPENAI_API_KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "model": "gpt-image-2.6-flare",
    "prompt": "A small orange cat sits on a sage-green rug, raises one paw, waves once, and returns to its resting pose. Fixed camera, plain cream background, flat illustration, seamless loop.",
    "output_format": "gif",
    "frame_count": 9,
    "frame_duration_ms": 200,
    "size": "auto"
  }'&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; response.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this request, &lt;code&gt;output_format&lt;/code&gt; selects GIF output, while &lt;code&gt;frame_count&lt;/code&gt; and &lt;code&gt;frame_duration_ms&lt;/code&gt; control the number of frames and their requested display time. &lt;code&gt;size&lt;/code&gt; describes each finished frame; &lt;code&gt;auto&lt;/code&gt; lets the service choose the dimensions. &lt;a href="https://developers.openai.com/api/reference/resources/images/methods/generate" rel="noopener noreferrer"&gt;Image generation API reference&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After a successful response, save the returned animation with this short Python snippet.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;base64&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Path&lt;/span&gt;

&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;response.json&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;read_text&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cat-wave.gif&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;write_bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base64&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;b64decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;data&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;b64_json&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The code above decodes the returned file bytes. Renaming the JSON response to &lt;code&gt;.gif&lt;/code&gt; would not perform that decoding.&lt;/p&gt;

&lt;p&gt;One launch detail needs care. As of November 5, 2026, the guide lists &lt;strong&gt;2–64 frames&lt;/strong&gt;, but the API reference lists &lt;strong&gt;2–16 frames&lt;/strong&gt; and requires GIF preview access. Start with a value such as nine and treat the service’s validation for your account as authoritative. The guide also applies a total request pixel budget, so supported frame counts depend on frame dimensions and the number of requested animations. &lt;a href="https://developers.openai.com/api/docs/guides/image-generation#generate-animated-gif-output" rel="noopener noreferrer"&gt;GIF guide&lt;/a&gt;, &lt;a href="https://developers.openai.com/api/reference/resources/images/methods/generate" rel="noopener noreferrer"&gt;API parameter limits&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Frame count and playback speed are different controls
&lt;/h2&gt;

&lt;p&gt;For equal frame delays, the intended duration of one cycle is easy to calculate:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cycle duration = frame count × frame delay.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Nine frames displayed for 200 milliseconds each produce a nominal 1.8-second cycle. That is five frames per second.&lt;/p&gt;

&lt;p&gt;Changing the delay changes playback speed. Changing the frame count changes how many distinct pictures are available to describe the movement.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Frames&lt;/th&gt;
&lt;th&gt;Delay per frame&lt;/th&gt;
&lt;th&gt;Cycle duration&lt;/th&gt;
&lt;th&gt;Playback rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;200 ms&lt;/td&gt;
&lt;td&gt;1.8 seconds&lt;/td&gt;
&lt;td&gt;5 fps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;100 ms&lt;/td&gt;
&lt;td&gt;0.9 seconds&lt;/td&gt;
&lt;td&gt;10 fps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;100 ms&lt;/td&gt;
&lt;td&gt;1.6 seconds&lt;/td&gt;
&lt;td&gt;10 fps&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are timing calculations, not measured model outputs. If you halve the delay without adding new poses, the same sequence plays twice as quickly. To make an action smoother while keeping its duration similar, you generally need more useful intermediate poses as well as a shorter delay.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Try the workflow in a browser
&lt;/h2&gt;

&lt;p&gt;If you would rather start with a description than an API request, I built &lt;a href="https://texttogif.com/" rel="noopener noreferrer"&gt;texttogif.com&lt;/a&gt; for this workflow. It uses the new GPT Image 2.6 models to turn text prompts into animated GIFs, with a browser interface for choosing the frame count and playback interval.&lt;/p&gt;

&lt;p&gt;Enter a subject and a small action, select GIF, and open Advanced settings to adjust the animation. For a first experiment, try nine frames at 200 milliseconds per frame. The current interface supports 2–16 frames and displays the credit cost before you generate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.lovableapp.org%2Farticles%2Fgpt-image-2-6-gif-explained%2Ftexttogif-settings-eae67864d0920816.avif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.lovableapp.org%2Farticles%2Fgpt-image-2-6-gif-explained%2Ftexttogif-settings-eae67864d0920816.avif" alt="The texttogif.com editor with a cat-wave prompt, GIF settings, and the site's existing example preview." width="800" height="756"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The preview shown here is the site’s existing example; the prompt on the left is ready for a new generation.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Where this approach fits
&lt;/h2&gt;

&lt;p&gt;A short loop has a small storytelling budget. A blink, a nod, a waving mascot, or a gently moving icon can communicate its idea with a few poses. A long action sequence asks much more of every transition.&lt;/p&gt;

&lt;p&gt;As a practical rule, match the tool to the motion you need:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you want to make&lt;/th&gt;
&lt;th&gt;A useful starting point&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A reaction, sticker, or simple mascot loop&lt;/td&gt;
&lt;td&gt;A short GIF with one clear action&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An animated icon or small product accent&lt;/td&gt;
&lt;td&gt;A restrained loop with a stable composition&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A scene with sustained action and camera movement&lt;/td&gt;
&lt;td&gt;Evaluate a video generation workflow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A sequence with speech or music&lt;/td&gt;
&lt;td&gt;Use a workflow that supports audio&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;GPT Image 2.6’s model documentation lists image output and no audio or video modality. GIF support gives it an animation output without making it a general video-and-audio generator. &lt;a href="https://developers.openai.com/api/docs/models/gpt-image-2.6-flare" rel="noopener noreferrer"&gt;Flare model documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are two further limits to remember.&lt;/p&gt;

&lt;p&gt;First, GIF output is currently supported by &lt;code&gt;/v1/images/generations&lt;/code&gt;, while &lt;code&gt;/v1/images/edits&lt;/code&gt; does not support it. Uploading an existing picture and animating it therefore requires more than adding &lt;code&gt;output_format: "gif"&lt;/code&gt; to an image edit request. &lt;a href="https://developers.openai.com/api/docs/guides/image-generation#generate-animated-gif-output" rel="noopener noreferrer"&gt;GIF endpoint support&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Second, GIF uses indexed color. Each color table has at most 256 entries, although different images in the animation can use different local tables. Fine gradients may need color reduction or dithering, so flat illustrations and restrained palettes are sensible starting points. &lt;a href="https://www.w3.org/Graphics/GIF/spec-gif89a.txt" rel="noopener noreferrer"&gt;GIF color-table specification&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The central idea is straightforward: generate a coherent set of visual moments, then give those moments an order and a rhythm. GIF encoding handles playback. The quality of the animation comes from how well the drawings carry the action from one moment to the next, including the jump back to the beginning.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tutorial</category>
      <category>webdev</category>
      <category>animation</category>
    </item>
    <item>
      <title>Understanding HackerTube: Karpathy’s Two-Hour Experiment in Better Recommendations</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Mon, 02 Nov 2026 14:09:04 +0000</pubDate>
      <link>https://dev.to/czmilo/understanding-hackertube-karpathys-two-hour-experiment-in-better-recommendations-25a5</link>
      <guid>https://dev.to/czmilo/understanding-hackertube-karpathys-two-hour-experiment-in-better-recommendations-25a5</guid>
      <description>&lt;p&gt;HackerTube is a video discovery site built from YouTube links that people have shared on Hacker News over the years.&lt;/p&gt;

&lt;p&gt;Andrej Karpathy created it after becoming frustrated with his YouTube homepage. He wanted an evening’s viewing to begin with something worth watching, rather than another round of exaggerated thumbnails and familiar suggestions.&lt;/p&gt;

&lt;p&gt;He says the project took about two hours with Claude Code. The result raises two useful questions: how much of a small product can a coding agent build, and what happens when a community’s recommendations become the foundation of a video browser? &lt;a href="https://x.com/karpathy/status/2116957135661945283" rel="noopener noreferrer"&gt;Karpathy’s announcement&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To understand the experiment, it helps to separate three things: the people who recommended the videos, the AI that organized those recommendations, and the interface through which viewers discover them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fedpodpfissacatekgfyn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fedpodpfissacatekgfyn.webp" alt="An original illustration of community members turning scattered video cards into an organized library" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Why build another way to browse YouTube?
&lt;/h2&gt;

&lt;p&gt;Imagine asking a group of people you trust for one good lecture. Someone remembers a talk that helped them understand a difficult subject. Another person recommends the same talk months later, in a different discussion.&lt;/p&gt;

&lt;p&gt;That repetition tells you something. The video has remained useful across more than one conversation.&lt;/p&gt;

&lt;p&gt;Now imagine those recommendations scattered across almost twenty years of discussion. The knowledge exists, but finding it requires reading an archive.&lt;/p&gt;

&lt;p&gt;HackerTube turns that archive into a library you can browse.&lt;/p&gt;

&lt;p&gt;In his account of the project, Karpathy describes opening YouTube late on a Friday and disliking what he saw. The next morning, he asked Claude to build a YouTube-style site around videos recommended on Hacker News. The original site is &lt;a href="https://hackertube.org/" rel="noopener noreferrer"&gt;hackertube.org&lt;/a&gt;. &lt;a href="https://karpathy.bearblog.dev/hacker-tube/" rel="noopener noreferrer"&gt;Karpathy’s project notes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The useful product idea is small and specific: keep access to the existing videos, and create a discovery experience around a source of judgment you prefer.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What “built in two hours” actually means
&lt;/h2&gt;

&lt;p&gt;Karpathy says he used the Claude Code desktop app for Mac, with Opus 5.5 at Medium effort. He directed the work through conversation, while Claude handled the implementation.&lt;/p&gt;

&lt;p&gt;He also identifies three things he did manually:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a Google Cloud API key for retrieving YouTube video metadata.&lt;/li&gt;
&lt;li&gt;Start a virtual private server, or VPS, to serve the site.&lt;/li&gt;
&lt;li&gt;Buy the domain name.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After the server was available, he gave Claude its IP address and asked it to deploy, secure, harden, and optimize the application. These are his reported actions and timing; the account does not provide an independent security audit or a reproducible two-hour benchmark. &lt;a href="https://karpathy.bearblog.dev/hacker-tube/" rel="noopener noreferrer"&gt;Karpathy’s account of the build&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This explains why the project is more interesting than a quickly generated homepage. It includes a data collection process, interpretation of comments, search, recommendations, and a deployed interface.&lt;/p&gt;

&lt;p&gt;The scope also helps explain the speed. HackerTube uses an existing discussion archive and existing YouTube videos. Its main job is to connect those resources in a useful way.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How the collection was built
&lt;/h2&gt;

&lt;p&gt;The headline numbers describe different stages of the process. Karpathy’s announcement refers to roughly &lt;strong&gt;43 million HN comments&lt;/strong&gt; in the starting archive. The site’s About page describes &lt;strong&gt;39,834 labeled comments&lt;/strong&gt; and &lt;strong&gt;6,454 videos&lt;/strong&gt;, organized into &lt;strong&gt;150 topics across 16 areas&lt;/strong&gt;. The larger number is the search space; the smaller numbers describe the resulting collection. &lt;a href="https://x.com/karpathy/status/2116957135661945283" rel="noopener noreferrer"&gt;Announcement&lt;/a&gt;, &lt;a href="https://hackertube.org/about" rel="noopener noreferrer"&gt;HackerTube’s methodology&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The official explanation breaks the work into a practical sequence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, find YouTube links.&lt;/strong&gt; Scan the public HN comment archive from 2007–2026. This produces well over a hundred thousand distinct candidate videos.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, look for repeated interest.&lt;/strong&gt; The site says a candidate needs links from at least three different people, with substantive commentary, across at least three different months. This reduces the candidates to roughly 7,000 videos.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Third, interpret the comments.&lt;/strong&gt; A link can recommend a video, criticize it, cite it as evidence, or use it as a joke. Claude reads the comment with its HN story title and labels its purpose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fourth, create usable video records.&lt;/strong&gt; Combine the discussion with YouTube details to produce summaries, topics, and explanations of why people found a video worth sharing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Finally, rank for lasting interest.&lt;/strong&gt; The site emphasizes the number of separate months in which a video received recommendations. Repeated recommendations over time count more than one burst of attention. &lt;a href="https://hackertube.org/about" rel="noopener noreferrer"&gt;Official description of the pipeline&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjz8tcvlwn0d3rh5ii2t7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjz8tcvlwn0d3rh5ii2t7.webp" alt="A conceptual diagram showing comments passing through filtering and review into a video library" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Karpathy later clarified that Claude first reduced the archive using URLs, regular expressions, and spam removal. Only the remaining material went to Sonnet through a Claude Code Workflow. The headline therefore does not mean a language model individually read all 43 million comments. &lt;a href="https://x.com/karpathy/status/2116970707867566106" rel="noopener noreferrer"&gt;Karpathy’s clarification&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The order matters. A program can cheaply recognize a URL. Understanding whether a sentence endorses that URL requires more interpretation.&lt;/p&gt;

&lt;p&gt;This is a useful pattern for similar projects: narrow the material with straightforward rules, then use a language model on the smaller set that needs judgment. The model’s output still needs scrutiny, especially where sarcasm, criticism, or ambiguous recommendations are involved.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Human recommendations, organized by AI
&lt;/h2&gt;

&lt;p&gt;Calling HackerTube “human curation” needs a little precision.&lt;/p&gt;

&lt;p&gt;HN users supplied the original links and commentary. AI classified those comments and wrote the browsing material. Software then ranks and personalizes the collection.&lt;/p&gt;

&lt;p&gt;The official homepage mixes established favorites, less widely watched discoveries, recent favorites, and topics the viewer has not explored. Likes can influence subsequent suggestions. Video pages also link back to the original HN comments, so viewers can inspect the context themselves. &lt;a href="https://hackertube.org/about" rel="noopener noreferrer"&gt;HackerTube’s feature explanation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That combination is the experiment: human recommendations provide the underlying signal, while AI makes a large, scattered archive easier to use.&lt;/p&gt;

&lt;p&gt;Does this prove that people recommend better videos than algorithms?&lt;/p&gt;

&lt;p&gt;Karpathy reports a much better viewing experience for himself. That is a meaningful reason to build the product, but it does not establish a result for every viewer. Hacker News has its own interests, blind spots, and community biases. A library that fits a programmer’s evening may fit someone else poorly. &lt;a href="https://x.com/karpathy/status/2116957135661945283" rel="noopener noreferrer"&gt;Karpathy’s assessment&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The narrower conclusion is still valuable: &lt;strong&gt;a community whose interests resemble yours can provide a strong starting point for discovery.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Small choices that change the experience
&lt;/h2&gt;

&lt;p&gt;Karpathy also changed the thumbnails. His announcement says HackerTube uses a frame from the middle of a video instead of the uploader’s selected promotional image. That choice gives viewers a different first impression of the same underlying material. &lt;a href="https://x.com/karpathy/status/2116957135661945283" rel="noopener noreferrer"&gt;Thumbnail design&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The original site requires no account. Likes, history, and saved videos stay in the browser. It also includes a Longs section, topics, playlists, and keyboard shortcuts. Local preferences can still support useful personalization, although they do not automatically become a synchronized account across devices. &lt;a href="https://hackertube.org/about" rel="noopener noreferrer"&gt;Features and privacy&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;None of these choices is complicated to describe. Together, they express a coherent preference: help someone choose a worthwhile video with less ceremony.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. An independent alternative: hackertubes.com
&lt;/h2&gt;

&lt;p&gt;There is also &lt;a href="https://hackertubes.com/" rel="noopener noreferrer"&gt;hackertubes.com&lt;/a&gt;, an independent browser built from the original project’s exported data. Its attribution explicitly says it is unaffiliated with the original HackerTube project.&lt;/p&gt;

&lt;p&gt;Its design has a Web 1.0 sensibility: an understated wordmark, plain controls, a directory of videos, and explicit pagination. The page feels closer to a collection someone assembled for curious readers than a constantly moving social feed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fluvazh1ducili5all9na.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fluvazh1ducili5all9na.webp" alt="The real hackertubes.com homepage with its directory layout, search controls, and video grid" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The directory supports five languages: &lt;strong&gt;English, Simplified Chinese, Traditional Chinese, Korean, and Japanese&lt;/strong&gt;. These localized interfaces make the collection accessible to more readers, while the videos retain their original languages.&lt;/p&gt;

&lt;p&gt;The site offers topic and duration filters, a daily mix, an HN favorites order, and browser-local watched and watch-later lists.&lt;/p&gt;

&lt;p&gt;Its daily mix reshuffles the existing archive; it does not promise newly uploaded videos every day. The directory displayed 4,616 videos when checked on November 2, 2026. Its data notes say it excludes news and entries without a recommendation, so its collection differs from the original 6,454-video export. &lt;a href="https://hackertubes.com/#data" rel="noopener noreferrer"&gt;Independent directory and data notes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For readers who prefer a quieter directory and a choice of interface language, it is another way into the collection.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Why the export matters
&lt;/h2&gt;

&lt;p&gt;HackerTube makes its underlying collection downloadable. The official About page lists video records, labeled mentions, topic definitions, related-video data, search embeddings, and a &lt;code&gt;DATA.md&lt;/code&gt; guide intended to help an agent work with the files.&lt;/p&gt;

&lt;p&gt;The data is offered under ODC-By 1.0 with attribution. YouTube’s own metadata is excluded from the export; builders can retrieve it separately using the video IDs. &lt;a href="https://hackertube.org/about" rel="noopener noreferrer"&gt;Official export documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This gives the experiment a life beyond its first interface.&lt;/p&gt;

&lt;p&gt;A useful collection could support a weekly reading-and-viewing list, a subject-specific study queue, or a simpler browser in another language. These are possible applications of the export, rather than claims that Karpathy built all of them.&lt;/p&gt;

&lt;p&gt;The independent directory illustrates one such possibility: the same source material can support a different pace and presentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. What the experiment means
&lt;/h2&gt;

&lt;p&gt;HackerTube brings together two resources: years of people pointing one another toward useful material, and a coding agent that can turn those scattered pointers into a working product quickly.&lt;/p&gt;

&lt;p&gt;The two-hour claim concerns the software-building effort. The community’s accumulated judgment took years to form. AI makes that judgment easier to retrieve and organize; it also introduces classification and summary errors that viewers should be able to check against the original discussion.&lt;/p&gt;

&lt;p&gt;For builders, the practical lesson is to look for a narrow frustration and a good existing source of information. A small application can make that source dramatically more useful without needing to create the content itself.&lt;/p&gt;

&lt;p&gt;For viewers, the invitation is simpler: choose whose recommendations deserve your attention, then choose an interface that helps you use them.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>claudecode</category>
      <category>youtube</category>
    </item>
    <item>
      <title>Dessa AI Explained: Block's Speech-Only Voice Model</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Sun, 25 Oct 2026 04:22:18 +0000</pubDate>
      <link>https://dev.to/czmilo/dessa-ai-explained-blocks-speech-only-voice-model-3mfm</link>
      <guid>https://dev.to/czmilo/dessa-ai-explained-blocks-speech-only-voice-model-3mfm</guid>
      <description>&lt;p&gt;&lt;em&gt;Updated October 25, 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dessa AI is a conversational speech model developed by a research team at Block, the company co-founded by Jack Dorsey.&lt;/strong&gt; It is designed to listen and speak in real time, including while the other speaker is still talking. The team announced it on October 23, 2026 (UTC). &lt;a href="https://x.com/RagavanThurair/status/2113671324400861645" rel="noopener noreferrer"&gt;Dessa team announcement&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The interesting part is how it learned. Block says Dessa was trained entirely on human conversation audio, without text or pretrained models. That makes it an experiment in learning language through sound. &lt;a href="https://block.xyz/dessa" rel="noopener noreferrer"&gt;Block's Dessa research preview&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This guide explains that approach, what the demos show, how Dessa AI compares with ChatGPT Voice, and what you can actually access today.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7vh2k6mt0mcbrrygwsgm.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7vh2k6mt0mcbrrygwsgm.webp" alt="Conceptual illustration of a person exchanging expressive sound waves with an abstract AI speech model" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Why do words alone miss part of a conversation?
&lt;/h2&gt;

&lt;p&gt;Imagine a friend says, "Oh, great."&lt;/p&gt;

&lt;p&gt;With a bright voice, it might mean good news. After a long sigh, the same words could mean the opposite. A transcript can preserve the sentence while leaving you to guess what the speaker meant.&lt;/p&gt;

&lt;p&gt;Timing matters too. Someone who pauses may be searching for a name, inviting a response, or trying to finish a difficult thought. A useful voice assistant needs to decide whether to speak, wait, or offer a brief acknowledgment.&lt;/p&gt;

&lt;p&gt;These details are often called &lt;strong&gt;prosody&lt;/strong&gt; and &lt;strong&gt;conversational timing&lt;/strong&gt;. Prosody includes pitch, stress, rhythm, and intonation. Conversational timing includes pauses, overlapping speech, and the exchange of turns.&lt;/p&gt;

&lt;p&gt;Dessa's research premise is that an AI can learn these aspects together with language by training on spoken interaction. It treats the sound of a conversation as meaningful information.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. How does Dessa AI work?
&lt;/h2&gt;

&lt;p&gt;A conventional voice assistant can use three separate stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Speech recognition converts the user's audio into text.&lt;/li&gt;
&lt;li&gt;A language model generates a written answer.&lt;/li&gt;
&lt;li&gt;Speech synthesis turns that answer into audio.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In this arrangement, the central language model may receive the words without directly receiving the speaker's tone or other sounds. OpenAI described this limitation when explaining the older ChatGPT Voice pipeline in its GPT-4o announcement. &lt;a href="https://openai.com/index/hello-gpt-4o/" rel="noopener noreferrer"&gt;OpenAI's explanation of the earlier voice pipeline&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Speech-to-speech&lt;/strong&gt; describes a different interaction: audio goes into the model, and audio comes out. Dessa combines that interaction with Block's stated speech-only training approach.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6mhlf8gs1wpkvlaad18n.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6mhlf8gs1wpkvlaad18n.webp" alt="Conceptual comparison of a text-based voice pipeline and Dessa's speech-to-speech interaction, with a full-duplex listening and speaking inset" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two ideas need to stay separate here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Speech-to-speech describes the interaction. Speech-only describes the training material.&lt;/strong&gt; A model can accept and generate audio while also learning from text or other modalities.&lt;/p&gt;

&lt;p&gt;Block has not supplied a detailed architecture paper on the launch page. The diagram is therefore a conceptual explanation, not a map of Dessa's internal components.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What does full duplex mean?
&lt;/h2&gt;

&lt;p&gt;Think of a phone call. You can hear the other person while you are speaking, and they can respond before you have completely finished.&lt;/p&gt;

&lt;p&gt;That is the basic meaning of &lt;strong&gt;full duplex&lt;/strong&gt;: listening and speaking can happen at the same time. The Dessa team identifies this as a core capability of the model. &lt;a href="https://x.com/RagavanThurair/status/2113671324400861645" rel="noopener noreferrer"&gt;Dessa lead Ragavan Thurairatnam's announcement&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, imagine saying, "The meeting is on Thursday—actually, Friday."&lt;/p&gt;

&lt;p&gt;A conversational system should be able to incorporate the correction. During a longer explanation, it might also offer a short "mm-hm" without trying to take over. Researchers call these brief listener responses &lt;strong&gt;backchannels&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The difficult part is choosing the right moment. Constant interruptions are frustrating. Waiting through every pause can feel unresponsive. Full duplex enables overlapping interaction; good judgment about when to use it is a separate challenge.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What do the Dessa AI demos show?
&lt;/h2&gt;

&lt;p&gt;Block's launch page includes conversations about a release announcement, remembering a movie, an anniversary surprise, and everyday topics. It highlights changes in loudness, laughter, sentence completion, and expressive delivery. &lt;a href="https://block.xyz/dessa" rel="noopener noreferrer"&gt;Official Dessa recordings&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Those examples help explain what the project is trying to improve: the rhythm of a conversation, including reactions that happen before a sentence ends.&lt;/p&gt;

&lt;p&gt;They also leave room for awkwardness. In his coverage, The Verge's Jay Peters noted examples where Dessa used an unexpected name or wandered onto a movie tangent. Natural delivery and consistent conversational accuracy are different qualities. &lt;a href="https://www.theverge.com/ai-artificial-intelligence/1017906/jack-dorsey-block-dessa-ai-voice-speech" rel="noopener noreferrer"&gt;The Verge's coverage of Dessa&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A model can sound surprised without having feelings. It can laugh at an appropriate moment while still misunderstanding a fact. Expressive audio should be assessed alongside the content of the answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Dessa AI vs. ChatGPT Voice: what is actually different?
&lt;/h2&gt;

&lt;p&gt;It would be misleading to describe every version of ChatGPT Voice as a speech-recognition system attached to a text chatbot.&lt;/p&gt;

&lt;p&gt;OpenAI introduced GPT-4o in 2024 as a model trained across text, vision, and audio. Its current GPT-Live documentation also describes simultaneous listening and speaking, with a backend handling delegated reasoning and tools. &lt;a href="https://openai.com/index/hello-gpt-4o/" rel="noopener noreferrer"&gt;GPT-4o's multimodal design&lt;/a&gt;, &lt;a href="https://developers.openai.com/api/docs/guides/live" rel="noopener noreferrer"&gt;GPT-Live documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A more useful comparison separates three approaches:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Dessa AI&lt;/th&gt;
&lt;th&gt;Conventional voice pipeline&lt;/th&gt;
&lt;th&gt;Other native voice systems&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Main interaction&lt;/td&gt;
&lt;td&gt;Speech to speech&lt;/td&gt;
&lt;td&gt;Speech recognition, text response, speech synthesis&lt;/td&gt;
&lt;td&gt;Can process and generate audio directly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Training approach&lt;/td&gt;
&lt;td&gt;Human conversation audio only, according to Block&lt;/td&gt;
&lt;td&gt;Depends on the models used at each stage&lt;/td&gt;
&lt;td&gt;May combine speech with text or other modalities&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Listening while speaking&lt;/td&gt;
&lt;td&gt;Full duplex, according to the team&lt;/td&gt;
&lt;td&gt;Depends on the surrounding implementation&lt;/td&gt;
&lt;td&gt;Supported by systems such as GPT-Live and Moshi&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Full duplex also predates Dessa. Kyutai's 2024 Moshi paper describes a full-duplex speech framework built from a text language model backbone, with parallel speech streams and text-assisted generation. &lt;a href="https://arxiv.org/abs/2410.00037" rel="noopener noreferrer"&gt;Moshi research paper&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dessa's distinguishing claim is its training entirely from human speech without a pretrained model.&lt;/strong&gt; That is a specific research direction. It does not establish that Dessa outperforms ChatGPT at reasoning, factual questions, or completing tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Can you use Dessa AI now?
&lt;/h2&gt;

&lt;p&gt;As of October 25, 2026, the official site presents a research preview. Its public material does not provide a general chat experience, API documentation, or a downloadable model package. &lt;a href="https://block.xyz/dessa" rel="noopener noreferrer"&gt;Dessa's official access information&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The team is inviting AI safety researchers to explore the model, with the website describing access for a small group. &lt;a href="https://x.com/RagavanThurair/status/2113691903866872251" rel="noopener noreferrer"&gt;The team's researcher invitation&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Status on October 25, 2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Recorded demonstrations&lt;/td&gt;
&lt;td&gt;Available on the official website&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;General public conversation access&lt;/td&gt;
&lt;td&gt;Not available through the reviewed launch page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public API&lt;/td&gt;
&lt;td&gt;No documentation or public endpoint provided&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Downloadable model weights&lt;/td&gt;
&lt;td&gt;No public package provided&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pricing&lt;/td&gt;
&lt;td&gt;Not published on the launch page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Safety researcher access&lt;/td&gt;
&lt;td&gt;Limited early access by application&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Can Dessa AI run locally on a Mac?
&lt;/h3&gt;

&lt;p&gt;Jack Dorsey's stated hardware guidance is a &lt;strong&gt;MacBook Pro with M4 Max or better&lt;/strong&gt;. This describes a claimed local inference capability; it does not give readers a model they can install today. &lt;a href="https://x.com/jack/status/2113792333238161547" rel="noopener noreferrer"&gt;Dorsey's hardware guidance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The launch page does not specify minimum memory, a complete supported-device list, or installation instructions.&lt;/p&gt;

&lt;p&gt;For access updates, start with the &lt;a href="https://block.xyz/dessa" rel="noopener noreferrer"&gt;official Dessa website&lt;/a&gt;. Follow the links Block provides when a public release becomes available.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Why does Dessa AI matter?
&lt;/h2&gt;

&lt;p&gt;The research question extends beyond whether a voice sounds convincing.&lt;/p&gt;

&lt;p&gt;If language and conversational behavior can be learned effectively from speech alone, researchers gain another way to study how training material shapes an AI's abilities. They can examine what the model learns about meaning, timing, factual knowledge, and interaction without starting from a text-trained system.&lt;/p&gt;

&lt;p&gt;Possible applications include language practice, conversational companions, and voice agents that handle interruptions more naturally. These are potential uses of the approach, rather than announced Dessa products.&lt;/p&gt;

&lt;p&gt;Each would need its own evaluation. A language tutor needs accurate corrections. A customer service agent needs reliable access to company information and tools. A companion needs appropriate boundaries. Fluent delivery cannot establish those capabilities by itself.&lt;/p&gt;

&lt;p&gt;Useful future tests would measure interruption handling, performance across accents and noisy rooms, factual reliability, and the stability of longer conversations.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Who created Dessa AI?
&lt;/h3&gt;

&lt;p&gt;A small research lab at Block developed Dessa. The team is led by Ragavan Thurairatnam and includes former members of the Toronto deep learning startup also called Dessa. &lt;a href="https://block.xyz/dessa" rel="noopener noreferrer"&gt;Block's team description&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Dessa AI open source?
&lt;/h3&gt;

&lt;p&gt;The reviewed launch material does not provide public weights or a model license. A research announcement alone does not establish an open-source release.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is there a Dessa AI API?
&lt;/h3&gt;

&lt;p&gt;No public API documentation or endpoint is provided in the official launch material as of October 25, 2026.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Dessa AI better than ChatGPT Voice?
&lt;/h3&gt;

&lt;p&gt;The available demonstrations do not establish an overall winner. A fair comparison would test both systems under the same conditions and measure conversational timing, answer quality, and task completion separately.&lt;/p&gt;

&lt;p&gt;Dessa AI offers an early look at learning conversation directly from human speech. For now, readers can explore the official recordings and follow the research. Broader access and independent evaluations will make it possible to judge how well the approach works beyond the selected demos.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>voiceai</category>
    </item>
    <item>
      <title>Understanding Prism: Dynamic Sparse Attention for Joint Video-Audio Generation</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Tue, 06 Oct 2026 09:22:25 +0000</pubDate>
      <link>https://dev.to/czmilo/understanding-prism-dynamic-sparse-attention-for-joint-video-audio-generation-5gek</link>
      <guid>https://dev.to/czmilo/understanding-prism-dynamic-sparse-attention-for-joint-video-audio-generation-5gek</guid>
      <description>&lt;p&gt;Prism is a dynamic sparse-attention framework for training video-and-audio generation models at high resolution. It aims to reduce the cost of attention while keeping the visual and sound details that matter to a clip.&lt;/p&gt;

&lt;p&gt;A 2K video contains far more visual tokens than a small image. If every token compares itself with every other token, attention becomes expensive quickly. Audio adds another stream of information, and a useful model must connect sounds to the parts of a scene that produce them.&lt;/p&gt;

&lt;p&gt;This article explains the problem Prism addresses, how its attention pattern changes with local content, and what the Hugging Face preview currently requires. The project page and paper describe the method; the results below are the authors’ reported findings, not an independent benchmark.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F962tsfyjjyyia1c9jkpj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F962tsfyjjyyia1c9jkpj.png" alt="A pencil drawing of a violinist across three video frames, with selected visual patches connected to a sound waveform" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Why does high-resolution video need a different approach?
&lt;/h2&gt;

&lt;p&gt;Imagine a model studying a short clip of someone playing an instrument. It receives many small visual patches from every frame, along with audio features from the soundtrack. A dense attention layer lets each visual token compare with every other token. This is flexible, but the number of comparisons grows roughly with the square of the token count.&lt;/p&gt;

&lt;p&gt;More frames and finer spatial detail both increase that count. At high resolutions, much of the video may be quiet background or repeated scenery. Giving every token equal access to every other token can spend compute on relationships that contribute little to learning.&lt;/p&gt;

&lt;p&gt;Video and audio also have a useful structure: sound is often tied to particular actions or objects. A struck drum, for example, should relate to the moving hand and drum surface more strongly than to a still wall. Prism uses this structure to guide sparse attention. &lt;a href="https://arxiv.org/abs/2610.05416" rel="noopener noreferrer"&gt;The paper&lt;/a&gt; and &lt;a href="https://huggingface.co/FrancisRing/Prism" rel="noopener noreferrer"&gt;Hugging Face model card&lt;/a&gt; describe the method.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Divide the clip into local zones
&lt;/h2&gt;

&lt;p&gt;Prism first organizes the video tokens into spatiotemporal macro-zones. Each zone covers a region across time, height, and width. You can think of it as dividing a long film strip into neighborhoods before deciding which neighborhoods need finer inspection.&lt;/p&gt;

&lt;p&gt;For each zone, the method estimates two signals. First, it measures how video features vary across channels, which gives clues about local visual structure and change. Second, it looks at feature norms from audio-to-video cross-attention, which indicate how strongly audio relates to each visual region.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffpvykapb2jk5dhzflv1k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffpvykapb2jk5dhzflv1k.png" alt="A pencil-drawn video volume split into broad and fine-grained zones, with audio-linked regions highlighted around a drum action" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Adapt the attention blocks to the content
&lt;/h2&gt;

&lt;p&gt;A quiet region can remain in broader blocks. A region with rapid visual changes, or one strongly linked to sound, can be divided more finely along the relevant axes. Prism assigns a block shape to each zone using those local signals, rather than forcing the same block geometry over the whole clip.&lt;/p&gt;

&lt;p&gt;The framework then uses a hybrid block-selection strategy to decide which key blocks each query should attend to. In simple terms, it spends more attention where the video changes or where audio and video interact, while skipping many less informative token-to-token comparisons. The model card also describes this per-query sparsity as dynamic.&lt;/p&gt;

&lt;p&gt;This is a training-time attention design, not a general claim that every part of video generation becomes cheaper. The paper focuses on sparse attention for joint video-audio model training; the repository separately exposes inference settings for its preview checkpoints.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What is available in the Hugging Face repository?
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://huggingface.co/FrancisRing/Prism" rel="noopener noreferrer"&gt;FrancisRing/Prism repository&lt;/a&gt; provides preview checkpoints and scripts for image-to-video or text-to-video-and-audio inference, as well as instructions for native joint video-audio training at 720p, 1080p, and 2K. The inference examples use a MOVA base-model checkpoint together with a Prism checkpoint, so the Prism weights are not the only files needed.&lt;/p&gt;

&lt;p&gt;The repository documents two inference paths. After setting the checkpoint paths and generation options in the scripts, the commands are:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Single-GPU or DeepSpeed path; the repository recommends it for 720p.&lt;/span&gt;
bash prism_infer.sh

&lt;span class="c"&gt;# FSDP path; the repository recommends it for 1080p and 2K.&lt;/span&gt;
bash prism_infer_fsdp.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script choice matters because the model’s memory requirements are high. The model card lists a single 80 GB NVIDIA GPU for 720p inference and four or more 80 GB GPUs for 1080p or 2K inference. For native training, it lists at least 32 such GPUs for 720p and 64 for 1080p or 2K. It also requires Python 3.10 or newer, CUDA 12.4 or newer, and &lt;code&gt;ffmpeg&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. How should we read the performance claim?
&lt;/h2&gt;

&lt;p&gt;The authors report that Prism trains 2.5 times faster than full attention in their experiments, while also achieving higher generation quality. That is a result from the paper’s experiments, not a guarantee for every model, dataset, hardware setup, or sparsity setting. The paper is an arXiv preprint submitted on October 4, 2026; readers evaluating the method should consult the paper for its experimental setup and comparisons. &lt;a href="https://arxiv.org/abs/2610.05416" rel="noopener noreferrer"&gt;Read the paper&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The Hugging Face page currently says the model is not deployed through an Inference Provider. In practice, this is a research preview for people prepared to download checkpoints and configure a GPU environment, rather than a hosted, click-to-run demo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Prism addresses the quadratic cost of dense attention by grouping video tokens into spatiotemporal zones, estimating visual variation and audio-video relevance, and choosing a different sparse block pattern for each zone and query. The aim is to preserve useful video-audio relationships while avoiding many low-value comparisons.&lt;/p&gt;

&lt;p&gt;The idea is most relevant to teams training joint video-audio models at high resolution. The current preview is technically accessible through its repository, but the GPU requirements put 1080p and 2K experiments in large-scale training territory.&lt;/p&gt;

&lt;p&gt;(End)&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>videogeneration</category>
      <category>deeplearning</category>
    </item>
    <item>
      <title>OpenAI Decisions API vs. Jev: What Changes When a Model Makes Decisions?</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Wed, 30 Sep 2026 02:01:04 +0000</pubDate>
      <link>https://dev.to/czmilo/openai-decisions-api-vs-jev-what-changes-when-a-model-makes-decisions-1f6a</link>
      <guid>https://dev.to/czmilo/openai-decisions-api-vs-jev-what-changes-when-a-model-makes-decisions-1f6a</guid>
      <description>&lt;p&gt;The OpenAI Decisions API is a limited-preview API for making a bounded choice from context. Instead of asking a model to explain itself in prose and then parsing that prose, you define a question and the possible answers; the API returns a decision your software can use.&lt;/p&gt;

&lt;p&gt;This is useful because much application logic does not need another paragraph. A support system needs a team, an agent needs its next tool, and a workflow needs a risk level. A decision interface makes that output the point of the call.&lt;/p&gt;

&lt;p&gt;OpenAI has now announced this as a distinct API primitive. Jev, TypeSafe’s System One decision model, already offers a public API in the same broad category. Below, we will separate what OpenAI has confirmed from what remains unknown, compare the two products, and then walk through a real Jev workflow on &lt;a href="https://decisions-api.dev/" rel="noopener noreferrer"&gt;decisions-api&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What OpenAI has announced
&lt;/h2&gt;

&lt;p&gt;At DevDay on September 29, 2026, OpenAI described Decisions API as a way to provide context—text or images—then define questions and a finite set of possible answers. The examples in OpenAI’s recap are content classification, request routing, and choosing an agent’s next action. The feature is currently in limited preview, with broader availability described as coming in the following days. &lt;a href="https://openai.com/index/devday-2026-recap/" rel="noopener noreferrer"&gt;OpenAI’s DevDay recap&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The difference from an ordinary prompt is easiest to see as a change in where the boundary lives:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Chat-style flow
context → prompt → generated explanation → parse/validate → application branch

Decision-style flow
context → question + allowed answers → typed decision → application branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second shape is attractive when the application already knows its possible next steps. It can reduce glue code, but it does not remove the need to define labels carefully, check edge cases, or keep sensitive actions under application control.&lt;/p&gt;

&lt;p&gt;OpenAI’s announcement says Decisions API uses Luna’s intelligence and accepts image context as well as text. A report from DevDay describes a specialized GPT-6 Luna version and a roughly 150 ms demo response, compared with about 1.6 seconds for a general Luna call. Treat those numbers as a reported demonstration, not a benchmark, production guarantee, or service-level agreement. &lt;a href="https://pasqualepillitteri.it/en/news/19372/openai-decisions-api-jev" rel="noopener noreferrer"&gt;DevDay reporting by Pasquale Pillitteri&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As of September 30, 2026, I could not find a public Decisions API reference page, request schema, endpoint, or standalone price in OpenAI’s developer documentation. The &lt;a href="https://developers.openai.com/api/docs/changelog" rel="noopener noreferrer"&gt;API changelog&lt;/a&gt; also does not yet list a Decisions API entry. So a path such as &lt;code&gt;POST /v1/decisions&lt;/code&gt; should not be copied from unofficial examples and treated as an official contract. The preview announcement is real; the public implementation details are still pending.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. How Jev compares
&lt;/h2&gt;

&lt;p&gt;TypeSafe’s Jev is the first model in its System One family. Its public API accepts a state and typed questions. The main question types are &lt;code&gt;Choice&lt;/code&gt; for selecting among named options, &lt;code&gt;Score&lt;/code&gt; for ordered levels, and &lt;code&gt;Noul&lt;/code&gt; for a yes-or-no proposition. Jev returns structured answers with probability signals; the direct TypeSafe endpoint is &lt;code&gt;POST https://api.typesafe.ai/v1/systemone&lt;/code&gt;. &lt;a href="https://docs.typesafe.ai/introduction" rel="noopener noreferrer"&gt;TypeSafe API introduction&lt;/a&gt; · &lt;a href="https://api.typesafe.ai/docs" rel="noopener noreferrer"&gt;API reference&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkgjb2mjwb4tcn8em7obn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkgjb2mjwb4tcn8em7obn.webp" alt="Pencil sketch comparing the OpenAI preview path with Jev’s published typed-decision API" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;OpenAI Decisions API&lt;/th&gt;
&lt;th&gt;Jev by TypeSafe&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Availability&lt;/td&gt;
&lt;td&gt;Limited preview announced September 29, 2026&lt;/td&gt;
&lt;td&gt;Public API and API reference available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Input described publicly&lt;/td&gt;
&lt;td&gt;Text or images as context&lt;/td&gt;
&lt;td&gt;Primarily text state, including structured text/JSON&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Decision shape&lt;/td&gt;
&lt;td&gt;A question with finite possible answers&lt;/td&gt;
&lt;td&gt;Choice, Score, and Noul typed questions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Probabilities&lt;/td&gt;
&lt;td&gt;Mentioned in launch coverage; public technical details are pending&lt;/td&gt;
&lt;td&gt;Probability fields are part of the documented answer shape&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Calibration&lt;/td&gt;
&lt;td&gt;OpenAI has not published technical detail in the public API docs checked&lt;/td&gt;
&lt;td&gt;TypeSafe describes RLCD training for calibrated decisions; this is a provider claim, not a per-answer guarantee&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency&lt;/td&gt;
&lt;td&gt;About 150 ms in one reported launch demo; not an SLA&lt;/td&gt;
&lt;td&gt;TypeSafe presents Jev as a low-latency decision model; measure it on your own traffic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Price and schema&lt;/td&gt;
&lt;td&gt;No standalone public price or API schema found on September 30, 2026&lt;/td&gt;
&lt;td&gt;TypeSafe lists $42 per billion input tokens ($0.042 per million) and publishes a Swagger API reference&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;TypeSafe describes its approach as &lt;strong&gt;RLCD&lt;/strong&gt;, or Reinforcement Learning for Calibrated Decisions. Its documentation explains calibration as a property to evaluate across groups of predictions, rather than a promise that every individual probability is correct. In production, test probabilities against labeled examples and track calibration and error costs yourself. &lt;a href="https://docs.typesafe.ai/introduction/machine-learning-primer" rel="noopener noreferrer"&gt;TypeSafe’s machine-learning primer&lt;/a&gt; · &lt;a href="https://typesafe.ai/" rel="noopener noreferrer"&gt;TypeSafe pricing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Neither product should be judged by a demo number alone. Compare the complete decision path on the same representative states: correct route, missed escalation, latency, cost, and how often a human must intervene. Keep thresholds and high-impact actions in application code.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What you can do on &lt;a href="https://decisions-api.dev/" rel="noopener noreferrer"&gt;decisions-api&lt;/a&gt; today
&lt;/h2&gt;

&lt;p&gt;Decisions-api.org is an independent playground and API service. Its current workbench can run Jev, along with other decision models. It does not currently expose OpenAI’s limited-preview Decisions API. The steps below therefore use the site’s Jev integration and the site’s own API contract; they do not use an OpenAI API key.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Open a ready-made decision
&lt;/h3&gt;

&lt;p&gt;Visit the &lt;a href="https://decisions-api.dev/playground?example=support-routing" rel="noopener noreferrer"&gt;support-routing example&lt;/a&gt; and sign in. New accounts receive 100 welcome credits once. Loading an example does not use credits; a live model run does. Choose &lt;code&gt;typesafe/jev-1.13&lt;/code&gt; in the model selector if it is not already selected.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frtm6j8f3s9sgnpuw2qkw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frtm6j8f3s9sgnpuw2qkw.webp" alt="Real decisions-api.org playground showing a support state and a bounded routing question" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The screenshot shows the example’s input fields. Any static preview in the interface is labeled illustrative and is not a model response. Run your own example before treating an answer or probability as evidence.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Define the decision you actually need
&lt;/h3&gt;

&lt;p&gt;Write a short state with the relevant facts, then ask one concrete question. For example, “Which team should handle this request?” is easier to evaluate than “Understand this customer.” Define the allowed destinations and what each one means. In Jev, that maps to a &lt;code&gt;Choice&lt;/code&gt; question.&lt;/p&gt;

&lt;p&gt;For a first trial, keep one question and use billing, technical, and general support as the options. Then try ordinary, borderline, and ambiguous tickets. Change only one thing at a time so you can tell whether the state, instructions, or answer criteria caused a change.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Run examples and inspect the result
&lt;/h3&gt;

&lt;p&gt;Use the Run button to make a live request. Review the chosen option and its probabilities. If you need a numeric severity, add a &lt;code&gt;Score&lt;/code&gt;; if you need a yes-or-no judgment, use &lt;code&gt;Noul&lt;/code&gt;. Avoid treating a returned probability as measured accuracy or as permission to automate a high-impact action.&lt;/p&gt;

&lt;p&gt;If you already have labeled examples, compare model decisions against them. Track false routes, missed escalations, latency, and the cost of review. Route uncertain or high-risk cases to a person until evaluation supports a safer threshold.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Create a site API key
&lt;/h3&gt;

&lt;p&gt;Open &lt;a href="https://decisions-api.dev/settings/apikeys" rel="noopener noreferrer"&gt;API keys&lt;/a&gt; and create a key for your application. This key belongs to decisions-api.org. Store it as a server-side secret, for example &lt;code&gt;DECISIONS_API_KEY&lt;/code&gt;; do not put it in browser code or a public repository. The site’s &lt;a href="https://decisions-api.dev/docs#quickstart" rel="noopener noreferrer"&gt;API quickstart&lt;/a&gt; documents this platform API.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8z76sy1190vu2aefgjy1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8z76sy1190vu2aefgjy1.webp" alt="Actual decisions-api.org API quickstart with its key creation and request documentation" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Send a decision request from your server
&lt;/h3&gt;

&lt;p&gt;Here is a minimal request using the site’s documented endpoint and Jev model. Replace the example state with data your application is allowed to send.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://decisions-api.dev/v1/systemone &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$DECISIONS_API_KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Idempotency-Key: support-ticket-1842"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "model": "typesafe/jev-1.13",
    "state": {
      "message": "I paid yesterday but still do not have access.",
      "account_status": "active"
    },
    "questions": {
      "department": {
        "type": "choice",
        "instructions": "Which team should handle this request?",
        "criteria": {
          "billing": "Payment, invoice, refund, or access after payment",
          "technical": "A product bug or service failure",
          "general": "A request that does not fit the other teams"
        }
      }
    }
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The site API wraps successful data: read the selected answer at &lt;code&gt;data.result.answers.department&lt;/code&gt;. The &lt;code&gt;Idempotency-Key&lt;/code&gt; should be unique for each logical request; reusing it intentionally prevents a duplicate model run. This is the decisions-api.org contract, not the direct TypeSafe or OpenAI endpoint. &lt;a href="https://decisions-api.dev/docs" rel="noopener noreferrer"&gt;Full site API documentation&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Keep the final branch in your code
&lt;/h3&gt;

&lt;p&gt;The site charges credits from your decisions-api.org balance. Its current workbench lists Jev at 600 credits per million input tokens, rounds each successful call up to at least one credit, and does not bill output tokens; $1 buys 10,000 credits. This platform billing is separate from TypeSafe’s direct $0.042/M token price. Check the &lt;a href="https://decisions-api.dev/playground" rel="noopener noreferrer"&gt;live workbench billing note&lt;/a&gt; before estimating a project. &lt;a href="https://decisions-api.dev/docs#limits" rel="noopener noreferrer"&gt;Site API limits and billing notes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz5mu7pljdoq9uayb3yvg.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz5mu7pljdoq9uayb3yvg.webp" alt="Actual decisions-api.org generated code view for calling the decision endpoint" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your application should decide what to do with the answer. For example, route a high-confidence, low-risk ticket automatically and send uncertain cases to a support queue. Keep authorization checks, payment changes, account closure, and other consequential actions deterministic and auditable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one should you evaluate first?
&lt;/h2&gt;

&lt;p&gt;OpenAI’s announcement makes decision-specific APIs a larger conversation: software often needs a classification, score, route, or next action rather than a paragraph. OpenAI’s preview may be especially interesting for visual inputs if that announced capability reaches a stable public API. The endpoint, schema, price, and probability-calibration details still need to be published.&lt;/p&gt;

&lt;p&gt;Jev can be tested now through TypeSafe’s public API or through the decisions-api.org workbench. Start with one bounded, low-risk decision and a labeled evaluation set. The model returns a judgment; your application remains responsible for deciding whether that judgment is good enough to act on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Research date:&lt;/strong&gt; September 30, 2026. Product availability and prices may change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt; &lt;a href="https://openai.com/index/devday-2026-recap/" rel="noopener noreferrer"&gt;OpenAI DevDay recap&lt;/a&gt; · &lt;a href="https://developers.openai.com/api/docs/changelog" rel="noopener noreferrer"&gt;OpenAI API changelog&lt;/a&gt; · &lt;a href="https://docs.typesafe.ai/introduction" rel="noopener noreferrer"&gt;TypeSafe Jev introduction&lt;/a&gt; · &lt;a href="https://api.typesafe.ai/docs" rel="noopener noreferrer"&gt;TypeSafe API reference&lt;/a&gt; · &lt;a href="https://docs.typesafe.ai/introduction/machine-learning-primer" rel="noopener noreferrer"&gt;TypeSafe calibration primer&lt;/a&gt; · &lt;a href="https://typesafe.ai/" rel="noopener noreferrer"&gt;TypeSafe pricing&lt;/a&gt; · &lt;a href="https://pasqualepillitteri.it/en/news/19372/openai-decisions-api-jev" rel="noopener noreferrer"&gt;DevDay latency report&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article is an independent product guide. Decisions-api.org is not an OpenAI product, and Jev is a TypeSafe model.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>decisionsapi</category>
      <category>jev</category>
    </item>
    <item>
      <title>Understanding Qwen Image 2.1 GGUF</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Tue, 29 Sep 2026 02:59:11 +0000</pubDate>
      <link>https://dev.to/czmilo/understanding-qwen-image-21-gguf-4chk</link>
      <guid>https://dev.to/czmilo/understanding-qwen-image-21-gguf-4chk</guid>
      <description>&lt;p&gt;Qwen Image 2.1 is an image model for creating pictures from text and editing existing images. GGUF files are community-converted versions of its generation weights, designed for compatible local inference tools.&lt;/p&gt;

&lt;p&gt;The model itself is only one part of the setup. A local workflow also needs a runtime, a text encoder, and the matching VAE—the component that turns the model's image representation into pixels.&lt;/p&gt;

&lt;p&gt;This guide explains what the conversion changes, how to choose a file size, and how to connect the pieces. The command follows the maintainer's documentation; I have not benchmarked it on a specific computer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.postimg.cc%2FG4VGqK1X%2Flocal-generation-sketch.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.postimg.cc%2FG4VGqK1X%2Flocal-generation-sketch.png" alt="A pencil sketch of a local computer turning model files and a text prompt into an image" width="179" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What does GGUF change?
&lt;/h2&gt;

&lt;p&gt;Think of a model as a detailed drawing kit packed into a box. Quantization stores its numbers with fewer bits, much like packing the kit into a smaller box. The file takes less space, but the conversion also introduces some numerical loss.&lt;/p&gt;

&lt;p&gt;The files in the &lt;a href="https://huggingface.co/leejet/Qwen-Image-2.1-GGUF" rel="noopener noreferrer"&gt;community Qwen Image 2.1 GGUF repository&lt;/a&gt; are conversions, not a separate model trained by Qwen. The &lt;a href="https://huggingface.co/Qwen/Qwen-Image-2.1" rel="noopener noreferrer"&gt;official model card&lt;/a&gt; describes a 7-billion-parameter visual-generation component. The original model supports text-to-image generation, image editing, and transparent RGBA output. A converted runtime may expose only some of those features.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo8pg4r7yo5erc8bbc1nk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo8pg4r7yo5erc8bbc1nk.png" alt="A pencil comparison of compact, medium, and larger quantized model files" width="179" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Choose a quantization
&lt;/h2&gt;

&lt;p&gt;The repository lists several quantized files. Their download sizes help estimate storage, but they are not minimum GPU-memory requirements.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Quantization&lt;/th&gt;
&lt;th&gt;File size&lt;/th&gt;
&lt;th&gt;A reasonable starting point&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Q2_K&lt;/td&gt;
&lt;td&gt;2.56 GB&lt;/td&gt;
&lt;td&gt;When storage is very limited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q3_K&lt;/td&gt;
&lt;td&gt;3.27 GB&lt;/td&gt;
&lt;td&gt;When you need a small file with a little more detail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q4_0 / Q4_K&lt;/td&gt;
&lt;td&gt;4.20 GB&lt;/td&gt;
&lt;td&gt;A practical balance for many local setups&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q5_0&lt;/td&gt;
&lt;td&gt;5.07 GB&lt;/td&gt;
&lt;td&gt;When you can spend more memory to retain detail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q6_K&lt;/td&gt;
&lt;td&gt;6.00 GB&lt;/td&gt;
&lt;td&gt;When image fidelity matters and resources allow it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q8_0&lt;/td&gt;
&lt;td&gt;7.69 GB&lt;/td&gt;
&lt;td&gt;A larger, higher-precision option&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are the sizes shown in the repository's file list. In general, higher-bit weights preserve more numerical detail and need more storage. The visible effect depends on the prompt, resolution, runtime, and hardware, so no single choice is best for every image.&lt;/p&gt;

&lt;p&gt;Do not read “4.20 GB” as “this needs exactly 4.20 GB of VRAM.” Inference also uses memory for the text encoder, VAE, intermediate image data, and runtime work buffers. Higher resolutions can raise that working-memory requirement. Start with a quantization that fits your storage, then test the resolution and speed you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The GGUF is one part of the pipeline
&lt;/h2&gt;

&lt;p&gt;The diffusion model interprets the prompt and builds an image representation. The text encoder turns the prompt into model input. The VAE decodes the image representation into pixels.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ahpgawn1cxser5j8h9x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ahpgawn1cxser5j8h9x.png" alt="A pencil workflow diagram connecting a GGUF model, text prompt, VAE, local runtime, and output image" width="179" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the documented Qwen Image 2.1 setup, prepare three files:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The diffusion weights, such as &lt;code&gt;qwen_image_2.1-Q4_K.gguf&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A Qwen3-VL-8B-Instruct text encoder. The maintainer's example uses &lt;code&gt;Qwen3VL-8B-Instruct-Q4_K_M.gguf&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The matching &lt;code&gt;qwen_image_2.1_vae_bf16.safetensors&lt;/code&gt; VAE.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The maintainer warns that this VAE is not interchangeable with the earlier Qwen Image or Wan 2.2 VAEs. For image editing with a GGUF text encoder, the documented setup also requires a matching vision projection file, such as &lt;code&gt;mmproj-Qwen3VL-8B-Instruct-F16.gguf&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Run a text-to-image example
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://github.com/leejet/stable-diffusion.cpp/blob/master/docs/qwen_image_2.1.md" rel="noopener noreferrer"&gt;stable-diffusion.cpp Qwen Image 2.1 guide&lt;/a&gt; shows how to pass the diffusion weights, text encoder, and VAE to &lt;code&gt;sd-cli&lt;/code&gt;. Here is its basic command shape using Q4_K; change the paths to match your files.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sd-cli &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--diffusion-model&lt;/span&gt; ../models/diffusion_models/qwen_image_2.1-Q4_K.gguf &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--vae&lt;/span&gt; ../models/vae/qwen_image_2.1_vae_bf16.safetensors &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--llm&lt;/span&gt; ../models/text_encoders/Qwen3VL-8B-Instruct-Q4_K_M.gguf &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="s2"&gt;"A small mountain observatory after fresh snowfall, warm window light, quiet winter dusk"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--cfg-scale&lt;/span&gt; 6.0 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--sampling-method&lt;/span&gt; euler &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--offload-to-cpu&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-o&lt;/span&gt; qwen-image-2.1.png
~~~&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;

In this &lt;span class="nb"&gt;command&lt;/span&gt;, &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="nt"&gt;--diffusion-model&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; points to the GGUF file&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="nt"&gt;--llm&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; and &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="nt"&gt;--vae&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; load the two companion files. The prompt follows &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="nt"&gt;-p&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt; CPU offload may &lt;span class="nb"&gt;help &lt;/span&gt;when GPU memory is tight, but it can slow generation. The maintainer&lt;span class="s1"&gt;'s guide also says image dimensions should be divisible by 32.

If you prefer ComfyUI, the GGUF model card links to a starter text-to-image workflow and recommends the {% raw %}`leejet/ComfyUI-GGUF` custom node. Follow that repository'&lt;/span&gt;s current setup instructions and check that your ComfyUI version supports the required nodes.

&lt;span class="c"&gt;## 5. Common mistakes&lt;/span&gt;

1. &lt;span class="k"&gt;**&lt;/span&gt;Treating the diffusion GGUF as the whole model.&lt;span class="k"&gt;**&lt;/span&gt; It does not replace the text encoder, VAE, or a runtime that understands this conversion.
2. &lt;span class="k"&gt;**&lt;/span&gt;Choosing a VAE by a similar filename.&lt;span class="k"&gt;**&lt;/span&gt; Use the Qwen Image 2.1 VAE listed &lt;span class="k"&gt;in &lt;/span&gt;the setup guide&lt;span class="p"&gt;;&lt;/span&gt; the earlier model VAEs are not interchangeable.
3. &lt;span class="k"&gt;**&lt;/span&gt;Estimating VRAM from download size.&lt;span class="k"&gt;**&lt;/span&gt; The GGUF file size measures storage. Inference also needs working memory, and resolution changes the amount.
4. &lt;span class="k"&gt;**&lt;/span&gt;Assuming quantization changes the license.&lt;span class="k"&gt;**&lt;/span&gt; The GGUF repository says its files follow the original model&lt;span class="s1"&gt;'s license. The [Qwen Research License Agreement](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/LICENSE) grants use for non-commercial purposes; commercial use requires a separate license from Qwen.

## Conclusion

Qwen Image 2.1 GGUF is a compact way to load converted image-generation weights in a compatible local runtime. The practical setup has three parts: diffusion GGUF, Qwen3-VL text encoder, and the matching VAE. Choose quantization by balancing file size and image fidelity, then check actual memory use at your target resolution.

For current filenames and compatibility notes, start with the [GGUF repository](https://huggingface.co/leejet/Qwen-Image-2.1-GGUF) and the [maintainer'&lt;/span&gt;s runtime guide]&lt;span class="o"&gt;(&lt;/span&gt;https://github.com/leejet/stable-diffusion.cpp/blob/master/docs/qwen_image_2.1.md&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt;

&lt;span class="o"&gt;(&lt;/span&gt;End&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>qwen</category>
      <category>ai</category>
      <category>gguf</category>
      <category>imagegeneration</category>
    </item>
    <item>
      <title>What Is Jev AI Model? The 2026 Complete Guide to the Decision Model, Playground, API &amp; Pricing</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Wed, 23 Sep 2026 09:37:35 +0000</pubDate>
      <link>https://dev.to/czmilo/what-is-jev-ai-model-the-2026-complete-guide-to-the-decision-model-playground-api-pricing-5eb3</link>
      <guid>https://dev.to/czmilo/what-is-jev-ai-model-the-2026-complete-guide-to-the-decision-model-playground-api-pricing-5eb3</guid>
      <description>&lt;h2&gt;
  
  
  🎯 Key Takeaways (TL;DR)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Jev AI Model is not a chatbot and doesn't generate text&lt;/strong&gt;: it's a "decision model" that takes a state (a ticket, message, or JSON object) plus typed questions, and returns structured answers with probabilities — output your code can branch on directly, with no prose to parse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three question types cover the decision layer of most software&lt;/strong&gt;: Choice (classification), Score (continuous rating), and Noul (yes/no judgment) — batched in one request, each answered with probabilities and a confidence score.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free playground, one-time pricing, no subscription&lt;/strong&gt;: test free after sign-in at &lt;a href="https://jevaimodel.net" rel="noopener noreferrer"&gt;jevaimodel.net&lt;/a&gt;; API credits start at $10 (100,000 credits) and never expire — $100 Pro and $1,000 Enterprise tiers add throughput and team features.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It targets the layer LLMs handle badly&lt;/strong&gt;: small decisions made thousands of times a day (route, escalate, block, approve) — where per TypeSafe's published benchmark a decision runs up to 193.6x faster and 444.6x cheaper than the comparable LLM workflow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Know the boundaries&lt;/strong&gt;: text/JSON input only (no images, audio, video), English-first accuracy, and validate non-English inputs separately before production.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What Is Jev AI Model — and What Is a "Decision Model"?&lt;/li&gt;
&lt;li&gt;How Does Jev Work? State, Questions, Typed Answers&lt;/li&gt;
&lt;li&gt;Jev vs LLM Structured Outputs: When to Use Which?&lt;/li&gt;
&lt;li&gt;How to Use Jev AI Model: Three Paths&lt;/li&gt;
&lt;li&gt;Jev AI Model Pricing: What Does It Cost?&lt;/li&gt;
&lt;li&gt;What Are the Real Use Cases?&lt;/li&gt;
&lt;li&gt;Limitations and Caveats&lt;/li&gt;
&lt;li&gt;FAQ&lt;/li&gt;
&lt;li&gt;Conclusion and Next Steps&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;a id="what-is"&gt;&lt;/a&gt;What Is Jev AI Model — and What Is a "Decision Model"?
&lt;/h2&gt;

&lt;p&gt;Jev AI Model is the model behind &lt;a href="https://jevaimodel.net" rel="noopener noreferrer"&gt;jevaimodel.net&lt;/a&gt;, and the site's positioning is unusually blunt: &lt;strong&gt;"Not chat. A decision inside your system."&lt;/strong&gt; The premise is that the hardest product work today isn't generating another paragraph — it's making small decisions many times a second without losing control. Routing a ticket. Scoring a lead. Deciding whether a message needs a human.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;decision model&lt;/strong&gt; is built for exactly that layer. Instead of the LLM pattern (prompt → free text → parse → retry), Jev inverts the contract:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You define the answer space up front&lt;/strong&gt; — the possible answers are part of the request, so the output is guaranteed to fit your schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You ask typed questions, not open prompts&lt;/strong&gt; — classification, scoring, or yes/no.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every answer carries probabilities and confidence&lt;/strong&gt; — so your system knows when to decide alone and when to escalate to a person.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model line is called "System One" (from psychology's fast/intuitive System 1 vs deliberate System 2): the idea that machine-to-machine decisions don't need natural language at all — they need fast, cheap, self-consistent judgments that behave "more like code."&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 &lt;strong&gt;Pro tip&lt;/strong&gt;&lt;br&gt;
If you're currently prompting an LLM with "classify this as A/B/C and respond in JSON," that's exactly the workload Jev AI Model is designed to replace — the JSON parsing, retry logic, and hallucinated-format failures disappear because the structure is enforced by the request itself.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;a id="how-it-works"&gt;&lt;/a&gt;How Does Jev Work? State, Questions, Typed Answers
&lt;/h2&gt;

&lt;p&gt;The API has two core concepts. A &lt;strong&gt;state&lt;/strong&gt; — the data to evaluate: a support ticket's text, a message, form fields, or any JSON object your system already holds. And &lt;strong&gt;questions&lt;/strong&gt; — typed questions about that state, in three varieties:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question type&lt;/th&gt;
&lt;th&gt;What it answers&lt;/th&gt;
&lt;th&gt;Returns&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Choice&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Classification with defined options&lt;/td&gt;
&lt;td&gt;Selected option + per-option probabilities + confidence&lt;/td&gt;
&lt;td&gt;"intent: billing / bug / feature request"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Score&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Continuous rating against a scale&lt;/td&gt;
&lt;td&gt;Score + distribution + confidence&lt;/td&gt;
&lt;td&gt;"customer frustration, 0–2"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Noul&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes-or-no judgment against criteria&lt;/td&gt;
&lt;td&gt;Probability the statement is true (e.g., 0.95)&lt;/td&gt;
&lt;td&gt;"Does this ticket need a human?"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Multiple questions can be evaluated against the same state &lt;strong&gt;in one request&lt;/strong&gt;, in parallel — so "which team? how urgent? how frustrated? does it need review?" costs one call, not four.&lt;/p&gt;

&lt;p&gt;The result is designed to land directly in control flow: &lt;code&gt;if result.needs_human: escalate()&lt;/code&gt;. The site describes the separation of concerns plainly: you give it state, you ask the question, and &lt;strong&gt;code acts&lt;/strong&gt; — Jev only handles the decision in the middle, while your system keeps ownership of what happens next.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 &lt;strong&gt;Pro tip&lt;/strong&gt;&lt;br&gt;
Batch your questions. Because every question about a state is evaluated in parallel in one request, "which team + how urgent + needs review?" is one call — the pattern that makes per-message decision costs disappear.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;graph TD
    A[Your system: ticket / message / JSON state] --&amp;gt; B[Jev: typed questions — Choice, Score, Noul]
    B --&amp;gt; C[Typed answers + probabilities + confidence]
    C --&amp;gt; D{Confidence above threshold?}
    D --&amp;gt;|Yes| E[Act automatically: route, queue, block, approve]
    D --&amp;gt;|No| F[Escalate to a human]
    E --&amp;gt; G[Your business logic stays yours]
    F --&amp;gt; G&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  &lt;a id="vs-llm"&gt;&lt;/a&gt;Jev vs LLM Structured Outputs: When to Use Which?
&lt;/h2&gt;

&lt;p&gt;Modern LLMs have JSON mode and function calling — so why a dedicated decision model? The comparison comes down to what each is optimized for:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Jev AI Model (decision model)&lt;/th&gt;
&lt;th&gt;LLM structured outputs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Output&lt;/td&gt;
&lt;td&gt;Typed answer + probability, schema-enforced&lt;/td&gt;
&lt;td&gt;JSON parsed from generated text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Speed per decision&lt;/td&gt;
&lt;td&gt;~0.1s class (per TypeSafe's benchmark)&lt;/td&gt;
&lt;td&gt;Seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost per decision&lt;/td&gt;
&lt;td&gt;~$0.000081 (benchmark figure)&lt;/td&gt;
&lt;td&gt;~$0.014 for comparable workflow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Batch questions&lt;/td&gt;
&lt;td&gt;Multiple per request, parallel&lt;/td&gt;
&lt;td&gt;Multiple calls or one large prompt&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uncertainty signal&lt;/td&gt;
&lt;td&gt;Native probability + confidence&lt;/td&gt;
&lt;td&gt;Varies; often absent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Failure mode&lt;/td&gt;
&lt;td&gt;Low-confidence answer you can gate&lt;/td&gt;
&lt;td&gt;Invalid JSON / hallucinated fields&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best at&lt;/td&gt;
&lt;td&gt;High-volume routing, scoring, gating&lt;/td&gt;
&lt;td&gt;Open-ended reasoning, drafting, planning&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Per TypeSafe's published benchmark, the contrast is roughly two orders of magnitude: &lt;strong&gt;up to 193.6x faster and 444.6x cheaper&lt;/strong&gt; on System One task workflows (~$0.000081 / 0.114s per decision vs ~$0.01388 / 8.566s for the LLM comparison). Vendor-run benchmarks deserve skepticism, but the direction is structurally true: a small typed model does less work than a large generative one.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Note&lt;/strong&gt;&lt;br&gt;
Jev doesn't replace your LLM — it replaces the &lt;em&gt;small, repetitive&lt;/em&gt; decisions you're currently delegating to it. The durable architecture in 2026 is complementary: the LLM handles open-ended reasoning (System Two), Jev handles high-volume fast judgments (System One).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;a id="how-to-use"&gt;&lt;/a&gt;How to Use Jev AI Model: Three Paths
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Path 1: The free online playground
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;a href="https://jevaimodel.net" rel="noopener noreferrer"&gt;jevaimodel.net&lt;/a&gt; and sign in — free, with Google One Tap supported.&lt;/li&gt;
&lt;li&gt;Paste a real scenario as the state (a support ticket, a message, form data).&lt;/li&gt;
&lt;li&gt;Define typed questions — choice, score, or noul.&lt;/li&gt;
&lt;li&gt;Inspect the typed decision with its probabilities before writing any code.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Path 2: The API
&lt;/h3&gt;

&lt;p&gt;Create an API key and send states and questions to &lt;code&gt;POST /v1/systemone&lt;/code&gt; — or use the official Python SDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;typesafe_sdk&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Choice&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Noul&lt;/span&gt;

&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;system_one&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;ticket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;questions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;intent&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Choice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;criteria&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{...}),&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;needs_human&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Noul&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;instructions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Does this need a person?&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# response.answers["intent"].choice
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Path 3: The Jev Agent Skill (Codex, Claude Code, Cursor)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx skills add jev-ai/jev-agent-skill
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;JEV_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"sk_your_key_here"&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;JEV_LANGUAGE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"en-US"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install the public skill, configure one API key, and your coding agent gains a typed judgment layer for routing, guardrails, verification, and completion checks — the agent keeps control of final actions; Jev supplies the decision. English by default, Simplified Chinese supported.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;Best practice&lt;/strong&gt;&lt;br&gt;
Start with one decision you can verify — e.g., triage intent on real support tickets in the playground — and compare Jev's confusion cases against your current logic before wiring it into production routing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;a id="pricing"&gt;&lt;/a&gt;Jev AI Model Pricing: What Does It Cost?
&lt;/h2&gt;

&lt;p&gt;The pricing model is the rarest kind: &lt;strong&gt;one-time purchases, no auto-renewal, credits that never expire.&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Price (one-time)&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;th&gt;Concurrency&lt;/th&gt;
&lt;th&gt;Standout features&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Playground&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Free (sign-in)&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Full question types, typed output inspection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Starter&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;td&gt;100,000 (no expiry)&lt;/td&gt;
&lt;td&gt;3 requests&lt;/td&gt;
&lt;td&gt;Validate one real workflow end to end&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Pro&lt;/strong&gt; (recommended)&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;td&gt;1,000,000 (no expiry)&lt;/td&gt;
&lt;td&gt;10 requests&lt;/td&gt;
&lt;td&gt;Fast lane, parallel questions, usage history, priority support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Enterprise&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$1,000&lt;/td&gt;
&lt;td&gt;11,000,000 (10% bonus)&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;td&gt;Dedicated fast lane, team workspaces, custom integration support&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For context on cost-per-decision: at Pro's 1,000,000 credits for $100, a single decision costs on the order of a hundredth of a cent — the class of pricing where "call it on every message" becomes economically reasonable, which is precisely the point of the category.&lt;/p&gt;

&lt;p&gt;Beyond the official site, the Jev model line is also distributed through Cloudflare Workers AI (model ID &lt;code&gt;typesafe/jev&lt;/code&gt;) and OpenRouter (&lt;code&gt;typesafe/jev-1.13&lt;/code&gt;), with a LangChain integration (&lt;code&gt;langchain-typesafe&lt;/code&gt;) — worth comparing if you already run infrastructure on those platforms.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a id="use-cases"&gt;&lt;/a&gt;What Are the Real Use Cases?
&lt;/h2&gt;

&lt;p&gt;The site frames solutions around the decisions already "hiding in your code":&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Support triage&lt;/strong&gt;: intent + urgency + frustration scored in one pass; auto-route the confident cases, escalate the rest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guardrails and safety checks&lt;/strong&gt;: noul-style gates ("is this output safe to send?") on agent pipelines, with confidence-triggered human review.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent control flow&lt;/strong&gt;: the Agent Skill lets Codex/Claude Code/Cursor agents request bounded judgments for routing, verification, and completion checks — the "should I continue?" decisions agents currently guess at.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lead and content scoring&lt;/strong&gt;: continuous score questions against a defined scale, feeding prioritization queues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Form and message classification&lt;/strong&gt;: any place a human reads text and picks from a fixed set of outcomes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The unifying pattern: &lt;strong&gt;high volume, bounded answer space, and a cost to getting it wrong that's managed by confidence thresholds rather than perfection.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a id="limits"&gt;&lt;/a&gt;Limitations and Caveats
&lt;/h2&gt;

&lt;p&gt;Honest boundaries, mostly from the official docs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Text, JSON objects, and arrays of text only&lt;/strong&gt; — no images, audio, or video yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;English-first&lt;/strong&gt;: non-English inputs should be validated separately for accuracy before production use (the site and agent skill support Simplified Chinese, and a /zh version exists).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's a judgment layer, not a knowledge layer&lt;/strong&gt; — Jev decides on the state you give it; it doesn't retrieve facts or reason over long documents the way an LLM can.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vendor benchmarks&lt;/strong&gt; (the 193x/444x figures) are TypeSafe's own — directionally credible for the workload class, but run your own comparison on your data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Probability calibration is model-specific&lt;/strong&gt; — before gating on thresholds like 0.8, observe the confidence distribution on your real traffic.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🤔 FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Q: What is Jev AI Model?
&lt;/h3&gt;

&lt;p&gt;A: Jev AI Model is a "decision model" at &lt;a href="https://jevaimodel.net" rel="noopener noreferrer"&gt;jevaimodel.net&lt;/a&gt; that classifies, scores, and answers yes/no questions about text and JSON states — returning typed answers with probabilities instead of generated text, for direct use in application logic.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: Is Jev AI Model free?
&lt;/h3&gt;

&lt;p&gt;A: The online playground is free after sign-in. API calls use paid credits: $10 (100,000 credits), $100 (1,000,000), or $1,000 (11,000,000) — all one-time purchases with no expiry and no auto-renewal.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: How is Jev different from an LLM with JSON mode?
&lt;/h3&gt;

&lt;p&gt;A: JSON mode still generates text that must parse; Jev enforces the answer space in the request itself and returns probabilities with every answer. Per TypeSafe's benchmark it's up to ~194x faster and ~445x cheaper per decision — designed for high-volume routing/scoring, not open-ended reasoning.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: What are Choice, Score, and Noul?
&lt;/h3&gt;

&lt;p&gt;A: The three question types: &lt;strong&gt;Choice&lt;/strong&gt; classifies into defined options, &lt;strong&gt;Score&lt;/strong&gt; rates on a continuous scale, &lt;strong&gt;Noul&lt;/strong&gt; answers a yes/no question with a probability. Multiple questions can be batched per request in parallel.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: Can I use Jev AI Model with Claude Code or Cursor?
&lt;/h3&gt;

&lt;p&gt;A: Yes — install the public Jev Agent Skill (&lt;code&gt;npx skills add jev-ai/jev-agent-skill&lt;/code&gt;), set your API key, and your agent can request typed judgments for routing, guardrails, and verification while keeping final control of actions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: Does Jev support Chinese or other languages?
&lt;/h3&gt;

&lt;p&gt;A: The site and agent skill support English and Simplified Chinese, with a Chinese version at jevaimodel.net/zh. Accuracy on non-English inputs should be validated separately before production use.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: Can Jev process images or audio?
&lt;/h3&gt;

&lt;p&gt;A: No — currently text, JSON objects, and arrays of text only. Images, audio, and video are not supported.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion and Next Steps
&lt;/h2&gt;

&lt;p&gt;Jev AI Model represents a clean split in the AI stack: LLMs for open-ended reasoning, and a &lt;strong&gt;typed decision layer&lt;/strong&gt; for the thousands of small judgments software makes every day. With a free playground, one-time credit pricing that never expires, and an agent skill that plugs into the tools developers already use, the barrier to testing it is close to zero.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next steps:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Try one real decision free&lt;/strong&gt; — open the &lt;a href="https://jevaimodel.net" rel="noopener noreferrer"&gt;Jev playground&lt;/a&gt;, paste a real ticket or message, and compare its typed answers against your current logic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run the $10 experiment&lt;/strong&gt; — if the playground looks right, Starter credits are enough to validate one production workflow with real traffic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the benchmark&lt;/strong&gt; — the site publishes an independent-style evaluation of decision quality, calibration, speed, and cost per decision; run your own alongside it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you build with agents&lt;/strong&gt; — install the Agent Skill in Claude Code, Codex, or Cursor and let it own the routing/guardrail judgments instead of prompting your way to them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt; &lt;a href="https://jevaimodel.net" rel="noopener noreferrer"&gt;Jev AI Model official site&lt;/a&gt; · &lt;a href="https://jevaimodel.net" rel="noopener noreferrer"&gt;Jev pricing page&lt;/a&gt; · TypeSafe benchmark (via official materials) · Jev Agent Skill docs (&lt;code&gt;jev-ai/jev-agent-skill&lt;/code&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Last updated: September 23, 2026. Product features and pricing verified against the official site on this date — re-check before purchase.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>machinelearning</category>
      <category>programming</category>
    </item>
    <item>
      <title>What Is Jev? The 2026 Complete Guide to TypeSafe's System One Model (200x Faster, 400x Cheaper AI Decisions)</title>
      <dc:creator>cz</dc:creator>
      <pubDate>Sat, 19 Sep 2026 14:36:28 +0000</pubDate>
      <link>https://dev.to/czmilo/what-is-jev-the-2026-complete-guide-to-typesafes-system-one-model-200x-faster-400x-cheaper-ai-451h</link>
      <guid>https://dev.to/czmilo/what-is-jev-the-2026-complete-guide-to-typesafes-system-one-model-200x-faster-400x-cheaper-ai-451h</guid>
      <description>&lt;h2&gt;
  
  
  🎯 Key Takeaways (TL;DR)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Jev is not a chat model and doesn't generate text&lt;/strong&gt;: it's the first "System One Model" from TypeSafe AI. You feed it a state (structured data) plus a set of typed questions, and it returns calibrated, structured decisions your software can act on directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Official benchmark: two orders of magnitude faster and cheaper&lt;/strong&gt; — up to 193.6x faster and 444.6x cheaper than comparable LLMs on System One task workflows (~$0.000081 / 0.114s per decision vs $0.01388 / 8.566s for LLMs, per TypeSafe's site).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three question types&lt;/strong&gt;: Noul (true/false), Choice (multi-class), and Score (ordinal rating) — every answer ships with calibrated probabilities and a confidence score, so developers can gate "act automatically" vs "escalate to a human" on thresholds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Available everywhere you already build&lt;/strong&gt;: Cloudflare Workers AI (model ID &lt;code&gt;typesafe/jev&lt;/code&gt;), OpenRouter (&lt;code&gt;typesafe/jev-1.13&lt;/code&gt;, $0.042/M input tokens, output free), and LangChain (the &lt;code&gt;langchain-typesafe&lt;/code&gt; package). Context window: 32K tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It complements LLMs, it doesn't replace them&lt;/strong&gt;: the LLM handles open-ended reasoning (System Two), Jev handles high-volume fast structured judgments (System One) — together they form the complete stack.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What Is Jev and Why Doesn't It Generate Text?&lt;/li&gt;
&lt;li&gt;What Exactly Is a "System One Model"?&lt;/li&gt;
&lt;li&gt;How Does Jev Work?&lt;/li&gt;
&lt;li&gt;Performance and Pricing: What Does 200x Faster Mean?&lt;/li&gt;
&lt;li&gt;How to Get Started with Jev (Three Paths + Code)&lt;/li&gt;
&lt;li&gt;Jev vs Traditional LLMs: Which Should You Use?&lt;/li&gt;
&lt;li&gt;What Are the Real-World Use Cases?&lt;/li&gt;
&lt;li&gt;Limitations and Caveats&lt;/li&gt;
&lt;li&gt;FAQ&lt;/li&gt;
&lt;li&gt;Conclusion and Next Steps&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;a id="what-is-jev"&gt;&lt;/a&gt;What Is Jev and Why Doesn't It Generate Text?
&lt;/h2&gt;

&lt;p&gt;Jev is a structured evaluation model released by TypeSafe AI in September 2026, and the first product in the category the company calls "System One Models." In one sentence: &lt;strong&gt;you give it a state and a few questions about that state, and it returns typed answers with probabilities — not prose.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This breaks our usual intuition about "AI models." Traditional LLMs (Claude, GPT, and friends) are autoregressive text generators — they produce natural language token by token, and your application layer then parses, retries, and validates that text into something the software can use. Jev skips text generation entirely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Input&lt;/strong&gt;: a state (a plain string or an arbitrarily nested JSON object — a support ticket, an order, an account record) + a set of typed questions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Output&lt;/strong&gt;: one typed answer per question, each with calibrated probabilities and a confidence score&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The trade-off&lt;/strong&gt;: there's no room for "rambling," "going off-topic," or "hallucinated paragraphs" — because there is no free-form text output at all&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;TypeSafe markets this as "Zero Hallucinations." The precise meaning is that &lt;strong&gt;outputs are always the expected data structure and every decision carries a confidence estimate&lt;/strong&gt;, so software knows when to act autonomously and when to escalate to a human review. (That's the vendor's framing — see the limitations section before you bet production money on it.)&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a id="system-one"&gt;&lt;/a&gt;What Exactly Is a "System One Model"?
&lt;/h2&gt;

&lt;p&gt;The "System 1 / System 2" framing borrows from the dual-process theory in psychology: System 1 is fast, intuitive, automatic; System 2 is slow, deliberate reasoning. TypeSafe uses it to divide labor between AI models:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;System One model (Jev)&lt;/th&gt;
&lt;th&gt;System Two model (traditional LLM)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Output&lt;/td&gt;
&lt;td&gt;Typed decisions (data)&lt;/td&gt;
&lt;td&gt;Free text (strings)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency&lt;/td&gt;
&lt;td&gt;~0.1 second&lt;/td&gt;
&lt;td&gt;Seconds to tens of seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;~$0.000081 per decision&lt;/td&gt;
&lt;td&gt;~$0.0138 per decision&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Consistency&lt;/td&gt;
&lt;td&gt;Fixed structure, with confidence&lt;/td&gt;
&lt;td&gt;Wording varies run to run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Good at&lt;/td&gt;
&lt;td&gt;Classify, route, score, gatekeep&lt;/td&gt;
&lt;td&gt;Open-ended reasoning, writing, planning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Analogy&lt;/td&gt;
&lt;td&gt;Intuitive reaction&lt;/td&gt;
&lt;td&gt;Deep thinking&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;TypeSafe's core argument: RLHF tuned LLMs into "chat machines optimized for human preferences," which introduced mode dropping, overconfidence, and reliability problems — which is why every production system still needs a human in the loop. But machine-to-machine communication doesn't need natural language at all. Jev is designed for "machine-native" decision workloads — what the company calls "more like code": reliable, fast, self-consistent, and type-safe.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 &lt;strong&gt;Pro tip&lt;/strong&gt;&lt;br&gt;
Don't think of Jev as "a cheaper GPT." It's a judgment node in your pipeline: the LLM understands complex open-ended problems and generates solutions; Jev makes fast, quantifiable, auditable calls at the branching points of the workflow. They are complements.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;a id="how-it-works"&gt;&lt;/a&gt;How Does Jev Work?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Three Question Types
&lt;/h3&gt;

&lt;p&gt;Jev's API has exactly two core concepts: a &lt;code&gt;state&lt;/code&gt; (the data to evaluate) and &lt;code&gt;questions&lt;/code&gt; (about that data). Questions come in three types:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question type&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Returns&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Noul&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Binary true/false judgment (with criteria)&lt;/td&gt;
&lt;td&gt;Probability the statement is true (e.g., 0.95)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Choice&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Single-label classification, each option can carry descriptive criteria&lt;/td&gt;
&lt;td&gt;Selected option + per-option probabilities + confidence (e.g., billing, 0.8)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Score&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Rating against an ordered scale (e.g., 0–2)&lt;/td&gt;
&lt;td&gt;Continuous score + distribution + confidence (e.g., 1.04, confidence 0.94)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A realistic example (from Cloudflare's official docs): a support ticket saying "payouts have been failing for 3 days," evaluated against three questions at once —&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Noul "Is this urgent?" → 0.95&lt;/li&gt;
&lt;li&gt;Choice "Which department should handle it?" → billing, confidence 0.8&lt;/li&gt;
&lt;li&gt;Score "Customer frustration 0–2?" → 1.04, confidence 0.94&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Batch Questions, Almost No Extra Latency
&lt;/h3&gt;

&lt;p&gt;Multiple questions can be sent against the same state in one call, and Jev evaluates them &lt;strong&gt;in parallel&lt;/strong&gt;. Extra questions barely affect response time — they only cost their token usage. So you can ask "is it urgent? who should own it? how angry is the customer? do they deserve a refund?" all at once with essentially unchanged latency.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Decision Flow
&lt;/h3&gt;

&lt;h2&gt;
  
  
  📊 Jev Decision Workflow
&lt;/h2&gt;



&lt;pre data-lang="mermaid"&gt;&lt;code&gt;graph TD
    A[Business event: ticket / order / log / agent state] --&amp;gt; B[Build state: text or JSON]
    B --&amp;gt; C[Define questions: Noul / Choice / Score]
    C --&amp;gt; D[Jev parallel evaluation]
    D --&amp;gt; E[Typed answers + confidence]
    E --&amp;gt; F{Confidence &amp;gt;= threshold?}
    F --&amp;gt;|Yes| G[Act automatically: route / escalate / block]
    F --&amp;gt;|No| H[Escalate to human review]
    G --&amp;gt; I[Log decision + probability: auditable]
    H --&amp;gt; I&lt;/code&gt;&lt;/pre&gt;



&lt;h3&gt;
  
  
  Training: RLCD
&lt;/h3&gt;

&lt;p&gt;Jev is built on a new architecture and a new sampler, trained with a new algorithm called &lt;strong&gt;RLCD&lt;/strong&gt; (Reinforcement Learning for Calibrated Decisions). Where RLHF optimizes for "human preference," RLCD optimizes for "calibrated decisions" — the probabilities the model reports must genuinely reflect its accuracy. That calibration is exactly what makes confidence-threshold strategies viable in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a id="benchmark"&gt;&lt;/a&gt;Performance and Pricing: What Does 200x Faster Mean?
&lt;/h2&gt;

&lt;p&gt;TypeSafe's published benchmark (System One task workflows):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;TypeSafe (Jev)&lt;/th&gt;
&lt;th&gt;Traditional LLM&lt;/th&gt;
&lt;th&gt;Gap&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost per decision&lt;/td&gt;
&lt;td&gt;$0.000081&lt;/td&gt;
&lt;td&gt;$0.013880&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;444.6x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency per decision&lt;/td&gt;
&lt;td&gt;0.114s&lt;/td&gt;
&lt;td&gt;8.566s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;193.6x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Input token price&lt;/td&gt;
&lt;td&gt;$42 / 1B tokens&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Claimed 238x cheaper than Claude Fable 5.1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The LangChain blog quotes a "up to 200x faster, 400x cheaper" figure for integrated scenarios — consistent with the official numbers (one is the vendor's peak claim, the other is the in-the-wild framing).&lt;/p&gt;

&lt;p&gt;Market data supports the magnitude: jev-1.13 went live on OpenRouter on September 18, 2026, priced at &lt;strong&gt;$0.042 per million input tokens and $0 per million output tokens&lt;/strong&gt; (the output is a tiny typed JSON, so it's simply not billed), and it processed over 161 billion tokens in its first days on the platform (source: OpenRouter model page).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 &lt;strong&gt;Pro tip&lt;/strong&gt;&lt;br&gt;
Do the arithmetic: $42 per billion input tokens ≈ roughly 240 single-question decisions per penny. For high-frequency scenarios where "every email, every ticket, every tool call gets a judgment," this is the first cost structure that makes full-coverage judgment economically viable — which is why this space used to be handled with keyword rules or random sampling.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;a id="how-to-use"&gt;&lt;/a&gt;How to Get Started with Jev (Three Paths + Code)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Path 1: Cloudflare Workers AI (Model ID: &lt;code&gt;typesafe/jev&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Jev is available as a third-party model on Cloudflare Workers AI with a 32K token context window, callable via the Worker binding or the REST API. The &lt;code&gt;state&lt;/code&gt; can be a plain string or nested JSON (questions reference fields with backticks, e.g. &lt;code&gt;ticket.message\&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Inside a Cloudflare Worker&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;AI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@cf/typesafe/jev&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;ticket&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Stripe webhook has been failing for 3 days&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;email&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;total&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;499.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;paid&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;policy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Duplicate charges with service unavailable for 24+ hours qualify for a full refund&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;questions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;is_urgent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;noul&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;question&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Does this ticket need immediate escalation?&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;department&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;choice&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;question&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Which department should handle this?&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;choices&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;billing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Billing and payment issues&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;technical&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Technical failures&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;account&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Account issues&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;refund_warranted&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;noul&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;question&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Does the refund policy support a refund for this order?&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// Every answer comes with probability and confidence&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;is_urgent&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;          &lt;span class="c1"&gt;// { value: true, probability: 0.95, ... }&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;department&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;         &lt;span class="c1"&gt;// { value: "billing", confidence: 0.8, ... }&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The official docs provide downloadable input/output JSON schemas, and responses include per-question answers plus token usage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Path 2: OpenRouter (Model ID: &lt;code&gt;typesafe/jev-1.13&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;If you already route models through OpenRouter, just point your model ID at &lt;code&gt;typesafe/jev-1.13&lt;/code&gt;. There's also &lt;code&gt;typesafe/jev-latest&lt;/code&gt;, an alias that always resolves to the newest Jev release (currently jev-1.13.0).&lt;/p&gt;

&lt;h3&gt;
  
  
  Path 3: LangChain (the &lt;code&gt;langchain-typesafe&lt;/code&gt; package)
&lt;/h3&gt;

&lt;p&gt;The official LangChain blog post "Building a Harness with Jev" demonstrates three integrations:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Basic classifier&lt;/strong&gt; — &lt;code&gt;TypeSafeClassifier&lt;/code&gt; takes a state (text, structured data, or LangChain messages) plus questions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;langchain_typesafe&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;TypeSafeClassifier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Noul&lt;/span&gt;

&lt;span class="n"&gt;classifier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;TypeSafeClassifier&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;classifier&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;invoke&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;User reports their Stripe integration is completely down, affecting live payments&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;questions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;urgent&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Noul&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Does this need immediate escalation?&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nouls&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;urgent&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;noul&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# 0.999 — usable for auto-prioritization
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Model routing&lt;/strong&gt; — &lt;code&gt;ModelRouterMiddleware&lt;/code&gt; lets Jev choose between a "fast" and a "powerful" model, assigning each request to the cheapest model capable of handling it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Tool-call guardrails (Auto Mode)&lt;/strong&gt; — &lt;code&gt;AutoModeMiddleware&lt;/code&gt; screens risky tool calls (like &lt;code&gt;bash&lt;/code&gt;) with Jev &lt;em&gt;before&lt;/em&gt; they execute and blocks the dangerous ones. The pattern is inspired by the guardrails in coding harnesses like Claude, Codex, and Cursor — and it's the core play in "building a harness with Jev": &lt;strong&gt;use the System One model to insure the System Two model&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;Best practice&lt;/strong&gt;&lt;br&gt;
All three question types support (and deserve) explicit criteria. Don't just ask "is this urgent?" — define what "urgent" means: "affects production, has persisted over 24 hours, or involves money." The more precise your criteria, the more trustworthy the probabilities.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;a id="jev-vs-llm"&gt;&lt;/a&gt;Jev vs Traditional LLMs: Which Should You Use?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Jev (System One)&lt;/th&gt;
&lt;th&gt;Traditional LLM (System Two)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Output format&lt;/td&gt;
&lt;td&gt;Typed decision + probability&lt;/td&gt;
&lt;td&gt;Natural language text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hallucination risk&lt;/td&gt;
&lt;td&gt;No free text to drift (vendor claims "zero hallucinations")&lt;/td&gt;
&lt;td&gt;Present; requires parsing and validation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency&lt;/td&gt;
&lt;td&gt;~0.1s&lt;/td&gt;
&lt;td&gt;Seconds to minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost per call&lt;/td&gt;
&lt;td&gt;~$0.00008&lt;/td&gt;
&lt;td&gt;~$0.014&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open-ended reasoning / generation&lt;/td&gt;
&lt;td&gt;Not supported&lt;/td&gt;
&lt;td&gt;Core capability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Explainability&lt;/td&gt;
&lt;td&gt;Probabilities and distributions, easy to audit&lt;/td&gt;
&lt;td&gt;Requires a separate eval framework&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Typical role&lt;/td&gt;
&lt;td&gt;Routing, triage, scoring, gatekeeping&lt;/td&gt;
&lt;td&gt;Conversation, planning, content generation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One-line decision rule: &lt;strong&gt;if the answer can be enumerated from a finite set of options, use Jev; if the answer has to be thought up, use an LLM.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a id="use-cases"&gt;&lt;/a&gt;What Are the Real-World Use Cases?
&lt;/h2&gt;

&lt;p&gt;From the official docs and community practice (LangChain blog, Cloudflare docs):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ticket triage and routing&lt;/strong&gt;: evaluate urgency, owning department, and frustration score in parallel for every ticket, in milliseconds, with full coverage instead of sampling. In one Cloudflare docs example, a login issue routed to the account department with 1.0 confidence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent tool-call guardrails&lt;/strong&gt;: in coding harnesses, screen high-risk tools like &lt;code&gt;bash&lt;/code&gt; before execution and block or escalate when risk is high.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model routing&lt;/strong&gt;: split traffic between fast and powerful models by task difficulty to cut overall inference cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refund and compliance review&lt;/strong&gt;: put the ticket, the order, and the refund policy in one state; the model judges "a refund was requested (0.99)" and "the policy supports it (0.98)."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account risk scoring&lt;/strong&gt;: score account activity (1.84 in the docs example, leaning "High risk") with a 0.81 probability recommendation to escalate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High-frequency lightweight agents&lt;/strong&gt;: community examples include Browserbase-powered browser agents making decisions for "fractions of a cent," a live trading agent, and large-scale email triage.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;a id="limits"&gt;&lt;/a&gt;Limitations and Caveats
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Warning&lt;/strong&gt;&lt;br&gt;
Keep these in mind when evaluating:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It only answers what you ask&lt;/strong&gt;: Jev does no open-ended reasoning. If the judgment criteria themselves require understanding complex context or generating new information, it's the wrong tool.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Zero hallucinations" is a vendor claim&lt;/strong&gt;: structured output eliminates textual drift, but probability judgments can still be wrong. The right posture is not blind trust — it's &lt;strong&gt;confidence thresholds with human review as the backstop&lt;/strong&gt;. Notably, the FAQ items on TypeSafe's site covering accuracy ceilings, failure modes, and whether prices are subsidized remain collapsed and unanswered; benchmark methodology details are still thin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;32K context window&lt;/strong&gt;: the state can't be arbitrarily large; chunk or summarize long content first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A brand-new category, early ecosystem&lt;/strong&gt;: Jev is in early access (console.typesafe.ai). Validate calibration on your own data before production — for example, regression-test the probabilities against historical tickets.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;a id="faq"&gt;&lt;/a&gt;🤔 Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Q: Will Jev replace LLMs?
&lt;/h3&gt;

&lt;p&gt;A: No. Jev doesn't generate text and can't hold conversations, write, or reason openly. Its role is to take over the "judgment" segments of an LLM stack — routing, classification, scoring, approval — so the LLM can focus on the "thinking." LangChain's blog explicitly frames it as a complement to LLMs, not a replacement.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: What does "Noul" mean?
&lt;/h3&gt;

&lt;p&gt;A: Noul is a TypeSafe-coined question type for binary true/false evaluation: you provide a statement and its criteria, and Jev returns the probability the statement is true (e.g., 0.95). It sits alongside Choice (multi-class) and Score (ordinal rating) as one of Jev's three question types.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: How much does Jev cost?
&lt;/h3&gt;

&lt;p&gt;A: On OpenRouter, &lt;code&gt;typesafe/jev-1.13&lt;/code&gt; is priced at $0.042 per million input tokens (i.e., $42 per billion) with $0 output pricing. TypeSafe's site claims that input price is about 238x lower than Claude Fable 5.1. Note that real "per decision" cost depends on your state length; the official benchmark puts it around $0.000081 per decision.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: Where can I use Jev?
&lt;/h3&gt;

&lt;p&gt;A: Four entry points today: Cloudflare Workers AI (&lt;code&gt;typesafe/jev&lt;/code&gt;), OpenRouter (&lt;code&gt;typesafe/jev-1.13&lt;/code&gt; or &lt;code&gt;typesafe/jev-latest&lt;/code&gt;), TypeSafe's own console at console.typesafe.ai (early access), and the LangChain ecosystem via the &lt;code&gt;langchain-typesafe&lt;/code&gt; package (which can sit on top of any of the above).&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: Is Jev really hallucination-free?
&lt;/h3&gt;

&lt;p&gt;A: The more precise statement is "no text hallucinations" — Jev never generates free-form text, so there's nothing to fabricate paragraphs with. But its probability judgments can still be wrong. In production, pair it with confidence thresholds: auto-execute at high confidence, route to humans at low confidence.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: What kind of project should adopt Jev?
&lt;/h3&gt;

&lt;p&gt;A: Three signals: ① you have high-volume, repetitive classification or triage decisions (tickets, emails, moderation, logs); ② you're currently doing those with an LLM and cost or latency can't keep up; ③ your agent pipeline needs cheap gatekeeping (tool-call approval, model routing). Any one of these makes it worth a pilot.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a id="conclusion"&gt;&lt;/a&gt;Conclusion and Next Steps
&lt;/h2&gt;

&lt;p&gt;Jev represents a direction worth taking seriously: &lt;strong&gt;separating "judgment" from text generation and turning it into a typed, confidence-bearing primitive that software can consume directly&lt;/strong&gt;. A 193x speed gap and a 444x cost gap aren't "a slightly faster LLM" — they're what makes a "judge everything, in real time, every time" architecture economically viable for the first time.&lt;/p&gt;

&lt;p&gt;Recommended next steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Validate calibration on real data first&lt;/strong&gt;: take 100–500 historical tickets or cases, compare Jev's probabilities against human conclusions, and check whether the probabilities mean what they claim — this determines how low you can set your thresholds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start with one low-risk scenario&lt;/strong&gt;: email triage or ticket routing is the ideal entry point (mistakes have a human safety net, and the payoff is immediate).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Then add agent guardrails&lt;/strong&gt;: if your agents run &lt;code&gt;bash&lt;/code&gt;, send emails, or touch databases, use the Auto Mode pattern to give them a System One gatekeeper.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  References
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;TypeSafe: System One Models &amp;amp; Jev announcement — &lt;a href="https://typesafe.ai" rel="noopener noreferrer"&gt;https://typesafe.ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Cloudflare Workers AI docs: Jev model page — &lt;a href="https://developers.cloudflare.com/ai/models/typesafe/jev/" rel="noopener noreferrer"&gt;https://developers.cloudflare.com/ai/models/typesafe/jev/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;OpenRouter model page: jev-1.13 — &lt;a href="https://openrouter.ai/typesafe/jev-1.13" rel="noopener noreferrer"&gt;https://openrouter.ai/typesafe/jev-1.13&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;LangChain blog: Building a Harness with Jev — &lt;a href="https://www.langchain.com/blog/building-a-harness-with-jev" rel="noopener noreferrer"&gt;https://www.langchain.com/blog/building-a-harness-with-jev&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>llms</category>
      <category>agents</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
