<?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: Yasin uçgun</title>
    <description>The latest articles on DEV Community by Yasin uçgun (@yasin_ugun_7a7722b9a4f9d).</description>
    <link>https://dev.to/yasin_ugun_7a7722b9a4f9d</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%2F4279039%2F33bfb9f4-37b6-4e7b-ae80-8d918e280e61.jpg</url>
      <title>DEV Community: Yasin uçgun</title>
      <link>https://dev.to/yasin_ugun_7a7722b9a4f9d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yasin_ugun_7a7722b9a4f9d"/>
    <language>en</language>
    <item>
      <title>How I Built a Local-First AI OS on Windows Using Node.js 24 node:sqlite, FTS5, and sqlite-vec</title>
      <dc:creator>Yasin uçgun</dc:creator>
      <pubDate>Wed, 02 Dec 2026 17:46:23 +0000</pubDate>
      <link>https://dev.to/yasin_ugun_7a7722b9a4f9d/how-i-built-a-local-first-ai-os-on-windows-using-nodejs-24-nodesqlite-fts5-and-sqlite-vec-1dho</link>
      <guid>https://dev.to/yasin_ugun_7a7722b9a4f9d/how-i-built-a-local-first-ai-os-on-windows-using-nodejs-24-nodesqlite-fts5-and-sqlite-vec-1dho</guid>
      <description>&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%2Fwbortf4neje3sj0m79uz.gif" 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%2Fwbortf4neje3sj0m79uz.gif" alt="Nixy Desktop Notch — Mergen OS v3.0" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Most AI agents ask you to upload your mail, files, and desktop context to a third-party cloud and trust them not to do anything destructive.&lt;/p&gt;

&lt;p&gt;I wanted the opposite: a &lt;strong&gt;local-first AI operating system&lt;/strong&gt; that runs on my own Windows machine, keeps all memory in SQLite, works with any model (Ollama, Gemini, OpenAI, Anthropic, OpenRouter), and &lt;strong&gt;asks before it acts&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Today I open-sourced &lt;strong&gt;Mergen OS v3.0.0&lt;/strong&gt; (&lt;a href="https://github.com/lupusmagnum1/mergen-os" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://github.com/lupusmagnum1/mergen-os/releases/tag/v3.0.0" rel="noopener noreferrer"&gt;Direct Windows ZIP&lt;/a&gt;, AGPL-3.0 + Commercial). Here are the three architectural decisions that made it practical.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. One Unified Local Brain (&lt;code&gt;node:sqlite&lt;/code&gt; + &lt;code&gt;FTS5&lt;/code&gt; + &lt;code&gt;sqlite-vec&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Instead of spinning up Docker + Qdrant/Chroma/Postgres, Mergen OS uses &lt;strong&gt;Node.js 24's built-in &lt;code&gt;node:sqlite&lt;/code&gt;&lt;/strong&gt; with &lt;code&gt;FTS5&lt;/code&gt; and the &lt;code&gt;sqlite-vec&lt;/code&gt; extension in a single local &lt;code&gt;mergen.db&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;Six local sources are indexed into one &lt;code&gt;unified_memory&lt;/code&gt; table:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Meeting transcripts (&lt;code&gt;vault/meetings/*.md&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;B2B accounts &amp;amp; CRM activities&lt;/li&gt;
&lt;li&gt;Daily goals and scheduled tasks&lt;/li&gt;
&lt;li&gt;Compact daily chat summaries&lt;/li&gt;
&lt;li&gt;Active contextual memories (strictly excluding secrets)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every query runs &lt;strong&gt;hybrid Reciprocal Rank Fusion (RRF)&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;unified_memory_fts&lt;/code&gt; (&lt;code&gt;bm25&lt;/code&gt;) for exact lexical &amp;amp; prefix matches&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;unified_memory_vec&lt;/code&gt; (&lt;code&gt;vec0&lt;/code&gt; 128-dim local L2-normalized embeddings) for morphological &amp;amp; cross-lingual recall&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All three UI surfaces — the &lt;strong&gt;HUD chat&lt;/strong&gt;, the &lt;strong&gt;Nixy desktop notch&lt;/strong&gt; (live meeting whisper cards), and &lt;strong&gt;Business Hub search&lt;/strong&gt; — query the exact same local index.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Tip for anyone using &lt;code&gt;node:sqlite&lt;/code&gt; + &lt;code&gt;sqlite-vec&lt;/code&gt;: bind &lt;code&gt;vec0&lt;/code&gt; primary keys as &lt;code&gt;BigInt(id)&lt;/code&gt; rather than JS &lt;code&gt;Number&lt;/code&gt;, because &lt;code&gt;node:sqlite&lt;/code&gt; binds JS numbers as &lt;code&gt;REAL&lt;/code&gt;.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Fail-Closed Approval &amp;amp; Safety Plane
&lt;/h2&gt;

&lt;p&gt;Every non-read tool call passes through a single pipeline:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;intent -&amp;gt; plan -&amp;gt; risk/policy check -&amp;gt; human approval -&amp;gt; execution -&amp;gt; receipt/evidence -&amp;gt; rollback&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Approval Queue:&lt;/strong&gt; Sending emails, posting to social media, running PowerShell, or touching money pauses for explicit user approval.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kill Switch:&lt;/strong&gt; Immediately halts all side effects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt-Injection Quarantine:&lt;/strong&gt; External web/email content is marked untrusted; tainted turns cannot trigger sensitive tools automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mergen Vault:&lt;/strong&gt; Local encrypted secrets (&lt;code&gt;scrypt + AES-256-GCM&lt;/code&gt;) that never enter logs, memory, or cloud prompts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Fast 12-Language HUD + Isolated Python &lt;code&gt;.venv&lt;/code&gt; Sidecars
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Splitting the 12-language HUD dictionary into per-language lazy-loaded JSON packs (&lt;code&gt;apps/hud/assets/i18n/*.json&lt;/code&gt;) cut the initial i18n JS payload by &lt;strong&gt;97.9%&lt;/strong&gt; (760 KB → 15.7 KB).&lt;/li&gt;
&lt;li&gt;Optional Python features — dual-channel WASAPI loopback meeting capture (works even on Bluetooth headsets), local Whisper STT, and the Nixy WebView2 desktop notch — run in an isolated &lt;code&gt;.venv&lt;/code&gt; managed by a restart-capped supervisor.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It in 3 Minutes (Windows 10/11, No Admin Rights)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Download &lt;strong&gt;&lt;code&gt;Mergen-OS-v3.0.0-win64.zip&lt;/code&gt;&lt;/strong&gt; from &lt;a href="https://github.com/lupusmagnum1/mergen-os/releases/tag/v3.0.0" rel="noopener noreferrer"&gt;Releases&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Extract anywhere and double-click &lt;strong&gt;&lt;code&gt;Install-Mergen.cmd&lt;/code&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;http://localhost:3000&lt;/code&gt; and pick only the modules you want (&lt;strong&gt;Personal&lt;/strong&gt;, &lt;strong&gt;B2B Export&lt;/strong&gt;, &lt;strong&gt;Creator&lt;/strong&gt;, &lt;strong&gt;Developer&lt;/strong&gt;, or &lt;strong&gt;All&lt;/strong&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/lupusmagnum1/mergen-os" rel="noopener noreferrer"&gt;https://github.com/lupusmagnum1/mergen-os&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love your feedback on the hybrid SQLite memory design and the approval plane!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>database</category>
      <category>node</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
