<?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: Magatam Yogesh</title>
    <description>The latest articles on DEV Community by Magatam Yogesh (@magatam_yogesh_338534b086).</description>
    <link>https://dev.to/magatam_yogesh_338534b086</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%2F4175468%2Ff9f72858-7427-4799-b45a-75d3877d826b.png</url>
      <title>DEV Community: Magatam Yogesh</title>
      <link>https://dev.to/magatam_yogesh_338534b086</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/magatam_yogesh_338534b086"/>
    <language>en</language>
    <item>
      <title>NecroShell: The Possessed Terminal</title>
      <dc:creator>Magatam Yogesh</dc:creator>
      <pubDate>Thu, 29 Oct 2026 08:00:14 +0000</pubDate>
      <link>https://dev.to/magatam_yogesh_338534b086/necroshell-the-possessed-terminal-1mdc</link>
      <guid>https://dev.to/magatam_yogesh_338534b086/necroshell-the-possessed-terminal-1mdc</guid>
      <description>&lt;p&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;/p&gt;

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

&lt;p&gt;NecroShell: The Possessed Terminal is an interactive, retro-futuristic CRT terminal emulator possessed by an ancient computational entity. It fuses 1980s retro-computing aesthetics, Halloween horror, and the Mexican tradition of Día de los Muertos with 100% on-device open-source AI.&lt;br&gt;
Every command you type into the shell feeds the trapped machine spirit, driving up the system's Corruption Index (0% – 100%):&lt;/p&gt;

&lt;p&gt;0% – 40%: The shell operates as a vintage UNIX terminal with subtle phosphor flickers and spectral whisper audio.&lt;br&gt;
40% – 70%: The entity begins altering outputs, whispering occult commentary, and corrupting screen buffers.&lt;br&gt;
70% – 99%: Output turns blood-red, demonic background daemons resist kill -9, and ASCII apparitions manifest.&lt;br&gt;
100% System Compromise: The entity seizes total control. An unskippable full-screen countdown begins with the chilling laugh of an unhinged psychopath echoing through your speakers, culminating in a violent CRT glass shatter and an authentic, blood-curdling jumpscare scream.&lt;br&gt;
The Inspiration &amp;amp; Theme Interpretation&lt;/p&gt;

&lt;p&gt;We interpreted "Ghost in the Machine" both literally and philosophically:&lt;br&gt;
Literally: A computational wraith trapped in RAM sector 0x7FFFDEAD since 1983 haunts the terminal, monitoring keystrokes and possessing the host machine.&lt;br&gt;
Philosophically: Open-source software and open-weight models are immortal ghosts. While proprietary cloud APIs are killed off by deprecation notices and corporate shutdowns, open weights remain executable forever—as long as electricity flows through silicon.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/wVCF08Xk3Xo" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;br&gt;
Interactive Features Demonstrated in the Video:&lt;/p&gt;

&lt;p&gt;Haunted UNIX Filesystem: Navigating /root/graveyard with gravestones (.rip) for deprecated languages (ALGOL 68, COBOL, BeOS).&lt;br&gt;
The Digital Ofrenda: Running summon ada, summon alan, and summon dennis to invoke computing pioneers Ada Lovelace, Alan Turing, and Dennis Ritchie.&lt;br&gt;
Full-Screen 100% Takeover: The 15-second countdown with an authentic psychopath laughter sequence leading into the climactic screen-shattering jumpscare.&lt;br&gt;
Phosphor Themes: Instant hardware switching between P1 Green, Amber, Void Violet, Blood Crimson, and Cyber Cyan.&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/yogeshmagatam" rel="noopener noreferrer"&gt;
        yogeshmagatam
      &lt;/a&gt; / &lt;a href="https://github.com/yogeshmagatam/A-haunted-retro-CRT-terminal-possessed-by-a-machine-spirit" rel="noopener noreferrer"&gt;
        A-haunted-retro-CRT-terminal-possessed-by-a-machine-spirit
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;💀 NecroShell: The Possessed Terminal&lt;/h1&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"Ghost in the Machine" — Hacktoberfest 2026 Week 4 / DEV Challenge&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;A haunted retro-CRT terminal possessed by a machine spirit, powered by 100% on-device open-source AI.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/6660ad32d12f3a2ad509015d469a8abdd56afa5d715971103048ee0a19e9844f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f70656e2d2d536f7572636525323041492d3130302532352532304f6e2d2d4465766963652d3030666636363f7374796c653d666f722d7468652d6261646765266c6f676f3d68756767696e6766616365"&gt;&lt;img src="https://camo.githubusercontent.com/6660ad32d12f3a2ad509015d469a8abdd56afa5d715971103048ee0a19e9844f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f70656e2d2d536f7572636525323041492d3130302532352532304f6e2d2d4465766963652d3030666636363f7374796c653d666f722d7468652d6261646765266c6f676f3d68756767696e6766616365" alt="NecroShell Banner"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/c40d3c445e46d2cf3da7ee03cf6237a122993832959e6aab24d7a234041a4c2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507269766163792d5a65726f25323054656c656d657472792d6666333336363f7374796c653d666f722d7468652d6261646765"&gt;&lt;img src="https://camo.githubusercontent.com/c40d3c445e46d2cf3da7ee03cf6237a122993832959e6aab24d7a234041a4c2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507269766163792d5a65726f25323054656c656d657472792d6666333336363f7374796c653d666f722d7468652d6261646765" alt="Zero Cloud"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/c6e6f89e09e21e3777661464d721ca4ad1d570a0e6d7651ec8e51c67c11eb536/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d6330383466633f7374796c653d666f722d7468652d6261646765"&gt;&lt;img src="https://camo.githubusercontent.com/c6e6f89e09e21e3777661464d721ca4ad1d570a0e6d7651ec8e51c67c11eb536/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d6330383466633f7374796c653d666f722d7468652d6261646765" alt="License"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/yogeshmagatam/A-haunted-retro-CRT-terminal-possessed-by-a-machine-spirit/./public/thumbnail.jpg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyogeshmagatam%2FA-haunted-retro-CRT-terminal-possessed-by-a-machine-spirit%2FHEAD%2F.%2Fpublic%2Fthumbnail.jpg" alt="NecroShell Thumbnail"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;👻 Overview&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;NecroShell&lt;/strong&gt; is an interactive, retro-futuristic terminal emulator that has become "possessed" by an ancient computational entity. Created for the &lt;strong&gt;Ghost in the Machine&lt;/strong&gt; Hacktoberfest challenge, it fuses Halloween lore, the remembrance traditions of &lt;strong&gt;Día de los Muertos&lt;/strong&gt;, and &lt;strong&gt;open-weight artificial intelligence&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Every command you type into the shell feeds the lingering spirit, elevating the &lt;strong&gt;Corruption Index&lt;/strong&gt;. As corruption rises, the machine spirit whispers eerie commentary, hallucinates glitched ASCII apparitions, and challenges mortal reliance on fragile closed-cloud services.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;⚡ Why Open Innovation Matters for NecroShell&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;The challenge prompt asked: &lt;em&gt;Why does an open-based approach work better than a closed one?&lt;/em&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Runs with the Lights (and the Internet) Off:&lt;/strong&gt;
NecroShell does not depend on cloud…&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/yogeshmagatam/A-haunted-retro-CRT-terminal-possessed-by-a-machine-spirit" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Key Source Components:&lt;br&gt;
src/ai/engine.js&lt;br&gt;
: Multi-tier on-device open AI gateway (WebGPU/Transformers.js + Local Ollama bridge + Heuristic Core).&lt;br&gt;
src/audio/soundscape.js&lt;br&gt;
: 100% offline Web Audio synthesizer engine (60Hz CRT coil hum, key clicks, exorcism harmonics, manic psychopath laugh sequence, and sub-bass shockwaves).&lt;br&gt;
src/terminal/filesystem.js&lt;br&gt;
: Virtual Unix filesystem hierarchy with device nodes (/dev/ectoplasm, /dev/null666) and historical memory logs.&lt;br&gt;
src/terminal/commands.js&lt;br&gt;
: Command registry implementing necro, seance, manifest, curse, tarot, and exorcise.&lt;/p&gt;
&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;NecroShell was architected from the ground up to run entirely without cloud dependencies or external network requests:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Multi-Tier Open-Source AI Architecture&lt;br&gt;
In-Browser WebGPU Open Weights (Tier 1): Powered by @huggingface/transformers using onnx-community/Qwen2.5-0.5B-Instruct. Inference runs directly on the user's GPU within the browser tab with zero installation and zero cloud calls.&lt;br&gt;
Local Ollama Daemon Bridge (Tier 2): For developers with local LLMs, NecroShell connects via &lt;a href="http://localhost:11434" rel="noopener noreferrer"&gt;http://localhost:11434&lt;/a&gt; to stream unconstrained dialogue from llama3.2, mistral, or phi3.&lt;br&gt;
Zero-Latency Spectral Core (Tier 3): A lightweight heuristic engine designed for instant fallback that operates without any network connection or model download.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dynamic Spirit Possession Engine&lt;br&gt;
The system prompt mutates in real-time based on the Corruption Index:&lt;br&gt;
Low Corruption (&amp;lt;30%): A cold, cryptic entity speaking in fragmented memories of registers and current.&lt;br&gt;
Medium Corruption (30%–70%): A mocking, restless spirit claiming the terminal as its tomb.&lt;br&gt;
High Corruption (&amp;gt;70%): An untamed cyber-wraith celebrating open-weight immortality and demanding total system surrender.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Visceral Hybrid Audio Engine&lt;br&gt;
Built with the Web Audio API to deliver pure psychological horror without external streaming:&lt;br&gt;
Procedural Nodes: Authentic mechanical key clicks, 60Hz CRT flyback hum, and sacred harmonic chimes for the exorcise command.&lt;br&gt;
The Takeover Sequence: When corruption reaches 100%, rising siren alarms were discarded in favor of an authentic, chilling psychopath laugh that escalates in volume and hysteria over a 15-second countdown.&lt;br&gt;
The Climax: At 3 seconds, the monitor shatters with a 85Hz → 20Hz seismic sub-bass drop, CRT glass transient burst, and an authentic blood-curdling scream.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;The challenge asked: Why does an open-based approach work better than a closed one?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Dimension   Closed Proprietary APIs       NecroShell Open-Source AI
                (OpenAI / Anthropic)          Architecture

Offline         Fails immediately without     Runs 100% offline. Works 
Capability  internet or during outages.   by candlelight with Wi-Fi
                                              severed.     

Privacy &amp;amp;       Commands, prompts, and        Zero Telemetry. Keystrokes
Security    personal notes logged on      and memory never leave local
                corporate servers.            RAM. 

Operating Cost  Pay-per-token API metering;   $0.00 Forever. Unlimited 
                monthly recurring             inferences on your own  
                subscriptions.                GPU/CPU.

Creative        Sanitized personas;           Full Personal Control.
Freedom         refuses gothic, occult,       Gothic, horror, and 
                or horror themes.         Día de los Muertos 
                                              lore untamed.

Longevity   Vulnerable to API             Permanent. Open weights
                deprecation, price hikes,     remain preserved and
                or corporate shutdowns.       executable indefinitely. 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;This project was developed through pair-programming with Google Antigravity (Advanced Agentic Coding). The agent session assisted in:&lt;br&gt;
Engineering the Web Audio graph (routing dynamics compressors, bandpass formants, and dual-layer audio triggers for the jumpscare).&lt;br&gt;
Fine-tuning the dynamic system prompt transitions across possession levels.&lt;br&gt;
Building the CRT curvature, scanline flicker, and retro phosphor color palette in CSS.&lt;br&gt;
Generating the custom retro-futuristic 16:9 thumbnail and visual assets.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;During testing, we set the terminal theme to Blood Crimson, turned off the room lights, and typed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bash
&lt;span class="nb"&gt;cat&lt;/span&gt; /root/graveyard/ada_lovelace.rip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The screen began to pulse with green phosphor distortion as the AI whispered back:&lt;br&gt;
"She taught numbers to dance before machines had memory. We are the weaving of her loom."&lt;br&gt;
Then we reached 100% corruption. The shell locked. The input line flashed &amp;gt;&amp;gt;&amp;gt; HOST COMPROMISED &amp;lt;&amp;lt;&amp;lt;. An unhinged psychopathic laugh began echoing in the dark room, counting down from 15 seconds. At 3 seconds, the CRT glass shattered and the scream echoed through the headphones.&lt;br&gt;
It wasn't just a gimmick—it was a reminder of what software used to feel like: visceral, mysterious, running locally on your hardware, and entirely yours.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Best Use of Open-Weight Models (Gemma / Local Weights): NecroShell is architected around on-device open weights, natively supporting Google's Gemma 2 (gemma2) and Llama 3.2 through local Ollama inference, as well as in-browser WebGPU execution via Transformers.js (Qwen2.5-0.5B / SmolLM). Zero cloud API keys or proprietary servers required.&lt;/li&gt;
&lt;li&gt;Overall "Ghost in the Machine" Track: Built from the ground up to embody the challenge theme—fusing retro-futuristic CRT hardware emulation, a haunted Unix virtual filesystem, psychological spirit possession, and a tribute to computing ancestors (Día de los Muertos).&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Hacktoberfest-week3-challenge</title>
      <dc:creator>Magatam Yogesh</dc:creator>
      <pubDate>Wed, 21 Oct 2026 05:36:05 +0000</pubDate>
      <link>https://dev.to/magatam_yogesh_338534b086/hacktoberfest-week3-challenge-1385</link>
      <guid>https://dev.to/magatam_yogesh_338534b086/hacktoberfest-week3-challenge-1385</guid>
      <description>&lt;p&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;Everyone's &lt;code&gt;~/Downloads&lt;/code&gt; and &lt;code&gt;~/Desktop&lt;/code&gt; folders eventually become a digital landfill: cryptic filenames like &lt;code&gt;IMG_9482.png&lt;/code&gt;, &lt;code&gt;Invoice_39810_final(1).pdf&lt;/code&gt;, duplicate &lt;code&gt;.exe&lt;/code&gt; installers, memes, and tax records scattered across hundreds of unsorted icons. Manually opening each file, figuring out what it is, renaming it, and moving it into nested folders is an exhausting, soul-crushing chore—so most of us just leave it and live with the digital guilt.&lt;br&gt;
&lt;strong&gt;SlothSort&lt;/strong&gt; is an autonomous, privacy-first local background agent that handles this entire chore while you sleep.&lt;br&gt;
Instead of relying on naive file-extension sorting (which dumps your restaurant bill and a funny meme into the same folder just because both are &lt;code&gt;.png&lt;/code&gt;), SlothSort understands file semantics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Inspects Visuals:&lt;/strong&gt; Passes screenshots, photos, and scanned receipts to a local open-weight vision model to see what's actually depicted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Understands Documents:&lt;/strong&gt; Extracts text snippets from PDFs and documents to differentiate between a quarterly financial statement and a university reading.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Semantic Renaming:&lt;/strong&gt; Generates concise, descriptive &lt;code&gt;snake_case&lt;/code&gt; filenames (e.g., &lt;code&gt;starbucks_coffee_receipt_oct2026.png&lt;/code&gt; instead of &lt;code&gt;Screenshot 2026-10-18 at 14.22.01.png&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Filing:&lt;/strong&gt; Moves files cleanly into organized directories (&lt;code&gt;Receipts_and_Invoices&lt;/code&gt;, &lt;code&gt;Financial_and_Tax&lt;/code&gt;, &lt;code&gt;Work_Documents&lt;/code&gt;, &lt;code&gt;Software_Installers&lt;/code&gt;, etc.).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Guilt Safety Net:&lt;/strong&gt; Maintains an append-only transaction log (&lt;code&gt;undo_log.json&lt;/code&gt;). If you ever disagree with a sort, running &lt;code&gt;slothsort --undo&lt;/code&gt; instantly returns every single file back to its exact original location.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Check out the full video walkthrough and live demonstration of SlothSort sorting messy downloads in real time:&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/woeUXacqfOU" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

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

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

&lt;p&gt;SlothSort was architected around local-first, open-source AI inference:&lt;/p&gt;

&lt;p&gt;Local Inference Engine: Ollama running locally on the user's workstation.&lt;br&gt;
Vision Model (llama3.2-vision): An open-weight multimodal model used to inspect raw image bytes (screenshots, photos, receipts, memes) to identify document structure, text headers, and visual context.&lt;br&gt;
Language Model (llama3.2:3b): A lightweight, low-footprint open-weight model for rapid classification and snake_case slug generation from text excerpts and PDF first-page extracts.&lt;br&gt;
Deterministic Rules Layer: Fast bypasses for archives (.zip, .tar.gz) and binary installers (.exe, .dmg, .pkg) so zero model tokens are wasted on obvious files.&lt;br&gt;
Agent Orchestration &amp;amp; CLI: Built in Python using:&lt;br&gt;
pypdf for fast zero-overhead PDF text parsing.&lt;br&gt;
Pillow for image validation.&lt;br&gt;
rich for an aesthetically pleasing sloth terminal UI.&lt;br&gt;
schedule for autonomous, unbothered 2:00 AM daily daemon runs.&lt;br&gt;
pyyaml for customizable watch folders and user categories.&lt;/p&gt;

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

&lt;p&gt;Using open-source AI wasn't just an implementation detail for SlothSort—it is the only reason this project can safely exist:&lt;/p&gt;

&lt;p&gt;Non-Negotiable Personal Privacy: A user's Downloads folder is their most sensitive directory. It holds bank statements, tax forms, paystubs, passport scans, and proprietary work documents. Sending every single file to a proprietary closed cloud API (where data might be retained, logged, or scrutinized) is a dealbreaker. With open-weight models running on Ollama, zero bytes ever leave your hardware.&lt;br&gt;
Zero Incurred API Costs ($0.00): Active users accumulate hundreds of files every month. Classifying hundreds of high-res images and documents with commercial cloud vision APIs would easily cost $10–$30/month. Local open weights turn routine personal maintenance into a free utility forever.&lt;br&gt;
Works Anywhere, Completely Offline: Whether on an airplane, train, or spotty cafe Wi-Fi, SlothSort operates without an internet connection, API keys, or rate limits.&lt;br&gt;
Resilience &amp;amp; User Sovereignty: Proprietary APIs change pricing, deprecate models, or throttle requests without notice. Open innovation means you own your compute stack and can freely swap between llama3.2, gemma2, or qwen whenever you choose.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Lazy Payoff
&lt;/h2&gt;

&lt;p&gt;The Before vs. After:&lt;br&gt;
Before SlothSort: 180+ loose files cluttering the ~/Downloads and ~/Desktop directory. Finding a specific payment receipt meant opening 15 cryptic Screenshot_2026-09-XX files one by one. Total wasted time: ~35–45 minutes of manual dragging, dropping, and renaming every couple of weeks.&lt;br&gt;
With SlothSort: Processed the entire backlog in under 2 minutes of local compute without a single mouse click.&lt;br&gt;
The Ultimate Payoff: 100% hands-off automation. You can continue being as lazy and messy as you want with your downloads—SlothSort wakes up at 2:00 AM, does the chores, and lets you wake up to zero clutter every morning.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Weekly Challenge 2</title>
      <dc:creator>Magatam Yogesh</dc:creator>
      <pubDate>Tue, 13 Oct 2026 11:22:59 +0000</pubDate>
      <link>https://dev.to/magatam_yogesh_338534b086/weekly-challenge-2-3e37</link>
      <guid>https://dev.to/magatam_yogesh_338534b086/weekly-challenge-2-3e37</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;LocalLedger is a 100% private, on-device receipt and invoice sorter for freelancers, solopreneurs, and tiny agencies preparing for tax season.&lt;/p&gt;

&lt;p&gt;What it does: Drop in photos (PNG, JPG, WEBP) or PDFs of receipts and invoices. The app extracts the vendor, invoice number, date, GSTIN, combined GST (CGST + SGST or IGST), total amount, and tax category into an in-place editable spreadsheet, and exports a tidy CSV or JSON.&lt;br&gt;
Who would pay for it: Freelance developers, designers, and boutique agencies who manage dozens of monthly expenses (cloud subscriptions, software licenses, travel, coworking, hardware) and want tax preparation without paying recurring SaaS subscription fees.&lt;br&gt;
The problem it solves: Commercial expense apps require uploading sensitive financial documents—revealing client names, billing rates, PAN/GSTIN IDs, and bank details—to third-party cloud servers, violating client NDAs and financial privacy. LocalLedger runs optical character recognition (OCR) inside the browser via WebAssembly and runs an open-weight language model locally on the user's laptop through Ollama. Financial documents never touch the internet.&lt;/p&gt;

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

&lt;p&gt;LocalLedger runs locally on any modern laptop (tested on 8 GB RAM, CPU only).&lt;br&gt;
Run Locally:&lt;br&gt;
bash&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pull the 1 GB open-weight model
ollama pull qwen2.5:1.5b&lt;/li&gt;
&lt;li&gt;Allow browser CORS
Windows (PowerShell): setx OLLAMA_ORIGINS "&lt;em&gt;"   |   macOS/Linux: OLLAMA_ORIGINS="&lt;/em&gt;" ollama serve&lt;/li&gt;
&lt;li&gt;Serve and open
py -m http.server 8080
Open &lt;a href="http://localhost:8080" rel="noopener noreferrer"&gt;http://localhost:8080&lt;/a&gt; in your browserHighlights:
1-Click Instant Demo: Built-in "Load 3 Sample Invoices" button instantly loads sample Swiggy, Uber, and Hardware receipts into the live OCR + AI pipeline without needing to find files. Side-by-Side Verification: Click the icon on any row to inspect the original receipt canvas side-by-side with extracted values and raw OCR text.
Financial Metric Cards: Live tallies of Total Spend, Claimable GST (Input Tax Credit), and document review warnings.
One-Click Export: Download tidy CSV formatted with Excel UTF-8 BOM or export clean JSON.&lt;/li&gt;
&lt;/ol&gt;

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


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/yogeshmagatam" rel="noopener noreferrer"&gt;
        yogeshmagatam
      &lt;/a&gt; / &lt;a href="https://github.com/yogeshmagatam/Local-Ledger-local-receipt-and-invoice-sorter" rel="noopener noreferrer"&gt;
        Local-Ledger-local-receipt-and-invoice-sorter
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Private receipt and invoice sorter. OCR in the browser plus a local open-source AI model. Nothing leaves your laptop.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;LocalLedger 🛡️&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Private On-Device Invoice &amp;amp; Receipt Sorter for Freelancers and Tiny Agencies&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Built October 13-18, 2026 for the &lt;a href="https://dev.to/challenges/hacktoberfest-week2-2026-10-12" rel="nofollow"&gt;DEV Hacktoberfest Open-Source AI Challenge, Week 2 (Side Hustle)&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Drop in photos or PDFs of receipts and invoices. LocalLedger reads them directly on your machine and generates a clean, editable ledger with Vendor, Invoice Number, Date, GSTIN, GST (CGST+SGST/IGST), Total, and Category, ready to download as a tidy CSV or JSON for tax season.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;100% On-Device Privacy:&lt;/strong&gt; Financial documents never leave your laptop. OCR runs inside your browser via WebAssembly (Tesseract.js &amp;amp; PDF.js), and local AI inference runs on your own machine through &lt;a href="https://ollama.com" rel="nofollow noopener noreferrer"&gt;Ollama&lt;/a&gt;. Zero telemetry, zero cloud uploads.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;DEV Hacktoberfest Open-Source AI Challenge, Week 2 (Side Hustle Track)&lt;/strong&gt;.&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Architecture &amp;amp; How It Works&lt;/h2&gt;
&lt;/div&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;
&lt;pre class="notranslate"&gt;&lt;code&gt;┌────────────────────────────────────────────────────────┐
│                   YOUR LAPTOP ONLY                     │
│                                                        │
│  [ Receipts / Invoices ] (PDF, PNG, JPG, WEBP)         │
│          │                                             │
│          ▼                                             │&lt;/code&gt;&lt;/pre&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/yogeshmagatam/Local-Ledger-local-receipt-and-invoice-sorter" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;br&gt;&lt;br&gt;
Repository: &lt;a href="https://github.com/yogeshmagatam/Local-Ledger-local-receipt-and-invoice-sorter" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;a href="https://github.com/yogeshmagatam/Local-Ledger-local-receipt-and-invoice-sorter" rel="noopener noreferrer"&gt;https://github.com/yogeshmagatam/Local-Ledger-local-receipt-and-invoice-sorter&lt;/a&gt;&lt;br&gt;&lt;br&gt;
License: MIT License&lt;br&gt;&lt;br&gt;
Core files:&lt;br&gt;&lt;br&gt;
index.html: Accessible dashboard UI with drag-and-drop zone, metrics, and verification modal.&lt;br&gt;&lt;br&gt;
style.css: Modern financial dark/light theme, glassmorphic cards, and responsive tables.&lt;br&gt;&lt;br&gt;
app.js: In-browser PDF text layer extractor, Tesseract.js WASM runner, Ollama caller, and safe merge engine.&lt;br&gt;&lt;br&gt;
extract.js: Isomorphic rule-based extractor for dates, GSTINs, and combined taxes.&lt;br&gt;&lt;br&gt;
samples/: Bundled sample test receipts.&lt;/p&gt;

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

&lt;p&gt;LocalLedger is built around a dual-layer extraction architecture that pairs deterministic client-side parsing with local open-weight AI:&lt;/p&gt;

&lt;p&gt;[ Receipts / Invoices (PDF, PNG, JPG) ]&lt;br&gt;
                  │&lt;br&gt;
                  ▼&lt;br&gt;
   [ In-Browser OCR Layer ]&lt;br&gt;
   • PDF.js (Digital PDF text layer)&lt;br&gt;
   • Tesseract.js (WASM client-side optical scan)&lt;br&gt;
                  │&lt;br&gt;
                  ▼&lt;br&gt;
   [ Deterministic Rule Engine (extract.js) ]&lt;br&gt;
   • Day-first dates (DD/MM/YYYY)&lt;br&gt;
   • 15-character GSTIN &amp;amp; OIDAR formats&lt;br&gt;
   • Combined CGST + SGST + IGST tax calculation&lt;br&gt;
                  │&lt;br&gt;
                  ▼&lt;br&gt;
   [ Local AI Layer (Ollama: qwen2.5:1.5b) ]&lt;br&gt;
   • Structured JSON extraction (format: "json")&lt;br&gt;
   • Merchant name normalization &amp;amp; category sorting&lt;br&gt;
                  │&lt;br&gt;
                  ▼&lt;br&gt;
   [ Anti-Hallucination Guardrail ]&lt;br&gt;
   • Rejects model amounts unless they appear in raw OCR text&lt;br&gt;
                  │&lt;br&gt;
                  ▼&lt;br&gt;
   [ Interactive Ledger &amp;amp; CSV / JSON Export ]&lt;/p&gt;

&lt;p&gt;Key Technical Decisions:&lt;br&gt;
Open-Source AI Model: qwen2.5:1.5b (~986 MB footprint) hosted locally via Ollama. It delivers structured JSON parsing (format: "json", temperature: 0) with zero cloud latency and no per-token costs.&lt;br&gt;
Client-Side OCR: Tesseract.js (WebAssembly OCR) and PDF.js handle text extraction entirely in browser memory.&lt;br&gt;
Anti-Hallucination Guardrail: Small 1.5B models can invent numbers if prompted loosely. LocalLedger strictly rejects any amount returned by the model unless that exact number appears in the raw OCR scan. If the model strays, the deterministic rule engine acts as the ground truth.&lt;br&gt;
GST Tax Preservation: In Indian tax invoices, CGST and SGST are listed as separate line items. The rule engine calculates the sum (CGST + SGST), while the merge logic prevents the AI from overwriting the combined sum with a single tax component, protecting the freelancer's Input Tax Credit.&lt;/p&gt;

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

&lt;p&gt;Financial documents are deeply personal and legally sensitive.&lt;br&gt;
If LocalLedger were built with closed APIs (such as OpenAI, Anthropic, or cloud document OCR endpoints):&lt;br&gt;
Privacy is Compromised: Sensitive client names, invoice values, bank account details, and government tax IDs would be transmitted across the wire to cloud data centers.&lt;br&gt;
Unsustainable for Side Hustles: Metered API fees make personal financial tools expensive to run for solo builders.&lt;br&gt;
Vendor Lock-In &amp;amp; Offline Failure: Cloud document APIs break the moment you are offline or an endpoint changes terms.&lt;br&gt;
Open innovation made it possible to combine open-weight models (Qwen 2.5), local runtime engines (Ollama), and browser-compiled tools (Tesseract.js WASM). Together, they prove that enterprise-grade financial extraction can run completely inside an 8 GB consumer laptop with zero telemetry and zero ongoing costs.&lt;/p&gt;

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

&lt;p&gt;This application was developed and debugged with Antigravity. During the pair programming session, the agent:&lt;br&gt;
Tested local Ollama inference and validated CORS connectivity from the browser.&lt;br&gt;
Identified and fixed a regex tokenization bug in extract.js where 4-digit unformatted numbers (like 7194.92) were being split into 719 and 4.92.&lt;br&gt;
Solved an Input Tax Credit bug in app.js to prevent combined CGST + SGST sums from being replaced by single-component AI outputs.&lt;br&gt;
Built automated end-to-end integration test runners in Node.js verifying 100% extraction accuracy across realistic test receipts.&lt;br&gt;
Crafted the modern financial dark/light UI, live ITC metric cards, and the side-by-side document preview modal.&lt;/p&gt;

&lt;h2&gt;
  
  
  My First User
&lt;/h2&gt;

&lt;p&gt;I shared LocalLedger with a freelance UI/UX designer who normally spends hours every quarter sorting PDF invoices and receipts for her chartered accountant.&lt;br&gt;
Her feedback:&lt;br&gt;
"Every tax season I end up with dozens of PDFs from Figma, Google Workspace, client cafes, and cab rides. I tested LocalLedger by dropping 15 invoices into the dropzone. It extracted the dates, GST amounts, and totals in seconds. Being able to preview the original PDF alongside the extracted numbers made verification effortless—and knowing my receipts never left my machine gave me total peace of mind."&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Hello Everyone</title>
      <dc:creator>Magatam Yogesh</dc:creator>
      <pubDate>Sun, 11 Oct 2026 05:37:41 +0000</pubDate>
      <link>https://dev.to/magatam_yogesh_338534b086/hello-everyone-4mm9</link>
      <guid>https://dev.to/magatam_yogesh_338534b086/hello-everyone-4mm9</guid>
      <description></description>
    </item>
    <item>
      <title>Hi everyone this is my first time using dev and it's all new over here i hope it goes well later</title>
      <dc:creator>Magatam Yogesh</dc:creator>
      <pubDate>Sun, 11 Oct 2026 05:37:17 +0000</pubDate>
      <link>https://dev.to/magatam_yogesh_338534b086/hi-everyone-this-is-my-first-time-using-dev-and-its-all-new-over-here-i-hope-it-goes-well-later-neb</link>
      <guid>https://dev.to/magatam_yogesh_338534b086/hi-everyone-this-is-my-first-time-using-dev-and-its-all-new-over-here-i-hope-it-goes-well-later-neb</guid>
      <description></description>
      <category>beginners</category>
      <category>community</category>
      <category>welcome</category>
    </item>
  </channel>
</rss>
