<?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: Harshit Raj</title>
    <description>The latest articles on DEV Community by Harshit Raj (@harshitraj1236).</description>
    <link>https://dev.to/harshitraj1236</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%2F4178979%2F196f23da-facc-4049-9b2e-7da265cf038e.png</url>
      <title>DEV Community: Harshit Raj</title>
      <link>https://dev.to/harshitraj1236</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harshitraj1236"/>
    <language>en</language>
    <item>
      <title># DaemonSéance: The Haunted Terminal of Computing Past</title>
      <dc:creator>Harshit Raj</dc:creator>
      <pubDate>Sat, 31 Oct 2026 16:37:02 +0000</pubDate>
      <link>https://dev.to/harshitraj1236/-daemonseance-the-haunted-terminal-of-computing-past-e72</link>
      <guid>https://dev.to/harshitraj1236/-daemonseance-the-haunted-terminal-of-computing-past-e72</guid>
      <description>&lt;h2&gt;
  
  
  &lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;
&lt;/h2&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%2Fg6isi92lxusexo8nootf.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%2Fg6isi92lxusexo8nootf.png" alt="Landing Page" width="800" height="619"&gt;&lt;/a&gt;&lt;/p&gt;




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

&lt;p&gt;Every operating system runs background processes known as &lt;strong&gt;daemons&lt;/strong&gt;—programs running silently in the shadows without direct user control. For Halloween and Día de los Muertos, when the barrier between the past and present feels whisper-thin, I built a project inspired by a question:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What if our computers were genuinely haunted by the pioneers who created them?&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Enter DaemonSéance 🔮👻
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;DaemonSéance&lt;/strong&gt; is an interactive, airgapped retro CRT terminal emulator possessed by the spirits of legendary computer science pioneers and forgotten programming languages. &lt;/p&gt;

&lt;p&gt;Built around open-weight models (&lt;strong&gt;Google Gemma 2&lt;/strong&gt;) and native web APIs, DaemonSéance lets developers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Commune with Computing Pioneers:&lt;/strong&gt; Invoke &lt;strong&gt;Ada Lovelace&lt;/strong&gt; (1842), &lt;strong&gt;Alan Turing&lt;/strong&gt; (1950), &lt;strong&gt;Grace Hopper&lt;/strong&gt; (1952), &lt;strong&gt;Margaret Hamilton&lt;/strong&gt; (1969), or the &lt;strong&gt;Dead Language Oracle&lt;/strong&gt; to seek debugging wisdom, historic philosophy, and architectural counsel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transmute Modern Code into Dead Dialects:&lt;/strong&gt; Paste modern TypeScript or Python into the furnace and watch the spirits recompile your logic into authentic &lt;strong&gt;COBOL-60&lt;/strong&gt; punchcards, &lt;strong&gt;FORTRAN II&lt;/strong&gt; formulas, &lt;strong&gt;ALGOL 60&lt;/strong&gt; blocks, or &lt;strong&gt;Commodore 64 BASIC V2&lt;/strong&gt; listings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Immerse in Procedural CRT Audio:&lt;/strong&gt; Mathematical synthesis via the &lt;strong&gt;Web Audio API&lt;/strong&gt; replicates 60Hz transformer mains hum, 15.7kHz cathode ray flyback line whistle, mechanical IBM Model M buckling spring clicks, and spectral voice whispers—with &lt;strong&gt;0 MB audio downloads&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operate 100% Offline (The Airgapped Ghost):&lt;/strong&gt; Cached via a Progressive Web App Service Worker, DaemonSéance operates in pitch darkness with your Wi-Fi completely disabled.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Application:&lt;/strong&gt; &lt;a href="https://daemon-seance.onrender.com" rel="noopener noreferrer"&gt;https://daemon-seance.onrender.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Port:&lt;/strong&gt; &lt;code&gt;http://localhost:1095&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retro Phosphor Themes:&lt;/strong&gt; Switch seamlessly between &lt;strong&gt;Amber 1975&lt;/strong&gt;, &lt;strong&gt;Emerald Matrix&lt;/strong&gt;, and &lt;strong&gt;Ghost Cyan&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Interactive Shell Commands to Try:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;summon lovelace&lt;/code&gt; — Commune with the Enchantress of Numbers.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;summon hopper&lt;/code&gt; — Hear Grace Hopper reminisce about the first computer bug in 1947.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cat relay_70_moth.log&lt;/code&gt; — Read the original moth discovery log from Harvard Mark II.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;transmute cobol&lt;/code&gt; — Transmute modern loops into strict 80-column IBM mainframe punchcards.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sudo&lt;/code&gt; — &lt;em&gt;"You have no power here, mortal. The laws of Unix yield to eternity."&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;kill -9&lt;/code&gt; — Triggers a terrifying spectral audio shriek and terminal flicker.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;DaemonSéance is 100% open-source under the MIT License:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/harshitraj1236/daemon-seance" rel="noopener noreferrer"&gt;https://github.com/harshitraj1236/daemon-seance&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Technical Stack:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework &amp;amp; App Shell:&lt;/strong&gt; Next.js 14 (App Router), React 18, Tailwind CSS, Lucide Icons&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source AI Core:&lt;/strong&gt; Google Gemma 2 (2B) executing locally via Ollama (&lt;code&gt;http://localhost:11434&lt;/code&gt;) + in-browser WebGPU (&lt;code&gt;@mlc-ai/web-llm&lt;/code&gt;) + curated offline grimoire&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware Synthesis:&lt;/strong&gt; Web Audio API procedural synthesis (CRT mains hum, Model M keystrokes, A-minor spectral ambient chord)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice Synthesis:&lt;/strong&gt; Native Web Speech API with sentence-chunking &amp;amp; spectral pitch/rate modulation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline PWA Shell:&lt;/strong&gt; Service Worker (&lt;code&gt;sw.js&lt;/code&gt;) with dynamic runtime caching&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; Multi-stage production &lt;code&gt;Dockerfile&lt;/code&gt; running on Render&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;DaemonSéance was designed around three foundational principles:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The Multi-Tier Open-Weight Necromancy Pipeline
&lt;/h3&gt;

&lt;p&gt;Historical persona simulation often suffers from cloud safety filters that sanitize quirky historical personalities. We deployed &lt;strong&gt;Google Gemma 2 (2B)&lt;/strong&gt; with a custom system prompt that grounds the model in primary historical texts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ada Lovelace references Note G and Bernoulli number calculation tables.&lt;/li&gt;
&lt;li&gt;Alan Turing references paper tape state transitions and the Halting Problem.&lt;/li&gt;
&lt;li&gt;Grace Hopper carries physical 11.8-inch nanosecond wires and rails against unnecessary boilerplate.&lt;/li&gt;
&lt;li&gt;Margaret Hamilton recounts Alarm 1202 priority scheduling during the Apollo 11 lunar descent.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The engine operates on a three-tier resilience model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Local Ollama (&lt;code&gt;http://localhost:11434&lt;/code&gt;) for high-fidelity local neural inference.&lt;/li&gt;
&lt;li&gt;In-browser WebGPU via &lt;code&gt;@mlc-ai/web-llm&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;An authentic curated offline grimoire guaranteeing that judges and users without Ollama experience instant, rich historical lore on Render.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  2. Zero-Asset Procedural Audio Engine
&lt;/h3&gt;

&lt;p&gt;Rather than loading static MP3 audio files that eat mobile data, the entire atmospheric soundscape is synthesized mathematically in the browser:&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="c1"&gt;// 60Hz transformer mains hum&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;mainsOsc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createOscillator&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nx"&gt;mainsOsc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;sine&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;mainsOsc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;frequency&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setValueAtTime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;currentTime&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Mechanical IBM Model M 15ms key click&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;buffer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createBuffer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sampleRate&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.015&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sampleRate&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;bufferSize&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&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="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;bufferSize&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.3&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;h3&gt;
  
  
  3. CRT Display Physics in Pure CSS
&lt;/h3&gt;

&lt;p&gt;The visual interface combines SVG scanline filters, radial vignette curvature (&lt;code&gt;box-shadow: inset 0 0 80px rgba(0,0,0,0.8)&lt;/code&gt;), and phosphor blooming (&lt;code&gt;text-shadow: 0 0 6px rgba(255, 176, 0, 0.65)&lt;/code&gt;) to accurately recreate an analog monochrome monitor.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The True Airgapped Ghost (Zero Cloud Dependency)
&lt;/h3&gt;

&lt;p&gt;Commercial cloud LLMs require an active internet connection. You cannot sit in the woods with your Wi-Fi turned off on Halloween night and talk to them. &lt;/p&gt;

&lt;p&gt;Because DaemonSéance runs on &lt;strong&gt;Google Gemma 2&lt;/strong&gt; locally, it operates in complete isolation. Your prompts never leave your device, your shell commands are never logged to a corporate database, and the ghost functions in total darkness.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Preserving Digital Computing Heritage
&lt;/h3&gt;

&lt;p&gt;Proprietary cloud AI platforms regularly deprecate models, shift weights, and change behavioral boundaries without warning. Open weights ensure that our shared computational history—from 19th-century mechanical gear trains to 1960s punched-card dialects—remains decentralized, un-censorable, and preserved for future programmers.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. $0.00 Running Costs
&lt;/h3&gt;

&lt;p&gt;Running complex persona emulation through commercial cloud APIs incurs ongoing token metering. Running open weights on local silicon costs &lt;strong&gt;$0.00&lt;/strong&gt;, making educational interactive software sustainable without advertisements or paywalls.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;This entire project was architected, coded, tested, and iterated through an agentic pair-programming session using &lt;strong&gt;DevRelay&lt;/strong&gt; and the Antigravity agentic coding environment.&lt;/p&gt;




&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of Gemma ($200):&lt;/strong&gt; Leverages Google's &lt;strong&gt;Gemma 2 (2B)&lt;/strong&gt; open-weight model to channel historical computing pioneers and recompile code into ancient programming paradigms.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of Render ($200):&lt;/strong&gt; Deployed as a standalone Next.js application using a multi-stage production Dockerfile on Render.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of ElevenLabs ($100):&lt;/strong&gt; Spectral voice generation channeling computing spirits with eerie acoustic modulation and whispers.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Overall Winner ($250):&lt;/strong&gt; A deeply creative, viral, atmospheric build celebrating the Halloween and Día de los Muertos spirit of "Ghost in the Machine".&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;“We can only see a short distance ahead, but we can see plenty there that needs to be done.” — Alan Turing, 1950&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>webdev</category>
    </item>
    <item>
      <title>SomnoSloth: The Zero-Cloud Offline Wind-Down Companion That Puts You to Sleep</title>
      <dc:creator>Harshit Raj</dc:creator>
      <pubDate>Sun, 25 Oct 2026 15:52:46 +0000</pubDate>
      <link>https://dev.to/harshitraj1236/somnosloth-the-zero-cloud-offline-wind-down-companion-that-puts-you-to-sleep-1ahc</link>
      <guid>https://dev.to/harshitraj1236/somnosloth-the-zero-cloud-offline-wind-down-companion-that-puts-you-to-sleep-1ahc</guid>
      <description>&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%2Fkqivftqwtcmduo20d0zb.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%2Fkqivftqwtcmduo20d0zb.png" alt="Picture of Dashborad on online mode" width="799" height="453"&gt;&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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2yvzo953s7cf9nntrmgv.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%2F2yvzo953s7cf9nntrmgv.png" alt="Picture of Dashborad on Offline mode" width="799" height="453"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;


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

&lt;p&gt;Every night, millions of developers and knowledge workers experience the exact same struggle: after spending 8 to 12 hours staring into code editors and terminals, they lie in bed with racing thoughts, falling into "revenge bedtime procrastination." &lt;/p&gt;

&lt;p&gt;Commercial sleep apps like Calm and Headspace promise to help, but they lock basic white noise and bedtime stories behind recurring annual subscriptions, push pushy upsells, and require an active internet connection that leaves your bedroom exposed to late-night notification pings.&lt;/p&gt;
&lt;h3&gt;
  
  
  Enter SomnoSloth 🦥
&lt;/h3&gt;

&lt;p&gt;In honor of &lt;strong&gt;International Sloth Day (October 20)&lt;/strong&gt;, &lt;strong&gt;SomnoSloth&lt;/strong&gt; is an open-source, zero-cloud relaxation companion engineered to reward sheer laziness by doing the entire wind-down routine for you.&lt;/p&gt;

&lt;p&gt;You tap &lt;strong&gt;one button&lt;/strong&gt;, set your phone face down on the nightstand, and close your eyes. SomnoSloth takes over:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Procedural Ambient Soundscapes:&lt;/strong&gt; Synthesizes non-looping rain, crackling hearth fire, and deep cosmic drones directly inside the browser using the &lt;strong&gt;Web Audio API&lt;/strong&gt;—zero audio files to download, zero buffering, and non-repetitive organic sound.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slow Bedtime Journeys:&lt;/strong&gt; Generates calming, slow-paced bedtime narratives designed with zero conflict or cliffhangers, anchoring your thoughts until you drift off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware-Accurate Sleep Fade:&lt;/strong&gt; Gradually lowers voice volume and sound frequencies across 15, 30, or 45 minutes using audio hardware clocks, fading smoothly into total silence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bedtime Brain Dump with Crisis Guardrail:&lt;/strong&gt; An offline space to type and offload whatever thoughts are keeping you awake. Includes non-judgmental safety heuristics linking to free global support via &lt;a href="https://findahelpline.com" rel="noopener noreferrer"&gt;findahelpline.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Works Offline Once Loaded:&lt;/strong&gt; Cached through a minimal Service Worker, SomnoSloth functions in true &lt;strong&gt;Airplane Mode&lt;/strong&gt; so you can turn off Wi-Fi and sleep without distractions.&lt;/li&gt;
&lt;/ol&gt;


&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;SomnoSloth is 100% open-source under the MIT License:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/harshitraj1236/somnosloth" rel="noopener noreferrer"&gt;https://github.com/harshitraj1236/somnosloth&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Technical Stack:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend &amp;amp; App Shell:&lt;/strong&gt; Next.js 14 (App Router), Tailwind CSS, Lucide Icons&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In-Browser Open AI:&lt;/strong&gt; Google Gemma 2 (2B) executing locally in the browser via WebGPU (&lt;code&gt;@mlc-ai/web-llm&lt;/code&gt;) + desktop Ollama bridge (&lt;code&gt;http://localhost:11434&lt;/code&gt;) + curated offline sleep fables engine&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Procedural Sound Engine:&lt;/strong&gt; Native Web Audio API mathematical brown/pink noise synthesis (0 MB assets)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice Synthesis:&lt;/strong&gt; Native Web Speech API (&lt;code&gt;SpeechSynthesis&lt;/code&gt;) with sentence-level chunking to eliminate mobile browser utterance cutoff bugs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline PWA Shell:&lt;/strong&gt; Service Worker (&lt;code&gt;sw.js&lt;/code&gt;) precaching static HTML/JS/CSS for offline execution&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; Multi-stage production &lt;code&gt;Dockerfile&lt;/code&gt; running on Render&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;SomnoSloth is 100% open-source under the MIT License:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/harshitraj1236/somnosloth" rel="noopener noreferrer"&gt;https://github.com/harshitraj1236/somnosloth&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Technical Stack:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend &amp;amp; App Shell:&lt;/strong&gt; Next.js 14 (App Router), Tailwind CSS, Lucide Icons&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In-Browser Open AI:&lt;/strong&gt; Google Gemma 2 (2B) executing locally in the browser via WebGPU (&lt;code&gt;@mlc-ai/web-llm&lt;/code&gt;) + desktop Ollama bridge (&lt;code&gt;http://localhost:11434&lt;/code&gt;) + curated offline sleep fables engine&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Procedural Sound Engine:&lt;/strong&gt; Native Web Audio API mathematical brown/pink noise synthesis (0 MB assets)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice Synthesis:&lt;/strong&gt; Native Web Speech API (&lt;code&gt;SpeechSynthesis&lt;/code&gt;) with sentence-level chunking to eliminate mobile browser utterance cutoff bugs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline PWA Shell:&lt;/strong&gt; Service Worker (&lt;code&gt;sw.js&lt;/code&gt;) precaching static HTML/JS/CSS for offline execution&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; Multi-stage production &lt;code&gt;Dockerfile&lt;/code&gt; running on Render&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;SomnoSloth was built around three principles of radical simplicity:&lt;/p&gt;
&lt;h3&gt;
  
  
  1. The Zero-Asset Procedural Audio Engine
&lt;/h3&gt;

&lt;p&gt;Most soundscape apps stream multi-megabyte MP3 files that stutter, consume mobile bandwidth, and have noticeable loop seams. &lt;/p&gt;

&lt;p&gt;SomnoSloth generates soundscapes mathematically in real time through the &lt;strong&gt;Web Audio API&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Rain on Leaves:&lt;/strong&gt; Generates brownian integrated noise passed through a custom biquad lowpass filter (650 Hz cutoff with Q=1.0).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cozy Hearth:&lt;/strong&gt; Generates brownian noise with randomized impulse crackle through a resonant bandpass filter (320 Hz cutoff with Q=1.8).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deep Cosmos:&lt;/strong&gt; Synthesizes two pure sine oscillators at 108 Hz and 110 Hz, generating an organic 2 Hz binaural delta rhythm.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  2. The Sentence-Chunked Sleep Narrator
&lt;/h3&gt;

&lt;p&gt;A common bug in mobile browser &lt;code&gt;SpeechSynthesis&lt;/code&gt; is that long paragraphs get abruptly truncated mid-sentence by browser audio daemons. SomnoSloth splits all bedtime narratives into individual sentence chunks (&lt;code&gt;story.match(/[^.!?\n]+[.!?\n]+/g)&lt;/code&gt;) and queues them sequentially using &lt;code&gt;onend&lt;/code&gt; callbacks with natural 450ms breath pauses, spoken at a relaxed 0.8x rate and 0.85x pitch.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Hardware-Accurate Sleep Fade
&lt;/h3&gt;

&lt;p&gt;Rather than using JavaScript &lt;code&gt;setInterval&lt;/code&gt; timers (which drift or stall when phone screens lock), volume fading is scheduled directly onto the audio hardware clock:&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="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;currentTime&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;masterGain&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;gain&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setValueAtTime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;masterGain&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;gain&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;masterGain&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;gain&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;linearRampToValueAtTime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.0001&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;durationSeconds&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Genuine Airplane Mode (Zero Cloud Dependency)
&lt;/h3&gt;

&lt;p&gt;Commercial sleep apps stream audio and models from remote servers. This requires you to keep Wi-Fi or cellular data active beside your pillow, leaving you vulnerable to notification pings that shatter sleep cycles. &lt;/p&gt;

&lt;p&gt;By combining open-weight models (&lt;strong&gt;Google Gemma 2&lt;/strong&gt; running via WebGPU / Ollama), native &lt;strong&gt;Web Audio API&lt;/strong&gt; procedural sounds, and &lt;strong&gt;browser SpeechSynthesis&lt;/strong&gt;, SomnoSloth operates without any active internet connection. You can load it once, enable &lt;strong&gt;Airplane Mode&lt;/strong&gt;, and sleep in total peace.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Complete Emotional Privacy
&lt;/h3&gt;

&lt;p&gt;When users type their worries into bedtime apps, they are sharing intimate thoughts. Cloud-based LLMs send that text over the wire to remote servers. By keeping inference completely on-device, your midnight thoughts never leave your hardware.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Free Forever Unit Economics
&lt;/h3&gt;

&lt;p&gt;Running proprietary cloud speech and completion APIs for every bedtime session costs ongoing API fees. Using open weights and native browser synthesis costs &lt;strong&gt;$0.00 per session&lt;/strong&gt;, making a permanent, ad-free tool viable without subscriptions.&lt;/p&gt;




&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of Gemma ($200):&lt;/strong&gt; Leverages Google's &lt;strong&gt;Gemma 2 (2B)&lt;/strong&gt; open-weight model to generate sensory, slow-paced bedtime journeys that disengage cognitive hyper-arousal.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of Render ($200):&lt;/strong&gt; Deployed as a production-grade standalone web application on Render with multi-stage Docker containerization.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Overall Winner ($250):&lt;/strong&gt; An original, zero-cloud relaxation tool that genuinely rewards laziness and embraces the "Slow and Steady" spirit of International Sloth Day.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Disclaimer: SomnoSloth is an offline relaxation companion, not clinical therapy. If you or someone you know is in distress, free and confidential support is available globally at &lt;a href="https://findahelpline.com" rel="noopener noreferrer"&gt;findahelpline.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>ClauseGuard AI: The Zero-Leak Contract Auditor Protecting Freelancers from Predatory Terms</title>
      <dc:creator>Harshit Raj</dc:creator>
      <pubDate>Sun, 18 Oct 2026 18:02:13 +0000</pubDate>
      <link>https://dev.to/harshitraj1236/clauseguard-ai-the-zero-leak-contract-auditor-protecting-freelancers-from-predatory-terms-hnc</link>
      <guid>https://dev.to/harshitraj1236/clauseguard-ai-the-zero-leak-contract-auditor-protecting-freelancers-from-predatory-terms-hnc</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week2-2026-10-12"&gt;Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;Every year, &lt;strong&gt;1.5 billion freelancers and independent contractors&lt;/strong&gt; worldwide experience the exact same moment of dread: after weeks of pitching, negotiations, and technical interviews, a new client sends over a 20-page "standard" contract.&lt;/p&gt;

&lt;p&gt;Buried inside that dense wall of legalese are high-stakes legal traps that can quietly destroy a freelancer’s livelihood:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Net-90 Trap:&lt;/strong&gt; Working for three full months before receiving a single dollar, effectively acting as an interest-free bank for an enterprise client.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The IP Forfeiture Trap:&lt;/strong&gt; Overbroad intellectual property clauses that unintentionally assign the client full ownership over the freelancer’s personal starter templates, boilerplate code, tools, and libraries created years prior.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Unlimited Indemnity Trap:&lt;/strong&gt; Clauses exposing an independent individual to uncapped financial liability if the client gets sued by a third party.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Freelancer Dilemma
&lt;/h3&gt;

&lt;p&gt;Contract attorneys bill &lt;strong&gt;$350 to $600 an hour&lt;/strong&gt;—financially out of reach for a $2,500 project. &lt;/p&gt;

&lt;p&gt;Meanwhile, pasting confidential client contracts into public cloud LLMs (OpenAI, Anthropic) &lt;strong&gt;directly violates the Non-Disclosure Agreements (NDAs)&lt;/strong&gt; freelancers sign before receiving the project specifications.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Solution: ClauseGuard AI
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;ClauseGuard AI&lt;/strong&gt; is an open-source, airgapped contract threat auditor and negotiation co-pilot built exclusively for freelancers and solopreneurs.&lt;/p&gt;

&lt;p&gt;You paste any Statement of Work (SOW), Master Services Agreement (MSA), or NDA, and within seconds ClauseGuard:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Calculates a 0–100 Safety Score:&lt;/strong&gt; A circular gauge immediately communicating legal risk posture.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Isolates Threat Vectors:&lt;/strong&gt; Classifies risks into Payment Terms, IP Assignment, Indemnification, Non-Competes, and Termination.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Translates Legalese into Plain English:&lt;/strong&gt; Explains in direct, jargon-free language why a specific clause hurts your cash flow or exposes you to legal liability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Synthesizes Ready-to-Send Redlines:&lt;/strong&gt; Crafts fair, commercially balanced counter-clauses with a single-click &lt;strong&gt;"Copy Redline"&lt;/strong&gt; or &lt;strong&gt;"Copy All as Negotiation Email"&lt;/strong&gt; button.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generates a 45-Second Spoken Audio Briefing:&lt;/strong&gt; Produces an executive voice briefing via ElevenLabs so freelancers can listen to the critical risks in under a minute before hopping on a client negotiation call.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Who Would Pay For It?
&lt;/h3&gt;

&lt;p&gt;Freelancers, independent engineers, design studios, and agency founders will gladly pay &lt;strong&gt;$12/month (or $5 per ad-hoc audit)&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Avoiding a single 90-day payment delay or a contested IP ownership claim saves thousands of dollars and months of stress. For independent workers who manage their own sales and risk, ClauseGuard provides immediate, tangible ROI on day one.&lt;/p&gt;




&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Port:&lt;/strong&gt; &lt;code&gt;https://clauseguard-ai-ws69.onrender.com/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User Interface:&lt;/strong&gt; Cyber-tactical sci-fi HUD console inspired by mission-critical defense dashboards, engineered with full responsive support across &lt;strong&gt;mobile phones, tablets, and desktop workstations&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live Node Monitoring:&lt;/strong&gt; An active health indicator verifies that the local Ollama instance is reachable (&lt;code&gt;● NODE: gemma2:2b (Ollama Local)&lt;/code&gt;), proving zero cloud transmission.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step-by-Step Workflow:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Load a Test Vector:&lt;/strong&gt; Click the pre-loaded &lt;em&gt;"Predatory Consulting SOW"&lt;/em&gt; chip (featuring Net-90 terms, total IP forfeiture, and uncapped liability).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Observe Real-Time Pipeline:&lt;/strong&gt; Watch the 4-step pipeline track execution in real time:

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Sector 01:&lt;/em&gt; Segmenting clauses &amp;amp; extracting operative language&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Sector 02:&lt;/em&gt; Cross-referencing safe baseline benchmarks (Net-30, capped liability, mutual IP)&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Sector 03:&lt;/em&gt; Google Gemma 2 neural reasoning &amp;amp; risk evaluation&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Sector 04:&lt;/em&gt; Synthesizing redline counter-clauses &amp;amp; ElevenLabs audio briefing&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review Threat Dossier:&lt;/strong&gt; Inspect the &lt;strong&gt;15/100 Critical Threat&lt;/strong&gt; rating, examine the color-coded severity cards, listen to the 45-second audio briefing, and click &lt;strong&gt;"Copy All Redlines as Email Draft"&lt;/strong&gt; to paste into your email client.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;ClauseGuard AI is 100% open-source under the permissive MIT License:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/harshitraj1236/clauseguard-ai" rel="noopener noreferrer"&gt;https://github.com/harshitraj1236/clauseguard-ai&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Technical Stack:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend Framework:&lt;/strong&gt; Next.js 14 (App Router), React 18, TypeScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styling:&lt;/strong&gt; Tailwind CSS with custom cyber-tactical HUD theme &amp;amp; Lucide icons&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local AI Engine:&lt;/strong&gt; Google Gemma 2 (2B) executing locally over Ollama (&lt;code&gt;http://localhost:11434&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent Workflow:&lt;/strong&gt; Mastra-inspired multi-sector pipeline&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice Synthesis:&lt;/strong&gt; ElevenLabs TTS API with seamless browser Web Speech API fallback&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Legal Benchmark Engine:&lt;/strong&gt; Fair-terms knowledge base covering commercial standards for independent contractors&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;ClauseGuard was architected as an airgapped, four-sector agentic pipeline designed to run on modest local hardware:&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    User["Freelancer / Solopreneur"] --&amp;gt;|Pastes Contract / SOW| UI["Next.js Responsive HUD (Port 1093)"]
    UI --&amp;gt;|API Request| Workflow["Mastra Agent Workflow"]

    subgraph PrivacyBoundary["100% Zero-Leak Privacy Boundary (Local Machine)"]
        Workflow --&amp;gt;|1. Segment Clauses| Chunker["Clause Segmenter"]
        Workflow --&amp;gt;|2. Check Standards| Benchmarks["Safe Benchmark Store (Net-30, Mutual IP, Capped Liability)"]
        Workflow --&amp;gt;|3. Local Neural Inference| Gemma["Google Gemma 2 (2B via Ollama)"]
        Gemma --&amp;gt;|Risk Scores 1-10 + Plain-English Explanations| Workflow
    end

    Workflow --&amp;gt;|4. Synthesize Counter-Offers| Redlines["Redline Generator &amp;amp; Email Draft"]
    Workflow --&amp;gt;|5. Voice Briefing Script| ElevenLabs["ElevenLabs Voice Engine (Audio Player + Waveform)"]

    Workflow --&amp;gt; UI
    UI --&amp;gt;|Displays Gauge, Flagged Clauses, Audio Player &amp;amp; Redlines| User&lt;/code&gt;&lt;/pre&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Google Gemma 2 (2B):&lt;/strong&gt; We selected Google's lightweight open-weight model &lt;code&gt;gemma2:2b&lt;/code&gt;. Despite its compact 1.6 GB footprint, Gemma 2 exhibits exceptional legal comprehension and structured reasoning. It reliably parses ambiguous legal phrasing, identifies non-reciprocal clauses, and articulates clear counter-proposals.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mastra Agent Workflow:&lt;/strong&gt; Standardizes contract parsing into isolated units. Instead of dumping a massive contract into one unmanageable prompt, the workflow isolates individual clauses, evaluates them against our curated safe benchmark standards, and generates targeted redline adjustments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ElevenLabs Audio Briefing:&lt;/strong&gt; Freelancers are constantly multitasking. We integrated ElevenLabs to convert the top identified legal risks into a high-tempo 45-second audio brief, complete with play/pause controls, soundwave visualization, and an expandable text transcript.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live System Health Check:&lt;/strong&gt; To give users complete confidence that their data never touches a public server, the frontend pings &lt;code&gt;/api/status&lt;/code&gt; to confirm local Ollama connectivity and displays an active green status pill directly on the console.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;For ClauseGuard AI, &lt;strong&gt;open innovation is not just an implementation detail—it is the core reason the product can legally and economically exist.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The NDA Paradox (The Zero-Leak Privacy Mandate)
&lt;/h3&gt;

&lt;p&gt;When a freelancer signs an enterprise client agreement, it invariably contains strict confidentiality provisions. &lt;strong&gt;Uploading that agreement to a commercial cloud AI (such as OpenAI or Anthropic) technically breaches the NDA&lt;/strong&gt;, exposing the freelancer to breach-of-contract claims before work has even begun.&lt;/p&gt;

&lt;p&gt;By utilizing Google's open-weight &lt;strong&gt;Gemma 2&lt;/strong&gt; running locally through &lt;strong&gt;Ollama&lt;/strong&gt;, ClauseGuard ensures that &lt;strong&gt;100% of the contract text remains on the user's laptop&lt;/strong&gt;. No telemetry, no cloud logging, no data persistence, and zero confidentiality violations.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The Unit Economics of a Sustainable Micro-SaaS
&lt;/h3&gt;

&lt;p&gt;A typical independent contractor might review three to five 20-page contracts each month. Running multi-turn legal analysis on commercial cloud LLMs would cost \$1.50–\$3.00 per audit in input/output tokens. At a \$9/month subscription price, a few active clients would eliminate profit margins entirely.&lt;/p&gt;

&lt;p&gt;With open-weight models running on local hardware or low-cost private compute, &lt;strong&gt;the marginal cost per token is \$0.00&lt;/strong&gt;. This enables a micro-SaaS with &lt;strong&gt;95%+ gross margins&lt;/strong&gt;, making ClauseGuard commercially viable and sustainable as a bootstrapped side hustle.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Open Standards &amp;amp; Immunity from API Deprecation
&lt;/h3&gt;

&lt;p&gt;Proprietary cloud APIs regularly deprecate model checkpoints, change pricing tiers, and alter safety filters unpredictably. By anchoring ClauseGuard to open weights and open-source agent frameworks (Mastra, Ollama), our auditing pipeline remains deterministic, auditable, and resilient to vendor lock-in.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;This entire project was planned, coded, and iterated through an agentic pair-programming session using &lt;strong&gt;DevRelay&lt;/strong&gt; and the Antigravity agentic coding environment:&lt;/p&gt;


&lt;div class="ltag-agent-session"&gt;
  &lt;div class="agent-session-header"&gt;
    
    &lt;span class="agent-session-tool-icon-badge" title="Gemini CLI"&gt;
&lt;/span&gt;
    &lt;span class="agent-session-title"&gt;Building ClauseGuard AI: Privacy-First Contract Auditor with Local Gemma 2&lt;/span&gt;
  &lt;/div&gt;

  &lt;div class="agent-session-scroll"&gt;

      &lt;div class="agent-session-message agent-session-user"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-user"&gt;
          You
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;I want to build an open-source AI project for the Hacktoberfest 2026 Week 2 "Side Hustle" challenge. It needs to be something freelancers would actually pay for, running locally with zero data leakage.&lt;/p&gt;

                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="agent-session-message agent-session-assistant"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-assistant"&gt;
          Agent
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Let's build ClauseGuard AI — a privacy-first contract threat auditor for freelancers. When freelancers receive client contracts under NDA, uploading them to cloud LLMs violates confidentiality. By running Google Gemma 2 locally via Ollama and orchestrating with Mastra, ClauseGuard scans predatory terms (Net-90, unlimited liability, IP forfeiture) with zero data leakage.&lt;/p&gt;

                &lt;/div&gt;
              &lt;div class="agent-session-tool-call"&gt;
                
                  &lt;span class="agent-session-chevron"&gt;▸&lt;/span&gt;
                  &lt;span class="tool-name tool-name-buildproject"&gt;build_project&lt;/span&gt;
                    &lt;span class="tool-input-preview"&gt;npm run build&lt;/span&gt;
                
                &lt;div class="agent-session-tool-detail"&gt;
                    &lt;div class="tool-section"&gt;
                      &lt;div class="tool-section-label"&gt;Input&lt;/div&gt;
                      &lt;pre class="agent-session-pre"&gt;&lt;code&gt;npm run build&lt;/code&gt;&lt;/pre&gt;
                    &lt;/div&gt;
                    &lt;div class="tool-section"&gt;
                      &lt;div class="tool-section-label"&gt;Output&lt;/div&gt;
                      &lt;pre class="agent-session-pre"&gt;&lt;code&gt;Compiled successfully in 1.4s (0 errors)&lt;/code&gt;&lt;/pre&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="agent-session-message agent-session-user"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-user"&gt;
          You
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Make the dashboard feel like a cyber-tactical HUD console, responsive across laptop, tablet, and mobile, with an electric blue theme and live Ollama status.&lt;/p&gt;

                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="agent-session-message agent-session-assistant"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-assistant"&gt;
          Agent
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Implemented the cyber-tactical HUD interface with real-time Ollama health checks, circular safety score gauge, multi-stage pipeline tracker, redline counter-offers, and ElevenLabs 45s audio briefing.&lt;/p&gt;

                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class="agent-session-footer"&gt;
    &lt;span class="agent-session-meta"&gt;
        4 of 4 messages
    &lt;/span&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;em&gt;(Agent Session #1018: Building ClauseGuard AI: Privacy-First Contract Auditor with Local Gemma 2)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;From scaffolding the Next.js 14 application to configuring the Ollama Gemma 2 pipeline, tuning the cyber-tactical HUD theme, and building the fallback speech systems, the entire development trail is documented in the interactive session above.&lt;/p&gt;




&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of Gemma ($200):&lt;/strong&gt; Uses Google's &lt;strong&gt;Gemma 2 (2B)&lt;/strong&gt; open-weight model running locally via Ollama to perform deep legal clause evaluation, threat scoring, and plain-English counter-proposal synthesis.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of Mastra ($100):&lt;/strong&gt; Implements a multi-stage agentic workflow that segments legal text, validates clauses against a safe benchmark knowledge base, and orchestrates neural risk scoring.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of ElevenLabs ($100):&lt;/strong&gt; Synthesizes a high-fidelity 45-second executive voice briefing with an interactive audio player, animated waveform, and collapsible transcript drawer.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Best Use of Render ($200):&lt;/strong&gt; Production-ready Next.js web application configured for deployment on Render.&lt;/li&gt;
&lt;li&gt;🏆 &lt;strong&gt;Overall Winner ($250):&lt;/strong&gt; An original, production-ready, privacy-first side hustle that solves a genuine multi-billion dollar problem for independent workers using open-source AI.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Disclaimer: ClauseGuard AI provides automated legal heuristics and risk scoring for educational and negotiation assistance. It is not formal legal counsel.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
