<?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: Abhinav Adarsh</title>
    <description>The latest articles on DEV Community by Abhinav Adarsh (@abhinavgautam08).</description>
    <link>https://dev.to/abhinavgautam08</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%2F3268079%2Fdc877ba4-b791-410a-bb2f-78b328a7d0fe.png</url>
      <title>DEV Community: Abhinav Adarsh</title>
      <link>https://dev.to/abhinavgautam08</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhinavgautam08"/>
    <language>en</language>
    <item>
      <title>Digital Afterlife: A Local, Sovereign Memory Vault &amp; Digital Ofrenda for Honoring Ancestors</title>
      <dc:creator>Abhinav Adarsh</dc:creator>
      <pubDate>Sat, 31 Oct 2026 19:42:45 +0000</pubDate>
      <link>https://dev.to/abhinavgautam08/digital-afterlife-a-local-sovereign-memory-vault-digital-ofrenda-for-honoring-ancestors-5dhm</link>
      <guid>https://dev.to/abhinavgautam08/digital-afterlife-a-local-sovereign-memory-vault-digital-ofrenda-for-honoring-ancestors-5dhm</guid>
      <description>&lt;p&gt;&lt;em&gt;This article is submitted to the **Hacktoberfest Open-Source AI Challenge: Week 4&lt;/em&gt;* (#hf26challenge).*&lt;/p&gt;




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

&lt;p&gt;&lt;strong&gt;Digital Afterlife — Memory Keeper&lt;/strong&gt; is a local, offline-first, sovereign family memory vault and digital remembrance builder (&lt;em&gt;digital ofrenda&lt;/em&gt;).&lt;/p&gt;

&lt;p&gt;In an era where family photos, voice memos, and historical letters are routinely entrusted to commercial cloud providers that monetize data, change pricing, shut down services, or lock families out, &lt;strong&gt;Digital Afterlife&lt;/strong&gt; guarantees permanent, sovereign preservation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;100% Local Execution&lt;/strong&gt;: Speech-to-text, speaker diarization, vector search, RAG question answering, and biography generation run on your own machine without a single byte leaving the host.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multimedia Memory Vault&lt;/strong&gt;: Ingests, validates, deduplicates, and organizes 17 distinct file extensions across photographs, audio recordings, family videos, documents, and written memoirs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Speech-to-Text &amp;amp; Diarization&lt;/strong&gt;: Transcribes oral histories on CPU using &lt;code&gt;faster-whisper&lt;/code&gt; quantized to &lt;code&gt;int8&lt;/code&gt;, clustering acoustic features into anonymous speaker labels with strict biometric consent enforcement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Semantic Search &amp;amp; RAG&lt;/strong&gt;: Indexes documents and transcripts using &lt;code&gt;multilingual-e5-small&lt;/code&gt; in ChromaDB with Reciprocal Rank Fusion (RRF) hybrid retrieval and Ollama (&lt;code&gt;qwen2.5:3b&lt;/code&gt;) grounded generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Digital Ofrenda &amp;amp; Storytelling&lt;/strong&gt;: Synthesizes verified multi-chapter biographies, interactive life timelines, curated collections, and dedicated &lt;strong&gt;Remembrance Pages&lt;/strong&gt; that celebrate departed loved ones.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Knowledge Encryption&lt;/strong&gt;: Full AES-256-GCM chunked streaming encryption, Argon2id key derivation, authenticated database field encryption, and auto-locking vault controls.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Interpretation of the Theme: "Ghost in the Machine"
&lt;/h2&gt;

&lt;p&gt;Week 4's theme asks us to &lt;em&gt;"build something spooky, or something that honors the past in the spirit of Día de los Muertos, with open-weight models or open-source AI."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Between October 31 (Halloween) and November 1–2 (Día de los Muertos), we reflect on the memories and stories of those who came before us. Día de los Muertos is not about fear; it is about keeping loved ones alive in our collective memory through &lt;em&gt;ofrendas&lt;/em&gt; adorned with photographs, personal reflections, favorite memories, and stories.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Digital Afterlife transforms the "ghost in the machine" from a metaphor of eerie surveillance into an act of enduring remembrance:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Digital Ofrenda&lt;/strong&gt;: Users create dedicated &lt;strong&gt;Remembrance Pages&lt;/strong&gt; for departed ancestors, curating their favorite photographs, handwritten recipes, oral memories, and personal tributes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Life Timelines&lt;/strong&gt;: Reconstructs an ancestor's life journey chronologically, linking milestone memories across generations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Oral History Preservation&lt;/strong&gt;: Allows elders to record voice memories that are transcribed locally, ensuring their spoken words, vernacular, and cadence remain preserved forever.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ethical Grounding&lt;/strong&gt;: The AI is strictly prohibited from inventing unrecorded memories or fabricating quotes. It acts solely as an evidence-grounded custodian of authentic family truth.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Demo &amp;amp; Walkthrough
&lt;/h2&gt;

&lt;p&gt;Because Digital Afterlife is an air-gapped, privacy-first local application, there is no public web-hosted server tracking users. The walkthrough below illustrates the primary local workflows:&lt;/p&gt;

&lt;h3&gt;
  
  
  A. The Memory Vault
&lt;/h3&gt;

&lt;p&gt;Users upload photographs, audio interviews, scanned documents, and home videos. EXIF GPS coordinates are automatically stripped for family privacy while capture dates and metadata are indexed.&lt;/p&gt;

&lt;h3&gt;
  
  
  B. Speech-to-Text &amp;amp; Interactive Audio Timeline
&lt;/h3&gt;

&lt;p&gt;An audio recording of a grandparent telling a childhood story is queued. The local &lt;code&gt;faster-whisper&lt;/code&gt; engine transcribes the audio, detects the language, and partitions segments. Users click timestamp chips (&lt;code&gt;[▶ 00:15 - 00:32]&lt;/code&gt;) to seek audio playback directly.&lt;/p&gt;

&lt;h3&gt;
  
  
  C. Ask Your Memories (Semantic RAG)
&lt;/h3&gt;

&lt;p&gt;Users ask: &lt;em&gt;"Where did grandfather live before moving to the city?"&lt;/em&gt;&lt;br&gt;
The system performs hybrid vector + lexical retrieval, extracting verifiable excerpts from scanned letters and transcripts, answering with direct citations that link back to the source documents.&lt;/p&gt;
&lt;h3&gt;
  
  
  D. Remembrance Page (Digital Ofrenda)
&lt;/h3&gt;

&lt;p&gt;Visiting a departed relative's Remembrance Page presents a commemorative shrine featuring:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hero portrait and biographical summary&lt;/li&gt;
&lt;li&gt;Favorite memories and milestone events&lt;/li&gt;
&lt;li&gt;Personal tributes and family notes&lt;/li&gt;
&lt;li&gt;Direct links to original voice recordings and letters&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  E. Vault Lock &amp;amp; Zeroization
&lt;/h3&gt;

&lt;p&gt;Clicking &lt;strong&gt;Lock Vault&lt;/strong&gt; zeroes the Data Encryption Key in memory. All sensitive endpoints return &lt;code&gt;HTTP 423 Locked&lt;/code&gt;. The vault remains inaccessible until unlocked with the master password or 32-character recovery key.&lt;/p&gt;


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

&lt;p&gt;Digital Afterlife is built with an open-source, offline-first technology stack:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌────────────────────────────────────────────────────────┐
│            Frontend (React 19, TypeScript, Vite)       │
│      Dark Obsidian &amp;amp; Gold UI • Lucide • Tailwind CSS   │
└───────────────────────────┬────────────────────────────┘
                            │ (Local HTTP 127.0.0.1:8000)
┌───────────────────────────▼────────────────────────────┐
│                  Backend (FastAPI, Python 3.12)        │
├────────────────────────────────────────────────────────┤
│  Security &amp;amp; Crypto: AES-256-GCM Streaming, Argon2id    │
│  Speech Engine: faster-whisper (CPU int8), PyAV        │
│  Semantic Search: multilingual-e5-small (ONNX)         │
│  Local RAG: ChromaDB + Ollama (Qwen 2.5 3B Instruct)   │
│  Database: SQLite (WAL mode, authenticated fields)     │
└────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Key Technical Implementations
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Streaming AES-256-GCM (&lt;code&gt;FileEncryptor&lt;/code&gt;)&lt;/strong&gt;: Media files are encrypted in 64 KB chunks (&lt;code&gt;DAENC1&lt;/code&gt; format) with derived nonces (&lt;code&gt;base_nonce XOR chunk_index&lt;/code&gt;) and AAD chunk position binding to prevent tampering, truncation, or chunk reordering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Field-Level Encryption (&lt;code&gt;FieldCipher&lt;/code&gt;)&lt;/strong&gt;: SQLite sensitive text columns (&lt;code&gt;description&lt;/code&gt;, &lt;code&gt;extracted_text&lt;/code&gt;, &lt;code&gt;transcript_text&lt;/code&gt;, &lt;code&gt;content&lt;/code&gt;) are encrypted in &lt;code&gt;ENC:v1:&lt;/code&gt; authenticated envelopes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Argon2id Key Derivation&lt;/strong&gt;: High-cost key derivation (&lt;code&gt;m=64MB, t=3, p=4&lt;/code&gt;) protects the master passphrase and generates a 128-bit emergency recovery key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Biometric Consent Framework&lt;/strong&gt;: Biometric speaker profiles cannot be created without prior explicit consent (&lt;code&gt;SpeakerConsent&lt;/code&gt;), and revoking consent immediately purges acoustic vectors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unified Encrypted Backups&lt;/strong&gt;: Backups bundle the database, security envelope, and media into an encrypted &lt;code&gt;.da-backup&lt;/code&gt; archive created entirely in RAM (&lt;code&gt;io.BytesIO&lt;/code&gt;), leaving no unencrypted temp files on disk.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  5. Why Open Innovation Matters
&lt;/h2&gt;

&lt;p&gt;Why does open innovation matter for preserving family memories?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Permanence Without Subscription Hostage&lt;/strong&gt;: Commercial genealogy and photo platforms frequently pivot, raise subscription rates, or shut down. If a company goes out of business, family memories can disappear. Open-source software running open-weight models on standard consumer hardware lasts as long as your hardware does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Absolute Personal Privacy&lt;/strong&gt;: Family memories include birth certificates, handwritten love letters, sensitive photographs, medical records, and voice signatures. Entrusting these to cloud AI APIs means submitting family intimate histories to corporate servers. Open innovation lets families run state-of-the-art AI on their own machines without sacrificing privacy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Works With the Lights (and Internet) Off&lt;/strong&gt;: Digital Afterlife runs without an active internet connection. In remote areas, during network outages, or on air-gapped computers, your legacy remains accessible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Sovereignty&lt;/strong&gt;: Your memories are stored in open formats (SQLite, standard media, JSON envelopes) with exportable encrypted backups. You own your data completely.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  6. Testing &amp;amp; Verification Instructions for Judges
&lt;/h2&gt;

&lt;p&gt;To verify the project locally:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Prerequisites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.12+&lt;/li&gt;
&lt;li&gt;Node.js 18+&lt;/li&gt;
&lt;li&gt;Git&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Setup
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clone the repository&lt;/span&gt;
git clone https://github.com/abhinavgautam08/digital-afterlife.git
&lt;span class="nb"&gt;cd &lt;/span&gt;digital-afterlife

&lt;span class="c"&gt;# Setup backend&lt;/span&gt;
backend&lt;span class="se"&gt;\.&lt;/span&gt;venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\a&lt;/span&gt;ctivate      &lt;span class="c"&gt;# or python -m venv .venv&lt;/span&gt;
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; backend/requirements.txt
python scripts/init_db.py

&lt;span class="c"&gt;# Setup frontend&lt;/span&gt;
&lt;span class="nb"&gt;cd &lt;/span&gt;frontend
npm &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Run Automated Regression Test Suite
&lt;/h3&gt;

&lt;p&gt;Run the full backend test suite (&lt;strong&gt;132 passing tests&lt;/strong&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;backend&lt;span class="se"&gt;\.&lt;/span&gt;venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\p&lt;/span&gt;ytest.exe &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify frontend build:&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="nb"&gt;cd &lt;/span&gt;frontend
npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Launch Application
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; &lt;code&gt;uvicorn backend.app.main:app --host 127.0.0.1 --port 8000&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; &lt;code&gt;npm run dev&lt;/code&gt; in &lt;code&gt;frontend/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;http://127.0.0.1:5173&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Test vault setup at &lt;code&gt;/settings&lt;/code&gt;, create a remembrance page, upload an oral history, and test locking/unlocking.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  7. Links &amp;amp; Repository
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/abhinavgautam08/digital-afterlife" rel="noopener noreferrer"&gt;https://github.com/abhinavgautam08/digital-afterlife&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License&lt;/strong&gt;: MIT License (Open Source)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built for&lt;/strong&gt;: Hacktoberfest 2026 Week 4 DEV Challenge (#hf26challenge)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>hf26challenge</category>
      <category>opensource</category>
      <category>ai</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Sloth.ai: The Slow, Steady &amp; Private AI Assistant That Tames Desktop Chaos</title>
      <dc:creator>Abhinav Adarsh</dc:creator>
      <pubDate>Sun, 25 Oct 2026 12:57:24 +0000</pubDate>
      <link>https://dev.to/abhinavgautam08/slothai-the-slow-steady-private-ai-assistant-that-tames-desktop-chaos-3g7p</link>
      <guid>https://dev.to/abhinavgautam08/slothai-the-slow-steady-private-ai-assistant-that-tames-desktop-chaos-3g7p</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;Sloths move deliberately, conserve energy, and let the world rush around them. In honor of International Sloth Day and the "Slow and Steady" challenge theme, &lt;strong&gt;Sloth.ai&lt;/strong&gt; channels that philosophy: a privacy-first, 100% offline desktop productivity assistant that automates the tedious digital chores you keep putting off so you can be productively lazy.&lt;/p&gt;

&lt;p&gt;Every day, knowledge workers lose hours to two repetitive cognitive bottlenecks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Document Overload&lt;/strong&gt;: Wading through voluminous meeting notes, RFCs, technical specs, and project briefs just to find the action items or executive takeaways.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Desktop &amp;amp; Downloads Entropy&lt;/strong&gt;: Accumulating hundreds of unorganized downloads, screenshots, and data files because dragging and dropping them into folders is tedious and error-prone.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;While closed commercial cloud AI tools exist, routing sensitive files through proprietary cloud APIs creates serious trade-offs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Privacy Exposure&lt;/strong&gt;: Uploading confidential contracts, personal journals, financial summaries, or internal code to third-party servers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Metered Subscriptions&lt;/strong&gt;: Recurring token costs and rate-limits penalizing routine local utility tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Internet Dependence&lt;/strong&gt;: Total failure when working on trains, flights, or air-gapped workstations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accidental Data Loss&lt;/strong&gt;: Brittle file organization scripts that lack transactional undo history.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Sloth.ai&lt;/strong&gt; solves this by harnessing local open-weight instruction models running directly on your computer via &lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt;. It pairs local intelligence with strict safety guarantees:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📄 &lt;strong&gt;Document Assistant with Bounded Map-Reduce&lt;/strong&gt;: Ingests &lt;code&gt;.txt&lt;/code&gt;, &lt;code&gt;.md&lt;/code&gt;, and &lt;code&gt;.pdf&lt;/code&gt; files in-memory. For long documents exceeding single-shot context windows, it automatically decomposes the text at natural sentence/paragraph boundaries, generates intermediate chunk summaries, and reduces them into high-signal executive briefings, key bullet points, or actionable checklists.&lt;/li&gt;
&lt;li&gt;🗂️ &lt;strong&gt;Safe File Organizer with SQLite Audit &amp;amp; Rollback&lt;/strong&gt;: Declutters messy directories by categorizing loose files into structured folders (&lt;code&gt;Documents&lt;/code&gt;, &lt;code&gt;Code_Scripts&lt;/code&gt;, &lt;code&gt;Images&lt;/code&gt;, &lt;code&gt;Spreadsheets_Data&lt;/code&gt;, etc.). Includes a dry-run simulation mode, automatic collision renaming (&lt;code&gt;(1)&lt;/code&gt; suffix), path traversal guards, and a persistent SQLite transaction log (&lt;code&gt;organizer_history.db&lt;/code&gt;) that enables verified two-step rollback. It refuses to overwrite any newly created files at original locations.&lt;/li&gt;
&lt;li&gt;🔒 &lt;strong&gt;100% Offline &amp;amp; Private&lt;/strong&gt;: Zero external cloud AI requests, zero telemetry, and zero tracking.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Demo &amp;amp; Walkthrough
&lt;/h2&gt;

&lt;p&gt;Sloth.ai runs locally with a modern dark dashboard (&lt;code&gt;http://localhost:5173&lt;/code&gt;) backed by a high-performance FastAPI service (&lt;code&gt;http://127.0.0.1:8000&lt;/code&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  3-Minute Verification Workflow
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Health &amp;amp; Model Readiness&lt;/strong&gt;: Launch the app. The header immediately detects your local Ollama instance and active open-weight model (e.g. &lt;code&gt;codellama:latest&lt;/code&gt; or &lt;code&gt;llama3.2&lt;/code&gt;) with a green &lt;strong&gt;"100% Local"&lt;/strong&gt; badge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document Synthesis&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Drag and drop a document (e.g., meeting notes, project brief, or PDF).&lt;/li&gt;
&lt;li&gt;The in-memory parser extracts character, word, and line counts instantly without storing files on disk.&lt;/li&gt;
&lt;li&gt;Choose a synthesis mode: &lt;em&gt;Executive Summary&lt;/em&gt;, &lt;em&gt;Key Points&lt;/em&gt;, &lt;em&gt;Action Checklist&lt;/em&gt;, &lt;em&gt;Dates &amp;amp; Deadlines&lt;/em&gt;, or &lt;em&gt;Custom Prompt&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Generate Insights&lt;/strong&gt;. A real-time progress state informs you that local CPU/GPU synthesis is active. Once generated, inspect the synthesis strategy (&lt;code&gt;Single-Shot&lt;/code&gt; or &lt;code&gt;Map-Reduce&lt;/code&gt;) and copy or export Markdown in one click.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safe File Organization &amp;amp; Dry-Run&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Navigate to &lt;strong&gt;File Organizer&lt;/strong&gt; and enter a messy directory (e.g., your &lt;code&gt;Downloads&lt;/code&gt; or sandbox folder).&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Scan Directory&lt;/strong&gt; to preview proposed folder allocations.&lt;/li&gt;
&lt;li&gt;Run a &lt;strong&gt;Dry-Run Simulation&lt;/strong&gt;: Observe the simulated relocations with zero disk mutations.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Execution &amp;amp; Confirmed Rollback&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Uncheck dry-run, authorize filesystem moves, and execute.&lt;/li&gt;
&lt;li&gt;Every file move is committed with a unique batch ID in local SQLite storage.&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;Audit History &amp;amp; Undo&lt;/strong&gt;, click &lt;strong&gt;Preview Undo&lt;/strong&gt; to run preflight validation (confirming destination files exist and original locations are unoccupied), and execute &lt;strong&gt;Confirmed Rollback&lt;/strong&gt; to seamlessly restore all files.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/abhinavgautam08/Sloth.ai" rel="noopener noreferrer"&gt;https://github.com/abhinavgautam08/Sloth.ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License&lt;/strong&gt;: &lt;a href="https://opensource.org/licenses/MIT" rel="noopener noreferrer"&gt;MIT License&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How I Built It: Local-First Architecture
&lt;/h2&gt;

&lt;p&gt;Sloth.ai is engineered with a strict separation of concerns, designed for responsiveness, reliability, and security:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Sloth.ai Architecture
┌────────────────────────────────────────────────────────┐
│               Frontend: React 19 + Vite                │
│  (Tailwind CSS, Lucide Icons, Real-Time Progress, UI)   │
└───────────────────────────┬────────────────────────────┘
                            │ REST / JSON (HTTP)
┌───────────────────────────▼────────────────────────────┐
│                  Backend: FastAPI                      │
│   ├── Document Service (In-Memory TXT/MD/PDF Parsing)  │
│   ├── AI Service (Bounded Map-Reduce Chunking)         │
│   └── Organizer Service (Path Hardening &amp;amp; Dry-Run)     │
└─────────────┬────────────────────────────┬─────────────┘
              │ Local API (11434)          │ ACID Transactions
┌─────────────▼──────────────┐   ┌─────────▼─────────────┐
│    Ollama Local Runtime    │   │ SQLite Audit Engine   │
│ (Llama 3.2, CodeLlama 7B)  │   │(organizer_history.db) │
└────────────────────────────┘   └───────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  1. Frontend (React 19 &amp;amp; Vite 6)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Modern Responsive Design&lt;/strong&gt;: Dark theme (&lt;code&gt;#090a0f&lt;/code&gt;) with amber/gold accents, glassmorphic headers, and accessible typography.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State Management&lt;/strong&gt;: Reactive status polling for Ollama availability, interactive dry-run diffs, and modal dialogs for safe rollback confirmation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Production Chunking&lt;/strong&gt;: Optimized Vite production build (877 kB minified, 231 kB gzipped) with zero console warnings.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Backend (Python 3.12 &amp;amp; FastAPI)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In-Memory Document Extraction&lt;/strong&gt;: Extracts raw text from &lt;code&gt;.txt&lt;/code&gt;, &lt;code&gt;.md&lt;/code&gt;, and &lt;code&gt;.pdf&lt;/code&gt; files using &lt;code&gt;pypdf&lt;/code&gt; with strict size limits (&amp;lt;= 10 MB) and zero disk persistence of user documents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bounded Map-Reduce Summarization Pipeline&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Automatically triggers when text length exceeds 4,000 characters.&lt;/li&gt;
&lt;li&gt;Chunks text along sentence and paragraph boundaries (&lt;code&gt;.\n&lt;/code&gt;, &lt;code&gt;?\n&lt;/code&gt;, &lt;code&gt;!\n&lt;/code&gt;, &lt;code&gt;\n\n&lt;/code&gt;) to preserve context.&lt;/li&gt;
&lt;li&gt;Bounds total chunks (&amp;lt;= 20) and input size (&amp;lt;= 250,000 chars) to prevent resource exhaustion.&lt;/li&gt;
&lt;li&gt;Maps intermediate summaries across chunks and performs a final reduction synthesis tailored to the selected mode.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security &amp;amp; Path Hardening&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Resolves canonical absolute paths and strictly prevents directory traversal (&lt;code&gt;../&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Blocks operations targeting critical system roots (&lt;code&gt;C:\Windows&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt;, &lt;code&gt;/etc&lt;/code&gt;, drive roots).&lt;/li&gt;
&lt;li&gt;Handles naming collisions gracefully via automatic index numbering (&lt;code&gt;filename (1).ext&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Persistent SQLite Audit Engine (&lt;code&gt;history_db.py&lt;/code&gt;)&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Records batch ID, ISO timestamps, source/destination paths, categories, file sizes, and rollback status in an ACID SQLite database (&lt;code&gt;organizer_history.db&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Validates preflight conditions before reverting moves: refuses to overwrite files if an original path was reoccupied by another file.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;Open innovation is what makes Sloth.ai viable. When we depend entirely on centralized cloud AI, we surrender control over our data, our tools, and our costs. Open-weight models shift the paradigm:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Absolute Data Confidentiality&lt;/strong&gt;: Medical records, unreleased source code, personal financial spreadsheets, and proprietary strategy briefs never leave your machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;True Offline Autonomy&lt;/strong&gt;: Whether on an airplane, in an air-gapped data facility, or during an ISP outage, Sloth.ai operates at 100% capacity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Marginal Cost&lt;/strong&gt;: After downloading an open-weight model once, generating 10 or 10,000 summaries costs $0.00.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resilience &amp;amp; Model Choice&lt;/strong&gt;: You aren't locked into a single provider's deprecation schedule, pricing surge, or filtering whims. You can switch from &lt;code&gt;llama3.2&lt;/code&gt; to &lt;code&gt;codellama&lt;/code&gt;, &lt;code&gt;mistral&lt;/code&gt;, or &lt;code&gt;phi3&lt;/code&gt; with a single click.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;By investing in deliberate local automation, Sloth.ai delivers genuine time savings for the productively lazy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;15-Page Document Triage in Under 2 Minutes&lt;/strong&gt;: Instead of reading a 5,000-word product specification or meeting transcript manually (typically 15–20 minutes of effort), Sloth.ai extracts an actionable checklist and executive summary directly on your machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Organizing Messy Folders in 2 Seconds&lt;/strong&gt;: Sorting a &lt;code&gt;Downloads&lt;/code&gt; folder of 50+ mixed PDFs, code snippets, CSVs, and images usually takes 5 to 10 minutes of manual dragging. Sloth.ai categorizes the entire folder instantly—and if you change your mind, the SQLite rollback engine restores everything with a single click.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Limitations &amp;amp; Honest Local Assessment
&lt;/h2&gt;

&lt;p&gt;To maintain honesty and technical rigor:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Hardware &amp;amp; Inference Latency&lt;/strong&gt;: Open-weight LLMs run on local hardware. On an Apple Silicon Mac or dedicated NVIDIA GPU, generation takes 3–10 seconds. On consumer CPUs without GPU offloading, 7B parameter models (such as &lt;code&gt;codellama&lt;/code&gt;) can take 60–75 seconds for long documents. We recommend &lt;code&gt;llama3.2&lt;/code&gt; (3B parameters) for older or CPU-bound laptops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scanned Image PDFs vs. Text PDFs&lt;/strong&gt;: Sloth.ai uses pure-Python &lt;code&gt;pypdf&lt;/code&gt; for in-memory extraction. This extracts selectable font text streams with zero external dependencies. However, scanned image-only PDFs (flat raster scans without an embedded OCR layer) require an external OCR engine (like Tesseract), which is not bundled by default to avoid heavy native binary dependencies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single Active Model Host&lt;/strong&gt;: The application interfaces with local Ollama daemon endpoints (&lt;code&gt;http://localhost:11434&lt;/code&gt;), requiring Ollama to be installed and running on the host machine.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Setup &amp;amp; How to Run Locally
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.10+ (tested on Python 3.12.10)&lt;/li&gt;
&lt;li&gt;Node.js 18+ (tested on Node v22.23.2 &amp;amp; npm 10.9.8)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt; installed and running&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  1. Download Open-Weight Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Pull your preferred model (choose one):&lt;/span&gt;
ollama run llama3.2    &lt;span class="c"&gt;# Lightweight 3B model (recommended for CPU laptops)&lt;/span&gt;
ollama run codellama   &lt;span class="c"&gt;# 7B model for code &amp;amp; structured analysis&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Start Backend
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# In the project root:&lt;/span&gt;
python &lt;span class="nt"&gt;-m&lt;/span&gt; venv .venv

&lt;span class="c"&gt;# Activate virtual environment:&lt;/span&gt;
&lt;span class="c"&gt;# On Windows PowerShell:&lt;/span&gt;
.venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\A&lt;/span&gt;ctivate.ps1
&lt;span class="c"&gt;# On Linux/macOS:&lt;/span&gt;
&lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate

&lt;span class="c"&gt;# Install dependencies:&lt;/span&gt;
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; backend/requirements.txt

&lt;span class="c"&gt;# Launch FastAPI backend:&lt;/span&gt;
python &lt;span class="nt"&gt;-m&lt;/span&gt; uvicorn backend.app.main:app &lt;span class="nt"&gt;--port&lt;/span&gt; 8000 &lt;span class="nt"&gt;--host&lt;/span&gt; 127.0.0.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The backend starts on &lt;code&gt;http://127.0.0.1:8000&lt;/code&gt; with Swagger docs at &lt;code&gt;http://127.0.0.1:8000/docs&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Start Frontend
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# In a new terminal:&lt;/span&gt;
&lt;span class="nb"&gt;cd &lt;/span&gt;frontend
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;http://localhost:5173&lt;/code&gt; in your browser.&lt;/p&gt;




&lt;h2&gt;
  
  
  Verification &amp;amp; Automated Test Results
&lt;/h2&gt;

&lt;p&gt;Every claim in this submission is verified by repeatable automated tests and live integration benchmarks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend Pytest Suite&lt;/strong&gt;: &lt;strong&gt;31 passed&lt;/strong&gt; out of 31 tests (100% pass rate in ~13.7 seconds).

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;test_ai_service.py&lt;/code&gt; (9 tests): Offline fallback, live synthesis, bounded map-reduce chunking, unicode/whitespace parsing, input ceiling guards, and missing model errors.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;test_document_service.py&lt;/code&gt; (6 tests): &lt;code&gt;.txt&lt;/code&gt;, &lt;code&gt;.md&lt;/code&gt;, and &lt;code&gt;.pdf&lt;/code&gt; in-memory extraction, size ceilings, unsupported extensions, and empty file validation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;test_organizer_service.py&lt;/code&gt; (5 tests): Directory scanning, category mapping, dry-run simulation, real moves, collision renaming (&lt;code&gt;(1)&lt;/code&gt;), and system path traversal prevention.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;test_undo_rollback.py&lt;/code&gt; (9 tests): Real moves + rollback, confirmation enforcement, duplicate rollback prevention, occupied destination collision guards, missing file alerts, SQLite persistence across restarts, and batch ID 404 validation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;test_health.py&lt;/code&gt; (2 tests): Health and readiness endpoints.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend Build&lt;/strong&gt;: &lt;code&gt;tsc -b &amp;amp;&amp;amp; vite build&lt;/code&gt; compiles cleanly with zero TypeScript errors or warnings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live Local Inference&lt;/strong&gt;: Verified live end-to-end against local Ollama running &lt;code&gt;codellama:latest&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Primary Entry&lt;/strong&gt;: Hacktoberfest 2026 Week 3: "Slow and Steady" Open-Source AI Challenge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Focus&lt;/strong&gt;: Pure open-source AI utility, local inference, offline privacy, and safe user-centric automation.&lt;/li&gt;
&lt;/ul&gt;

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