<?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: Megh Deb</title>
    <description>The latest articles on DEV Community by Megh Deb (@iammeghdeb).</description>
    <link>https://dev.to/iammeghdeb</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%2F3947029%2Fb1ff88ab-0e9a-4a79-a77a-1496b8275e92.jpg</url>
      <title>DEV Community: Megh Deb</title>
      <link>https://dev.to/iammeghdeb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iammeghdeb"/>
    <language>en</language>
    <item>
      <title>How I built Panther Panchali: The Living Canvas</title>
      <dc:creator>Megh Deb</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:21:26 +0000</pubDate>
      <link>https://dev.to/iammeghdeb/how-i-built-panther-panchali-the-living-canvas-12lp</link>
      <guid>https://dev.to/iammeghdeb/how-i-built-panther-panchali-the-living-canvas-12lp</guid>
      <description>&lt;p&gt;Most of us own at least one photograph of a place we cannot name. A crumbling arched gateway in a mango grove. A terracotta frieze catching the late afternoon light. A tea terrace disappearing into mist. The image survives; the name, district and story quietly evaporate.&lt;/p&gt;

&lt;p&gt;West Bengal is full of such lacunae. Mainstream travel portals dutifully list the famous destinations and skip the quiet river ghats, village temples and half forgotten palaces scattered across the state’s &lt;strong&gt;23 districts&lt;/strong&gt;. That gap is why I built &lt;strong&gt;Panther Panchali: The Living Canvas&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Upload one photograph. The app identifies the place, flies you there on a map, tells you its story, and brings the still image closer to life.&lt;/p&gt;

&lt;p&gt;It is open source under the &lt;strong&gt;MIT license&lt;/strong&gt;. Near the end, I explain how you can help, without requiring a blood oath, though enthusiasm is welcome.&lt;/p&gt;

&lt;h2&gt;
  
  
  What It Does
&lt;/h2&gt;

&lt;p&gt;Upload a photograph of a place in West Bengal, and the app walks you through a deliberately theatrical sequence.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It identifies the landmark with multimodal AI and returns the name, district, address and exact coordinates.&lt;/li&gt;
&lt;li&gt;It flies you there on an OpenStreetMap view, starting with all of India, descending into the Bengal delta, then landing on the exact site.&lt;/li&gt;
&lt;li&gt;It writes a literary overview of roughly &lt;strong&gt;300 words&lt;/strong&gt; in plain, flowing prose.&lt;/li&gt;
&lt;li&gt;It adds two deeper chronicles, one on scenic beauty and one on historical significance, only when the place genuinely warrants them.&lt;/li&gt;
&lt;li&gt;It predicts the travel mood: atmosphere, expected sights, sounds and smells, and the best season to visit.&lt;/li&gt;
&lt;li&gt;It narrates the story aloud with text to speech.&lt;/li&gt;
&lt;li&gt;It shows live weather at the site and a pure satellite view with no road overlays.&lt;/li&gt;
&lt;li&gt;It saves the place to a personal journey gallery, with a public share link that anyone can open without signing in.&lt;/li&gt;
&lt;li&gt;It turns the photograph into a short cinematic video with ambient sound, using Cloudinary generative AI.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you upload a photograph from outside West Bengal, the app still recognises the place. It then politely explains that it is devoted to the 23 districts and invites you to try a Bengal photograph instead. &lt;em&gt;No offence intended; borders are simply part of the product spec.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Unnamed places are a real and unsolved problem.&lt;/strong&gt; Photo search works well for famous landmarks. For a small temple in Bankura or a ghat in Nadia, it either fails or returns something generic. People want a name, a location and a story for the place they actually photographed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Narrow focus beats wide ambition.&lt;/strong&gt; Instead of promising to identify anything on Earth, I committed to one region. That lets me tune the AI with real Bengal vocabulary: terracotta plaques, &lt;em&gt;Chala&lt;/em&gt; and &lt;em&gt;Ratna&lt;/em&gt; temples, laterite soil, Nawabi palaces, tea gardens. It lets me build the product around one cultural identity. It also lets me decline out of scope places politely, which keeps the archive coherent rather than cosmically vague.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tooling has only recently become good enough.&lt;/strong&gt; A multimodal model that can read architecture and light, a generative image to video service, and a modern full stack framework that lets one developer ship all of it together are all new. As far as I could find, I have not seen another project that combines photo based place recognition, literary storytelling, a cinematic fly in map, spoken narration and generated motion for West Bengal specifically. That is my first mover bet. I would be glad to be corrected, so if you know of something similar, please tell me in the comments.&lt;/p&gt;

&lt;p&gt;A bet is not a moat, though. Being early is only worth something if the project keeps moving. That is a large reason I am opening it up. &lt;em&gt;A head start with better lighting is still a head start.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Design Rules
&lt;/h2&gt;

&lt;p&gt;Before writing any code, I set four rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A place should be an experience, not a database row.&lt;/strong&gt; That is why the app favours prose over bullet lists, uses an editorial serif design, and sends a map camera travelling to the place instead of jumping to a pin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The language should be simple.&lt;/strong&gt; I told the AI to use clear, vivid English that anyone can read, so the stories reach as many people as possible. Clarity is a feature, not a compromise.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sign in should be simple too.&lt;/strong&gt; Google is the only login method. Less to maintain, less to get wrong, fewer creative ways to break authentication on a Tuesday.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The visual identity should be one thing.&lt;/strong&gt; I call it the &lt;strong&gt;Morning Paper palette&lt;/strong&gt;: warm paper tones, terracotta and soft gold. I wrote every design and architecture rule into a guidelines file in the project, so both humans and AI coding assistants stay consistent. &lt;em&gt;Adult supervision, but for CSS.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework:&lt;/strong&gt; Next.js 16 with the App Router, TypeScript and React 19&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styling:&lt;/strong&gt; Tailwind CSS v4 with Fraunces, Newsreader and Instrument Sans fonts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recognition and storytelling:&lt;/strong&gt; Google Gemini with multimodal input and structured JSON output&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Media:&lt;/strong&gt; Cloudinary for storage, delivery, colour extraction and image to video&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maps:&lt;/strong&gt; Leaflet with OpenStreetMap tiles, plus Esri World Imagery for satellite views&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Weather:&lt;/strong&gt; Open Meteo, which needs no API key&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Narration:&lt;/strong&gt; Google Cloud Text to Speech with an Indian English voice&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentication:&lt;/strong&gt; Auth.js with NextAuth v5 and Google OAuth&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; MongoDB&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tooling:&lt;/strong&gt; pnpm and Biome&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Teaching Gemini to behave.&lt;/strong&gt; The heart of the app is one function. It sends the uploaded photograph and a long, carefully written prompt to Gemini and asks for structured JSON in return. If the main model call fails, the code falls back to an older, more stable Gemini model, so a model hiccup does not become a user facing faceplant.&lt;/p&gt;

&lt;p&gt;Most of the quality comes from the prompt. The model must first decide whether the place is in West Bengal, and each answer triggers different instructions. The 300 word overview must contain no Markdown at all, because I want it to read like a story and also to be clean input for text to speech. The scenic and historical sections are optional and return empty when they do not apply, since a city monument may have no landscape worth describing and a forest may have no architecture. The writing style is interactive storytelling without an artificial persona, so the text invites the reader in without a “Hello, I’m your guide” voice.&lt;/p&gt;

&lt;p&gt;After the response arrives, I clean it, parse it into a typed structure, and fall back to safe default coordinates if the model returns something unusable. Because everything flows through one typed contract, the interface never has to guess what it is getting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A map that makes you arrive.&lt;/strong&gt; I wanted arrival to feel earned. The map component runs three timed stages. It begins with a view of all of India, glides into West Bengal over a few seconds, then descends onto the exact landmark, where a pulsing terracotta marker drops and a popup opens. A replay button lets you watch the flight again. A second map component swaps the tiles for satellite imagery to give a clean, road free view of the terrain. Since the map library depends on the browser, both maps load only on the client side.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Narration, weather and sharing.&lt;/strong&gt; For narration, a server route strips formatting from the text, sends it to Google Cloud Text to Speech at a slightly slowed pace so every word is clear, and falls back to a second voice if the first runs into a quota. Responses are cached so the same story is not synthesised twice. Weather comes from Open Meteo using the landmark’s coordinates, with a short timeout so a slow weather service can never hang the page. Saved places live in MongoDB. Anyone with a share link can open a saved place without signing in, while the rest of the app stays protected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Authentication at the edge.&lt;/strong&gt; Authentication is split into two parts. A lightweight configuration runs in the middleware, and a fuller setup handles Google sign in, creates or updates the user record in MongoDB, and issues sessions. The middleware protects the guide, journeys and profile pages, with one deliberate exception for the public share pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Design written down.&lt;/strong&gt; The guidelines file records the folder structure, exact colour tokens, font roles, icon set and navigation behaviour. Navigation is a floating icon dock on desktop and a foldable drawer on mobile, and it hides itself on the sign in screen. Writing this down meant I could work with AI coding assistants without the interface drifting away from its identity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cloudinary: The Part That Makes It Feel Alive
&lt;/h2&gt;

&lt;p&gt;Cloudinary is what turns this project from a clever lookup tool into something that feels alive. It does five distinct jobs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Upload, storage and delivery.&lt;/strong&gt; Every photograph goes to Cloudinary first, into a dedicated folder, and comes back with a secure CDN link and identifiers. The app stores those and serves every image from Cloudinary, so the gallery and public share pages load quickly from a CDN instead of leaning on my own database. If credentials are ever missing, the app falls back gracefully instead of crashing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A colour palette taken from the photograph itself.&lt;/strong&gt; During upload I ask Cloudinary to analyse the image and report its dominant colours. I clean up the values, remove duplicates and keep five, with a default Bengal palette as a safety net. Each place therefore gets its own atmospheric palette pulled from its own picture. It is a small touch, but it ties every page to the photograph it came from.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The bridge to video.&lt;/strong&gt; Cloudinary’s image to video service identifies images by an asset identifier instead of a web address. I wrote a resolver that tries several routes to find that identifier: a direct lookup by public ID, extraction from the delivery link, and re uploading as a last resort. This makes the video feature work even for places saved earlier.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;From photograph to cinematic video.&lt;/strong&gt; This is the headline feature. The app asks Cloudinary to generate an eight second, 1080p, widescreen video with synthesised ambient audio from the saved photograph. Each place gets two styles. &lt;strong&gt;Serene Atmosphere&lt;/strong&gt; offers gentle morning mist and a slow drift. &lt;strong&gt;Golden Hour Sunset&lt;/strong&gt; offers warm rays and a dramatic sky. Generation is asynchronous, so the app starts a job, checks on it every few seconds, and saves the finished video link against the place. Each style is therefore rendered only once and then reused.&lt;/p&gt;

&lt;p&gt;I want to be upfront about one thing. The whole pipeline is built end to end, but the interface currently ships with the video feature behind a switch, so by default it shows a “Coming Soon” state. Turning it on is a configuration change, and making it production ready is part of the roadmap below. &lt;em&gt;The machinery exists; the curtain is simply still down.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Brand and image plumbing.&lt;/strong&gt; Cloudinary also hosts the brand logo used for the browser icon and the mobile home screen icon, and its domain is allowed in the Next.js image setup so photos benefit from the framework’s image optimisation.&lt;/p&gt;

&lt;p&gt;In one sentence: without Cloudinary, this is a recognition app that returns text; with it, the same photograph becomes a stored, palette matched, shareable and soon animated memory of a place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Roadmap
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Switch on video generation for everyone, with sensible limits and clearer progress feedback.&lt;/li&gt;
&lt;li&gt;Add a proper automated test suite. There are no tests yet, and the API routes and AI response parsing need them first.&lt;/li&gt;
&lt;li&gt;Harden the backend with stronger authorisation checks, rate limiting, upload limits and safer handling of model output.&lt;/li&gt;
&lt;li&gt;Measure recognition accuracy against a labelled set of Bengal landmarks, so changes to the prompt can be judged on evidence rather than vibes.&lt;/li&gt;
&lt;li&gt;Add contribution guidelines, issue templates and beginner friendly labels.&lt;/li&gt;
&lt;li&gt;Build richer journeys, such as collections, district wise browsing and better ways to explore what the community has saved.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Contribute
&lt;/h2&gt;

&lt;p&gt;Panther Panchali is MIT licensed and follows the &lt;strong&gt;Contributor Covenant Code of Conduct&lt;/strong&gt;. So far it has been a one person project, which means early contributors will have a real say in where it goes. I am looking for three kinds of help.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Feature builders.&lt;/strong&gt; If you enjoy shipping, there is plenty to build: journey collections and district wise exploration, support for several photographs of one place, cost controls and caching around AI and video calls, and the test suite, which I consider a feature in its own right.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code auditors.&lt;/strong&gt; If you enjoy reading code critically, I would love a careful review. The areas I care about most are authorisation and ownership checks on API routes, rate limiting and abuse protection for expensive endpoints, input validation and upload limits, sanitising model output before it reaches the page, resistance to prompt injection through the user notes field, and exactly what data the public share endpoint returns. Please report anything sensitive privately through GitHub’s security advisory feature instead of opening a public issue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UI and design polish.&lt;/strong&gt; If you care about how software feels, the visual language is fixed, with its paper toned palette, three typefaces and one icon family, but there is a lot of room inside it. Responsive refinements on small screens, accessibility improvements such as contrast, focus order, screen reader labels and reduced motion for the map flight, better loading, empty and error states, and finer typography in the long reading view would all make a real difference.&lt;/p&gt;

&lt;p&gt;To get started, fork the project, read the guidelines file first because it holds the architecture and brand rules, and open an issue or a pull request. If you would rather talk first, leave a comment below saying which of the three roles you would like to take.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Final Thought
&lt;/h2&gt;

&lt;p&gt;Bengal lives in more than stone and soil. It lives in photographs that people took and could not name. If this project helps even a few of those pictures find their names and their stories again, it was worth building.&lt;/p&gt;

&lt;p&gt;Try it, break it, and tell me what you think in the comments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/Megh2005/panther-panchali" rel="noopener noreferrer"&gt;Panther Panchali&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>gemini</category>
      <category>productivity</category>
    </item>
    <item>
      <title>GitLatch : Your Repository Guard</title>
      <dc:creator>Megh Deb</dc:creator>
      <pubDate>Sat, 24 Oct 2026 05:59:40 +0000</pubDate>
      <link>https://dev.to/iammeghdeb/gitlatch-your-repository-guard-1fk5</link>
      <guid>https://dev.to/iammeghdeb/gitlatch-your-repository-guard-1fk5</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;&lt;strong&gt;GitLatch&lt;/strong&gt; is an enterprise-grade, client-side &lt;strong&gt;Static Application Security Testing (SAST)&lt;/strong&gt; platform and repository governance engine designed to conduct exhaustive, automated audits of continuous integration pipelines and software supply chains entirely on the user's local machine. Powered by &lt;strong&gt;&lt;em&gt;Google DeepMind's Gemma 4 E2B&lt;/em&gt;&lt;/strong&gt; large language model executing natively inside the web browser through &lt;strong&gt;Google LiteRT-LM (&lt;code&gt;@litert-lm/core&lt;/code&gt;)&lt;/strong&gt; over &lt;strong&gt;WebGPU&lt;/strong&gt;, GitLatch scrutinizes repository configurations, GitHub Actions workflows, composite actions, and multi-ecosystem manifest files without transmitting &lt;strong&gt;&lt;em&gt;a single byte of proprietary source code, operational workflows, or confidential environment secrets&lt;/em&gt;&lt;/strong&gt; to external cloud infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem Statement
&lt;/h2&gt;

&lt;p&gt;Modern software engineering teams rely extensively on automated &lt;strong&gt;Continuous Integration and Continuous Delivery (CI/CD)&lt;/strong&gt; pipelines to compile code, execute test suites, publish release artifacts, and provision production infrastructure. However, automated build workflows have rapidly evolved into the &lt;strong&gt;&lt;em&gt;primary and most vulnerable attack vector for modern software supply-chain compromises&lt;/em&gt;&lt;/strong&gt;. GitHub Actions workflows routinely execute untrusted third-party shell scripts using unverified remote piping mechanisms such as &lt;strong&gt;&lt;code&gt;curl | bash&lt;/code&gt;&lt;/strong&gt; pipelines devoid of cryptographic signature checks, checksum validations, or execution sandboxing. Furthermore, development teams frequently reference external marketplace actions pinned exclusively to &lt;strong&gt;&lt;em&gt;mutable version tags&lt;/em&gt;&lt;/strong&gt; (such as &lt;code&gt;@v1&lt;/code&gt; or &lt;code&gt;@v4&lt;/code&gt;) rather than &lt;strong&gt;&lt;em&gt;immutable, full-length 40-character commit SHAs&lt;/em&gt;&lt;/strong&gt;, exposing automated runners to silent upstream tag overwrites, compromised maintainer accounts, and automated credential exfiltration.&lt;/p&gt;

&lt;p&gt;These uninspected external scripts and custom actions execute with &lt;strong&gt;&lt;em&gt;excessive, broad runner privileges&lt;/em&gt;&lt;/strong&gt; that possess direct, unmonitored access to sensitive repository secrets, deploy keys, cloud production credentials, and write-enabled &lt;strong&gt;&lt;code&gt;GITHUB_TOKEN&lt;/code&gt;&lt;/strong&gt; authorizations. Traditional static application security testing tools focus almost exclusively on high-level application source code while treating CI/CD automation files as invisible configuration scripts. Consequently, security engineers and maintainers face a dangerous lack of visibility, operating without an automated, preemptive inspection layer capable of detecting malicious script injections, excessive permissions, untrusted event triggers such as &lt;strong&gt;&lt;code&gt;pull_request_target&lt;/code&gt;&lt;/strong&gt;, and covert dependency confusion vectors before they compromise production build pipelines.&lt;/p&gt;

&lt;h2&gt;
  
  
  Solution Approach
&lt;/h2&gt;

&lt;p&gt;GitLatch addresses this critical vulnerability by delivering a multi-stage security audit engine that enforces &lt;strong&gt;&lt;em&gt;infrastructure-as-code and workflow governance with the identical rigor applied to production application code&lt;/em&gt;&lt;/strong&gt;. Rather than performing superficial regular expression matches on isolated workflow definitions, GitLatch recursively crawls the entire repository tree to catalog and analyze every asset residing within the complete &lt;strong&gt;&lt;code&gt;.github/&lt;/code&gt;&lt;/strong&gt; directory. This comprehensive crawl encompasses continuous integration workflows, composite actions, Dependabot configurations, bespoke maintenance shell scripts, and administrative governance policies including &lt;strong&gt;&lt;code&gt;CODEOWNERS&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;SECURITY.md&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Simultaneously, GitLatch discovers and parses software supply-chain manifests spanning diverse programming languages and package ecosystems, including Node.js (&lt;strong&gt;&lt;code&gt;package.json&lt;/code&gt;&lt;/strong&gt; and lockfiles), Python (&lt;strong&gt;&lt;code&gt;requirements.txt&lt;/code&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;pyproject.toml&lt;/code&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;Pipfile&lt;/code&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;code&gt;setup.py&lt;/code&gt;&lt;/strong&gt;), Go (&lt;strong&gt;&lt;code&gt;go.mod&lt;/code&gt;&lt;/strong&gt;), and Rust (&lt;strong&gt;&lt;code&gt;Cargo.toml&lt;/code&gt;&lt;/strong&gt;). The engine processes these artifacts through a synchronized audit pipeline that fuses &lt;strong&gt;&lt;em&gt;deterministic static heuristics&lt;/em&gt;&lt;/strong&gt; with &lt;strong&gt;&lt;em&gt;contextual neural evaluation&lt;/em&gt;&lt;/strong&gt;. Deterministic parsers identify overt vulnerabilities including wildcard version constraints, dangerous pre/postinstall lifecycle hooks, unscoped internal packages, self-hosted runner risks, and remote piping scripts, while the on-device Gemma neural engine interprets complex execution topologies, shell interpolations, and contextual injection surfaces to deliver granular vulnerability summaries and actionable remediation diffs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why We Are Unique
&lt;/h2&gt;

&lt;p&gt;GitLatch establishes an uncompromising, &lt;strong&gt;&lt;em&gt;zero-trust client-side privacy model&lt;/em&gt;&lt;/strong&gt; that guarantees complete computational sovereignty on the developer's workstation. While existing enterprise security suites mandate organization-wide read/write permissions, code repository mirroring, and bulk transmission of sensitive workflows to proprietary third-party artificial intelligence cloud platforms, GitLatch performs &lt;strong&gt;one hundred percent of its reasoning on-device using local WebGPU acceleration&lt;/strong&gt;. Proprietary business logic, internal infrastructure addresses, automated deployment routines, and inadvertent secret leaks &lt;strong&gt;&lt;em&gt;never cross the boundary of the local browser sandbox&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Beyond client-side privacy, GitLatch delivers publication-grade audit transparency through a native generation engine that compiles formal security reports into a standardized &lt;strong&gt;A4 portrait PDF&lt;/strong&gt; adhering to &lt;strong&gt;&lt;em&gt;strict 1.0-inch (25.4mm) margins&lt;/em&gt;&lt;/strong&gt; on all four borders. Designed around high-density &lt;strong&gt;monospace Courier typography&lt;/strong&gt; and explicit, bordered tabular matrices, the exported audit report documents discovered vulnerabilities, runner contexts, affected file paths, and exact remediation advice without token overflow or column clipping. This equips engineering teams, compliance officers, and open-source maintainers with an immutable, audit-ready artifact suitable for compliance verification, SOC2 documentation, and third-party penetration disclosures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Core Application Framework&lt;/strong&gt;: Next.js 15 (App Router), React 19, TypeScript 5&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styling &amp;amp; Visual Interface&lt;/strong&gt;: Tailwind CSS v4, Lucide React, React Icons (&lt;code&gt;FaGithub&lt;/code&gt;), next-themes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database &amp;amp; Data Persistence&lt;/strong&gt;: MongoDB, Mongoose (with connection caching and connection pooling)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentication &amp;amp; Session Guard&lt;/strong&gt;: NextAuth v5 (GitHub OAuth Provider), Next.js Edge Middleware&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On-Device Neural Security Engine&lt;/strong&gt;: Google DeepMind Gemma 4 E2B (&lt;code&gt;.litertlm&lt;/code&gt; artifact ~1.87 GB)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client Inference Runtime&lt;/strong&gt;: Google LiteRT-LM (&lt;code&gt;@litert-lm/core&lt;/code&gt;) via WebGPU Compute Shaders&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Storage &amp;amp; Persistence&lt;/strong&gt;: File System Access API (&lt;code&gt;showDirectoryPicker&lt;/code&gt;), Origin Private File System (OPFS), IndexedDB&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Formal Audit Report Generator&lt;/strong&gt;: jsPDF (monospace bordered grid engine), &lt;code&gt;@react-pdf/renderer&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code Quality &amp;amp; Linter Engine&lt;/strong&gt;: Biome 2.2.0 (strict code formatting and automated linter verification)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technical Feasibility and Impact of Gemma
&lt;/h2&gt;

&lt;p&gt;The computational foundation of GitLatch is &lt;strong&gt;&lt;em&gt;Google DeepMind's Gemma 4 E2B&lt;/em&gt;&lt;/strong&gt; model, a specialized two-billion parameter neural network designed for high-density edge reasoning and instruction-tuned code analysis. By compiling the Gemma 4 architecture into the highly optimized &lt;strong&gt;&lt;code&gt;.litertlm&lt;/code&gt;&lt;/strong&gt; binary format, GitLatch achieves workstation-class static analysis capabilities directly inside consumer web browsers without requiring dedicated cloud server clusters or specialized AI hardware. The model harnesses modern client graphics processors via &lt;strong&gt;WebGPU compute shaders&lt;/strong&gt;, delivering low-latency, real-time inference that operates reliably within client memory boundaries.&lt;/p&gt;

&lt;p&gt;The true operational impact of this architecture lies in its &lt;strong&gt;&lt;em&gt;offline-first, low-bandwidth paradigm&lt;/em&gt;&lt;/strong&gt;. Following a single initial download of the compressed 1.87 GB model artifact, GitLatch utilizes the modern browser &lt;strong&gt;File System Access API&lt;/strong&gt; with &lt;strong&gt;Origin Private File System (OPFS)&lt;/strong&gt; fallback to persist model weights permanently on the user's local disk. This eliminates ongoing bandwidth consumption, enabling security teams to audit proprietary repositories aboard aircraft, inside air-gapped security enclaves, or across low-connectivity development environments. Furthermore, client-side inference ensures &lt;strong&gt;&lt;em&gt;absolute operational consistency&lt;/em&gt;&lt;/strong&gt;, completely immunizing the security scanner against cloud configuration drift, provider API rate limiting, unexpected backend model deprecations, and fluctuating subscription charges.&lt;/p&gt;

&lt;h2&gt;
  
  
  On-Device Inference Engine and Live Streaming Protocol
&lt;/h2&gt;

&lt;p&gt;The runtime execution architecture of GitLatch couples high-throughput edge model distribution with an on-device WebGPU live streaming inference protocol, orchestrating deep repository audits with continuous, real-time telemetry across both network transport and hardware compute layers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Akamai Pipeline Operation Monitoring
&lt;/h3&gt;

&lt;p&gt;The delivery of Google DeepMind's Gemma 4 E2B model weights (~1.87 GB), tokenizer metadata, and WebAssembly execution binaries is governed by an &lt;strong&gt;Akamai-accelerated edge distribution pipeline&lt;/strong&gt; designed to provide rapid, uninterrupted binary transmission directly to client browsers. This delivery infrastructure is actively monitored through a dedicated &lt;strong&gt;chunk-level watchdog telemetry system&lt;/strong&gt; executing within the client browser. Rather than relying on monolithic, unmonitored file downloads that frequently stall or corrupt under volatile network conditions, the Akamai pipeline streams data in discrete binary chunks while continuously measuring &lt;strong&gt;&lt;em&gt;real-time throughput, byte-by-byte transfer progress, and connection latency&lt;/em&gt;&lt;/strong&gt;. The client watchdog enforces strict &lt;strong&gt;35-second chunk timeout intervals&lt;/strong&gt; alongside &lt;strong&gt;60-second storage flush thresholds&lt;/strong&gt;, immediately detecting packet stalls, transient dropped sockets, or edge throttle events.&lt;/p&gt;

&lt;p&gt;When browser-enforced Cross-Origin Resource Sharing (CORS) constraints or restrictive corporate network proxies impede direct connection to public model repositories, the pipeline activates an &lt;strong&gt;automated edge-proxy failover route&lt;/strong&gt; through the application's internal streaming endpoint. To safeguard local persistence integrity across Windows and Chromium environments, the storage monitor actively oversees filesystem handle transitions, purging orphaned temporary &lt;code&gt;.crswap&lt;/code&gt; artifacts prior to write initialization, verifying directory handle permissions via the &lt;strong&gt;File System Access API&lt;/strong&gt;, and executing seamless automatic failover to the &lt;strong&gt;Origin Private File System (OPFS)&lt;/strong&gt; whenever desktop directory access is restricted. Each retrieved byte range undergoes continuous size verification against cryptographic artifact headers, preventing partial writes and guaranteeing that corrupt weight matrices never enter GPU compute memory.&lt;/p&gt;

&lt;h3&gt;
  
  
  Live Streaming Inference and Execution Monitoring
&lt;/h3&gt;

&lt;p&gt;Once model weights are committed to local origin storage and mapped into graphics memory, the &lt;strong&gt;Google LiteRT-LM WebGPU execution runtime&lt;/strong&gt; coordinates a token-by-token live streaming inference protocol that provides continuous visibility into repository scanning operations. As the multi-stage auditor parses complex CI/CD workflow trees and multi-ecosystem dependency manifests, the neural engine streams reasoning tokens asynchronously into the client interface, providing developers with &lt;strong&gt;live, real-time audit feeds, instantaneous risk classifications, and streaming remediation diffs&lt;/strong&gt; rather than opaque, delayed batch reports. The streaming protocol monitors time-to-first-token latency, per-second token generation velocity, and parsing stage durations, allowing the interface to render smooth micro-animations and active step progression as every file is processed.&lt;/p&gt;

&lt;p&gt;Underpinning the streaming inference protocol is an active &lt;strong&gt;WebGPU device and VRAM telemetry monitor&lt;/strong&gt; that tracks hardware adapter health and compute pass execution. Because scanning dozens of large workflow YAML files, composite actions, and lockfiles within a single scan session can quickly saturate client GPU memory, the GitLatch execution supervisor implements an &lt;strong&gt;automated Key-Value (KV) cache reset protocol&lt;/strong&gt;. After the neural audit of each individual file concludes, the supervisor disposes of prior conversation context, flushes the active KV cache buffers, and reallocates a pristine context window capped at 4096 input and 2048 output tokens. This prevents cumulative GPU out-of-memory errors, eliminates cross-file prompt bleeding, and guarantees consistent, deterministic audit accuracy across the entire repository lifecycle. Furthermore, the runtime continuously listens for catastrophic &lt;strong&gt;&lt;code&gt;device.lost&lt;/code&gt; hardware disconnect signals&lt;/strong&gt;, providing automated recovery pathways that gracefully alert the operator without freezing the client application.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>MediScan : Your Medical Co-Pilot</title>
      <dc:creator>Megh Deb</dc:creator>
      <pubDate>Sat, 17 Oct 2026 14:39:03 +0000</pubDate>
      <link>https://dev.to/iammeghdeb/mediscan-your-medical-co-pilot-5059</link>
      <guid>https://dev.to/iammeghdeb/mediscan-your-medical-co-pilot-5059</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 single year, millions of patients walk out of clinics and pathology laboratories holding crumpled pieces of paper that hold the key to their recovery, yet are completely indecipherable to them. Illegible medical penmanship, hurried physician notations, cryptic prescription abbreviations like &lt;strong&gt;OD&lt;/strong&gt;, &lt;strong&gt;BD&lt;/strong&gt;, &lt;strong&gt;TDS&lt;/strong&gt;, &lt;strong&gt;AC&lt;/strong&gt;, and &lt;strong&gt;HS&lt;/strong&gt;, and dense diagnostic lab jargon—such as elevated transaminases, altered creatinine clearance, or fluctuating lipid fractions—frequently lead to severe medication administration errors, delayed clinical interventions, and profound patient anxiety. For elderly individuals, chronic patients managing polypharmacy, and anxious family caregivers, navigating physical prescriptions and laboratory slips is an agonizing ordeal that leaves them completely uninformed about what active chemical salt is entering their body, why a medicine was prescribed, how it interacts with food, whether their blood markers are within safe demographic boundaries for their age and gender, or what warning signs necessitate immediate medical attention.&lt;/p&gt;

&lt;p&gt;To eliminate this diagnostic opacity once and for all, I built an executive-grade clinical intelligence platform named &lt;strong&gt;MediScan&lt;/strong&gt;. MediScan transforms chaotic, illegible paper prescriptions and complex pathological laboratory reports into an empowering, highly legible, and structured digital healthcare companion that bridges the communication divide between doctors, pathologists, pharmacists, and everyday patients. Below is the dedicated breakdown of every core platform feature, detailing its specific healthcare requirement, functionality, and clinical advantages:&lt;/p&gt;

&lt;h3&gt;
  
  
  Prescription Handwriting OCR &amp;amp; Profile Extraction
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Physician handwriting is notoriously hurried and illegible, creating diagnostic ambiguities, patient misinterpretation, and a severe lack of structured digital records at the critical moment of discharge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; MediScan utilizes frontier multimodal vision intelligence to process raw photos of handwritten or printed prescription slips, instantly isolating the prescribing physician's name, medical registration number, academic credentials, and clinic affiliation, alongside patient demographic details, physiological vitals (blood pressure, pulse rate, temperature, SpO2), and formal clinical diagnoses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Eliminates dangerous misreadings of medication names and clinical orders, creates an auditable electronic healthcare record, and ensures that all subsequent schedules are anchored to verified patient vitals.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Latin Shorthand Decoding into Daily Routine Timetables
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Cryptic Latin medical abbreviations such as OD, BD, TDS, QID, AC, PC, and HS routinely baffle patients, resulting in missed doses, improper food relationships, or accidental double-dosing that leads to hospitalization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; This feature systematically translates obtuse medical shorthand into an intuitive, everyday &lt;strong&gt;Daily Medication Schedule&lt;/strong&gt; cleanly separated into Morning (Breakfast), Afternoon (Lunch), and Night (Dinner/Bedtime) routines, detailing exact dose quantities and explicit food requirements (such as &lt;em&gt;take 30 minutes before breakfast&lt;/em&gt; or &lt;em&gt;take immediately after meals&lt;/em&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Drastically reduces medication non-compliance, eliminates accidental overmedication, and allows elderly patients and non-medical caregivers to manage complex polypharmacy regimens with total autonomy and clarity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Active Pharmacological Composition, Salt Strength &amp;amp; Patient Safety Rules
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Commercial brand names obscure the underlying active chemical molecules, making it easy for patients to unintentionally consume duplicate medications from different manufacturers, causing severe toxicity or missing critical contraindications.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; For every identified drug, MediScan cross-references clinical pharmacological knowledge to extract the authentic active chemical salts, exact salt strengths, primary therapeutic indications, and essential patient safety precautions (such as avoiding alcohol, not crushing delayed-release tablets, or drinking extra fluids).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Prevents accidental drug overdoses and hazardous drug-drug interactions, demystifies why each medication is necessary, and promotes informed patient agency during medical therapy.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Geolocation-Aware Localized Pharmacy Availability &amp;amp; Live Pricing (SerpApi)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Prescription drug pricing and retail availability are notoriously fragmented and non-transparent, forcing stressed patients or family members to visit multiple physical pharmacies during emergencies to find stock or overpay.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; Capturing browser geolocation coordinates with automated server-side reverse geocoding into canonical local cities and districts, MediScan queries SerpApi's Google Shopping engine in parallel across all detected medications to surface verified local online retailers, live stock availability, and genuine localized pricing in local currency with direct purchasing links.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Delivers immediate financial transparency, eliminates unnecessary physical travel during acute illness, and establishes a seamless, frictionless bridge from clinical diagnosis to affordable medicine procurement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Ordered Diagnostic Investigations &amp;amp; Preparation Guidelines
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Diagnostic tests ordered on prescriptions often lack preparation instructions, causing patients to arrive at diagnostic laboratories unprepared (such as failing to fast for blood glucose or lipid testing), leading to canceled appointments or inaccurate test results.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; The system automatically identifies all recommended blood tests, urine screenings, and radiological investigations from the prescription, explicitly outlining their clinical diagnostic purpose and mandatory pre-test preparation rules (including fasting durations and hydration guidelines).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Eliminates wasted laboratory visits, guarantees test specimen accuracy, and accelerates the diagnostic timeline for ongoing patient monitoring.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Pathological Lab Report Layman Translation Engine
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Standard pathology laboratory sheets are filled with dense medical jargon and esoteric acronyms (such as SGOT, SGPT, Bilirubin Direct, Mean Corpuscular Volume) that provide no understandable context to everyday patients regarding what is actually occurring within their body.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; MediScan decodes complex medical test parameters into two accessible layman breakdowns: &lt;em&gt;What This Test Actually Measures&lt;/em&gt; (explaining the underlying biological mechanism in simple words) and &lt;em&gt;What This Portrays About Your Health&lt;/em&gt; (explaining whether the reading suggests normal organ function, cellular strain, systemic inflammation, or nutritional deficiency).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Replaces medical anxiety with genuine comprehension, helps patients understand the functional health of their organs, and facilitates informed, confident dialogues between patients and doctors during follow-up visits.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Personalized Average Health Score Index (0–100) &amp;amp; Categorical Metric Tally
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Patients receiving multipage diagnostic lab slips often face dozens of discrete values and struggle to grasp their holistic health condition or determine which specific parameters require urgent medical intervention.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; The engine computes an intelligent, personalized &lt;strong&gt;Average Health Score (0 to 100)&lt;/strong&gt; with intuitive clinical rating tiers (Optimal, Good, Needs Attention, Critical Attention), supported by a high-contrast metric counter tallying Total Parameters, Normal readings, Mild Deviations, and Priority Attention alerts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Provides an instant, understandable snapshot of overall health status, immediately highlights clinical priorities that warrant physician discussion, and motivates patients toward proactive lifestyle management.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Interactive Parameter Carousel Showcase
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Displaying dozens of dense pathology test cards on a single screen causes severe cognitive overload, visual exhaustion, and frustrating page scrolling for patients and caregivers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; MediScan organizes all extracted parameters into an interactive, high-contrast, large-font &lt;strong&gt;Parameter Carousel&lt;/strong&gt;. Patients navigate through tests one-by-one using Previous/Next action buttons, keyboard arrow shortcuts, a direct parameter selector dropdown, or compact numbered jump chips with color-coded status dots—with zero horizontal scrolling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Ensures optimal legibility for elderly users and visually impaired patients, provides dedicated focus on each test without clutter, and enables instant 1-click navigation to any parameter.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Demographic Reference Standards Comparison (Age &amp;amp; Gender Breakdown)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Standard clinical reference ranges vary substantially based on biological sex (hormonal profiles, muscle mass) and age cohorts (pediatric, adult, geriatric), but physical lab slips frequently display only a single generalized adult standard.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; Every parameter is compared side-by-side against demographic benchmarks, featuring dedicated male vs. female standard ranges and comprehensive age bracket tables (e.g., children, adults, seniors), supplemented by regional reference standards notes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Empowers every reader to tally their personal findings against their exact age and sex cohort, preventing unwarranted panic over false alarms while ensuring genuine demographic deviations are promptly detected.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Evidence-Based Lifestyle Guidance &amp;amp; Physician Discussion Questions
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; After receiving abnormal laboratory results, patients frequently feel abandoned between appointments, unsure of what daily nutritional habits to adopt or what specific questions to ask their physician.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; MediScan analyzes the aggregated pathological findings to synthesize actionable everyday dietary, hydration, and physical activity guidance, alongside targeted, high-yield questions tailored for the patient to bring directly to their doctor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Empowers patients with immediate, safe self-care habits, optimizes consultation efficiency during clinic visits, and deepens collaborative decision-making between patient and practitioner.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Executive Monochromatic Vector A4 PDF Export
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Mobile web interfaces are often inaccessible during physical doctor consultations or in hospital areas with limited network connectivity, while standard browser printouts suffer from broken page breaks and lack legal disclaimers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; MediScan features an integrated document compiler utilizing jsPDF and jspdf-autotable that generates formal, hospital-grade monospace vector &lt;strong&gt;A4 PDF Clinical Transcripts&lt;/strong&gt; for both prescriptions and pathology reports. Every cell border is explicitly drawn with grid lines, running headers/footers indicate confidentiality and page counts (&lt;code&gt;PAGE X OF Y&lt;/code&gt;), and mandatory AI verification disclaimers are appended.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Delivers an authoritative, archival-quality physical document that patients can print or share directly with their physician, fostering seamless clinical cross-verification while upholding legal safety standards.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Secure Credentials Authentication &amp;amp; Edge Route Defense (NextAuth &amp;amp; MongoDB Atlas)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirement:&lt;/strong&gt; Personal medical prescriptions and pathological test reports constitute highly sensitive personal data that requires enterprise-grade access control and robust perimeter protection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; Full user authentication is implemented with NextAuth.js backed by MongoDB Atlas, employing salted bcryptjs password encryption, real-time password visibility controls, and Edge middleware route defense that strictly enforces 24-hour authenticated JWT sessions across scanner views and analytical API routes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advantages:&lt;/strong&gt; Safeguards patient confidentiality, prevents unauthorized data exposure, and provides a frictionless, reliable user authentication experience across all devices.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Experience the live application and test both prescription deciphering and pathology lab report analysis in real time:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Application Demo:&lt;/strong&gt; &lt;a href="https://mediscan-xi-seven.vercel.app" rel="noopener noreferrer"&gt;https://mediscan-xi-seven.vercel.app&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;The complete source code, architectural documentation, and environment configuration are available in the public repository:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Official GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/Megh2005/dev-challange-2" rel="noopener noreferrer"&gt;https://github.com/Megh2005/dev-challange-2&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;The application is engineered from the ground up to adhere to strict production standards, prioritizing reliability, deterministic output, and exceptional user experience across all age demographics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Next.js 14 App Router &amp;amp; TypeScript&lt;/strong&gt;: Built on Next.js 14 with App Router, enforcing end-to-end type safety across all clinical data contracts. The interface is styled with solid-token &lt;strong&gt;Tailwind CSS&lt;/strong&gt; featuring &lt;strong&gt;Roboto Slab&lt;/strong&gt; typography on an intentional &lt;strong&gt;80vw centered layout&lt;/strong&gt;, eliminating distracting gradients, frivolous animations, and emojis in favor of a clean, high-contrast, accessible healthcare presentation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Authentication &amp;amp; Secure Access (NextAuth &amp;amp; MongoDB Atlas)&lt;/strong&gt;: Full user authentication is implemented with &lt;strong&gt;NextAuth.js&lt;/strong&gt; utilizing a credentials-based provider backed by &lt;strong&gt;MongoDB Atlas&lt;/strong&gt;. Passwords are encrypted using salted &lt;code&gt;bcryptjs&lt;/code&gt; hashing. Protected routes (including &lt;code&gt;/scan&lt;/code&gt;, &lt;code&gt;/reports&lt;/code&gt;, and analytical endpoints) are guarded via Next.js Edge &lt;strong&gt;middleware&lt;/strong&gt; with 24-hour JWT session token verification, protocol-aware cookie handling, and registration flows with real-time password visibility toggling.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multimodal AI Intelligence Layer&lt;/strong&gt;: The clinical analysis pipelines utilize Google's frontier multimodal Gemini engines (&lt;code&gt;@google/generative-ai&lt;/code&gt;). Files are ingested as native binary multipart form data directly into temporary disk streams via &lt;code&gt;GoogleAIFileManager&lt;/code&gt; rather than degrading performance with base64 payloads. The models operate under strict JSON schema constraints, executing simultaneous handwriting deciphering, optical character recognition, abbreviation normalization, pathological metric extraction, and layman medical translation without relying on fragile local lookup tables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Parameter Carousel &amp;amp; Demographic Standards Engine&lt;/strong&gt;: Rather than overwhelming patients with dense grids of medical parameters, the pathology analyzer renders parameters in a focused, high-contrast &lt;strong&gt;Carousel Showcase&lt;/strong&gt;. Users navigate with Previous/Next controls, keyboard arrow shortcuts, a direct parameter selector dropdown, or compact numbered jump chips with status indicator dots. Every parameter details what the test measures, what it portrays about the user's health, and explicit demographic comparisons (male vs. female standards and age bracket tables).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Localized Online Pharmacy Pricing (SerpApi)&lt;/strong&gt;: To address medication availability and price transparency, the platform integrates &lt;strong&gt;SerpApi's Google Shopping Engine&lt;/strong&gt;. Browser geolocation coordinates are reverse-geocoded on the server into canonical local city and country parameters. The backend queries SerpApi in parallel across all identified medications, extracting verified local online retailers, product titles, delivery details, and authentic localized pricing in rupees or local currency, rendering direct purchasing links for immediate patient convenience.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Full-Stack Observability &amp;amp; Tracing (Sentry)&lt;/strong&gt;: System reliability, AI pipeline tracking, and exception telemetry are monitored with &lt;strong&gt;@sentry/nextjs&lt;/strong&gt;. Dedicated Sentry instrumentation across client, server, and edge runtimes traces API response latencies, catches OCR parsing anomalies, and monitors AI agent lifecycles through comprehensive distributed spans and error boundaries.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Cloud Data Persistence (MongoDB Atlas)&lt;/strong&gt;: &lt;strong&gt;MongoDB Atlas&lt;/strong&gt; serves as the primary document store, securely managing user accounts, authentication credentials, patient consultation histories, and clinical transcripts with enterprise-grade encryption at rest and in transit.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Monochromatic Vector A4 PDF Export&lt;/strong&gt;: Client-side document generation is powered by &lt;strong&gt;jsPDF&lt;/strong&gt; and &lt;strong&gt;jspdf-autotable&lt;/strong&gt;, which compile both prescription decipher transcripts and pathology lab analyses into strictly monospace, monochromatic vector &lt;strong&gt;A4 PDFs&lt;/strong&gt;. Every cell border is explicitly drawn with grid lines, text overflows are eliminated through dynamic line-wrapping calculations, and running page borders, page counts, and comprehensive AI verification disclaimers are automatically appended.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Healthcare is fundamentally human, and open innovation is the only mechanism that prevents critical clinical technologies from becoming guarded, walled-garden monopolies accessible only to elite institutions. When intelligent diagnostic and transcription tools are built openly, developers across the globe can inspect the reasoning pipelines, identify biases, verify clinical safety constraints, and adapt tools for rural clinics, underserved languages, and overburdened public health systems. Open-weight innovation and transparent API architectures democratize medical comprehension, turning what was once an impenetrable scribble on a physician's pad or an intimidating laboratory sheet into accessible, actionable, life-saving knowledge for every patient regardless of socioeconomic background.&lt;/p&gt;

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

&lt;p&gt;This project is entered into the following partner prize categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Best Use of Sentry Agent Tracing&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Implements end-to-end full-stack observability with &lt;strong&gt;@sentry/nextjs&lt;/strong&gt; across client components, API routes, and edge runtimes, tracking multimodal OCR pipeline durations, monitoring external API latencies, and providing robust exception capture across all prescription deciphering and pathology analysis operations.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Best Use of SerpApi&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Leverages &lt;strong&gt;SerpApi's Google Shopping API&lt;/strong&gt; with automatic latitude and longitude coordinate resolution to fetch localized online pharmacy pricing, retailer availability, and direct purchasing links for every deciphered medication.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Best Use of MongoDB Atlas&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Utilizes &lt;strong&gt;MongoDB Atlas&lt;/strong&gt; as the foundational cloud document database for persisting user authentication credentials with salted bcrypt encryption, managing user accounts, and storing clinical consultation records, transcribed prescription histories, and routine timetables with high availability and scalability.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>ShramPark: Offline-First AI Engineering Companion</title>
      <dc:creator>Megh Deb</dc:creator>
      <pubDate>Sun, 11 Oct 2026 13:47:46 +0000</pubDate>
      <link>https://dev.to/iammeghdeb/shrampark-offline-first-ai-engineering-companion-2ggl</link>
      <guid>https://dev.to/iammeghdeb/shrampark-offline-first-ai-engineering-companion-2ggl</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;ShramPark&lt;/strong&gt; is an offline-first, mobile-responsive AI engineering companion and construction site safety platform. At its core is &lt;strong&gt;Raghav AI&lt;/strong&gt;—an on-device structural engineering assistant built specifically for my civil engineer friend.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem My Friend Faced
&lt;/h3&gt;

&lt;p&gt;My friend works as a structural and site civil engineer on active, high-pressure infrastructure and building projects. He spends hours stationed deep underground in basement excavations, piling pits, tunnel shafts, and remote jobsites where cellular networks and internet connectivity drop to absolute zero.&lt;/p&gt;

&lt;p&gt;On active sites, he constantly needs to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cross-reference complex Indian Standard (IS) codes (such as IS 456:2000 for reinforced concrete, IS 800:2007 for structural steel, IS 1893:2016 for seismic design, IS 875 for wind and structural loading, and IS 10262:2019 for concrete mix proportioning).&lt;/li&gt;
&lt;li&gt;Perform step-by-step mathematical engineering calculations (limiting moment of resistance, shear capacity, development length, rebar curtailment, and deflection limits).&lt;/li&gt;
&lt;li&gt;Adjust concrete pouring and curing regimes based on real-time micro-climate factors (temperature, relative humidity, wind speed) to prevent thermal cracking and plastic shrinkage as per IS 7861.&lt;/li&gt;
&lt;li&gt;Inspect on-site craftsmanship (rebar placement, cover block clearances, shuttering verticality, honeycombing) and produce stamped technical audit sheets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In deep basement pits with zero cell reception, conventional cloud-based AI tools are completely unusable. He needed an intelligent, reliable engineering co-pilot that lives directly on his device and never requires an internet connection to solve complex structural problems. To solve this, I built &lt;strong&gt;Raghav AI&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  What ShramPark Does
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Raghav AI (Offline On-Device Engineering Assistant)&lt;/strong&gt;: Runs Google's open-weight &lt;strong&gt;Gemma 4 E2B&lt;/strong&gt; model 100% locally in the browser using &lt;strong&gt;LiteRT-LM&lt;/strong&gt; and &lt;strong&gt;WebGPU&lt;/strong&gt;. Named 'Raghav', this assistant acts as an on-site engineering colleague that performs limit-state RC beam/slab/column design, shear checks, development length derivations, and mix design checks completely offline with zero server roundtrips.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SiteVision (AI Quality &amp;amp; Safety Inspector)&lt;/strong&gt;: Computer vision diagnostics allowing engineers and supervisors to snap photos of rebar cages, shuttering, or freshly cast concrete to detect honeycombing, cover block placement errors, slurry leaks, and safety non-compliance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Micro-Climate Engineering Personalization&lt;/strong&gt;: Integrates live site geolocation and micro-climate data (ambient temperature, humidity, wind speed) to automatically calculate evaporation rates, adjust curing durations, and suggest plastic shrinkage precautions as per IS 7861.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Standardized PDF Engineering Memos&lt;/strong&gt;: Generates client-side, formatted technical calculation reports and site inspection checklists with KaTeX mathematical formulas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailored for 2 Core Site Roles&lt;/strong&gt;: Streamlined explicitly for &lt;strong&gt;Supervisor&lt;/strong&gt; (field safety and visual audits) and &lt;strong&gt;Engineer&lt;/strong&gt; (structural derivations and IS compliance).&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;The application is deployed and ready to use live in the field:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Deployment URL&lt;/strong&gt;: &lt;a href="https://shrampark.vercel.app/" rel="noopener noreferrer"&gt;https://shrampark.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core Workflows to Test:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;/raghav&lt;/strong&gt;: Initialize the on-device Gemma 4 E2B WebGPU engine (download once or select a local &lt;code&gt;.litertlm&lt;/code&gt; artifact) for 100% offline civil engineering derivations and IS code calculations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;/sitevision&lt;/strong&gt;: Perform image-based field inspections and generate automated IS code compliance checklists.&lt;/li&gt;
&lt;/ul&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/Megh2005" rel="noopener noreferrer"&gt;
        Megh2005
      &lt;/a&gt; / &lt;a href="https://github.com/Megh2005/dev-challange-1" rel="noopener noreferrer"&gt;
        dev-challange-1
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      ShramPark is an offline-first, mobile-responsive AI engineering companion and construction site safety platform built specifically for my civil engineer friend, Raghav.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="flash flash-error mb-3"&gt;Error in user YAML: (&amp;lt;unknown&amp;gt;): mapping values are not allowed in this context at line 1 column 17&lt;/div&gt;
&lt;div class="highlight highlight-source-yaml notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;---
&lt;span class="pl-ent"&gt;title&lt;/span&gt;: &lt;span class="pl-s"&gt;ShramPark: Offline-First AI Engineering Companion 'Raghav' Built for My Civil Engineer Friend&lt;/span&gt;
&lt;span class="pl-ent"&gt;published&lt;/span&gt;: &lt;span class="pl-c1"&gt;true&lt;/span&gt;
&lt;span class="pl-ent"&gt;tags&lt;/span&gt;: &lt;span class="pl-s"&gt;devchallenge, weekendchallenge, hf26challenge&lt;/span&gt;
---
&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01" rel="nofollow"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What I Built&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;ShramPark&lt;/strong&gt; is an offline-first, mobile-responsive AI engineering companion and construction site safety platform. At its core is &lt;strong&gt;Raghav AI&lt;/strong&gt;—an on-device structural engineering assistant built specifically for my civil engineer friend.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;The Problem My Friend Faced&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;My friend works as a structural and site civil engineer on active, high-pressure infrastructure and building projects. He spends hours stationed deep underground in basement excavations, piling pits, tunnel shafts, and remote jobsites where cellular networks and internet connectivity drop to absolute zero.&lt;/p&gt;
&lt;p&gt;On active sites, he constantly needs to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Cross-reference complex Indian Standard (IS) codes…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Megh2005/dev-challange-1" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/Megh2005/dev-challange-1" rel="noopener noreferrer"&gt;https://github.com/Megh2005/dev-challange-1&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;ShramPark is architected around open-weight on-device AI designed to withstand harsh, disconnected construction jobsite environments:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Open-Source &amp;amp; Open-Weight AI Architecture (Gemma + LiteRT-LM)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model&lt;/strong&gt;: &lt;strong&gt;Gemma 4 E2B&lt;/strong&gt; (&lt;code&gt;gemma-4-E2B-it-web.litertlm&lt;/code&gt;), Google's open-weight instruct model quantized and packaged for the LiteRT runtime.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inference Runtime&lt;/strong&gt;: &lt;strong&gt;LiteRT-LM (&lt;code&gt;@litert-lm/core&lt;/code&gt;)&lt;/strong&gt; executing client-side on-device inference via &lt;strong&gt;WebGPU&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Distribution&lt;/strong&gt;: Hosted openly on Hugging Face (&lt;a href="https://huggingface.co/litert-community/gemma-4-E2B-it-litert-lm" rel="noopener noreferrer"&gt;&lt;code&gt;litert-community/gemma-4-E2B-it-litert-lm&lt;/code&gt;&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Server Overhead&lt;/strong&gt;: The model file is cached client-side using browser Cache Storage or loaded directly via the File System Access API from the user's hard drive. Inference consumes 0 server compute and transmits 0 bytes over the wire.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Engine Optimization&lt;/strong&gt;: Configured with a 4096-token execution context and KV cache recycling to execute step-by-step mathematical proofs and limit-state safety factor derivations without GPU out-of-memory errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Full-Stack &amp;amp; Engineering Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework&lt;/strong&gt;: &lt;strong&gt;Next.js 14 (App Router)&lt;/strong&gt; with TypeScript and Tailwind CSS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multimodal Field Inspections&lt;/strong&gt;: Google Generative AI (&lt;code&gt;@google/generative-ai&lt;/code&gt;) for visual defect analysis and safety compliance audits in SiteVision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mathematical Typography&lt;/strong&gt;: &lt;code&gt;react-markdown&lt;/code&gt;, &lt;code&gt;remark-math&lt;/code&gt;, &lt;code&gt;rehype-katex&lt;/code&gt;, and &lt;code&gt;katex&lt;/code&gt; for rendering complex civil engineering formulas and equations cleanly on mobile screens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audio &amp;amp; Accessibility&lt;/strong&gt;: Speech synthesis APIs and Cloud Speech for hands-free audio playback on noisy sites.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document Export&lt;/strong&gt;: &lt;code&gt;jspdf&lt;/code&gt; and &lt;code&gt;@react-pdf/renderer&lt;/code&gt; for instant client-side generation of stamped site inspection logs and structural calculation sheets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database &amp;amp; Auth&lt;/strong&gt;: MongoDB Atlas with &lt;code&gt;@auth/mongodb-adapter&lt;/code&gt; and &lt;code&gt;next-auth&lt;/code&gt; for role-based access control (Supervisor, Engineer).&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Open innovation is what made ShramPark viable for real-world construction:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;True Offline Independence in Dead Zones&lt;/strong&gt;:&lt;br&gt;
Closed-source APIs require round-trip internet requests. On construction sites—inside double-basements, metro tunnels, rebar fabrication yards, or remote flyover sites—cellular signals are weak or non-existent. Open weights paired with LiteRT-LM allow my friend and site engineers to carry an entire structural engineering brain directly in their laptop or tablet browser without a single bar of cell reception.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Zero Incurred In-Field Costs&lt;/strong&gt;:&lt;br&gt;
Civil engineers, site supervisors, and independent contractors cannot afford recurring monthly API subscriptions or per-token fees for routine field calculations. Open-weight local inference delivers complete engineering calculations without recurring expenses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Domain Ownership &amp;amp; Adherence to Local Standards&lt;/strong&gt;:&lt;br&gt;
Generalist closed APIs frequently default to foreign codes (ACI 318, Eurocodes, or British Standards). Open innovation enables us to constrain and instruct open weights exclusively on Indian Standards (Bureau of Indian Standards: IS 456:2000, IS 1893:2016, IS 800:2007, IS 10262:2019) with deterministic formatting and rigorous limit checks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Privacy and Site Data Sovereignty&lt;/strong&gt;:&lt;br&gt;
Proprietary structural drawings, tender blueprints, and on-site defect photos remain strictly on the engineer’s machine, guaranteeing complete IP protection for builders and contractors.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;This project was developed with the assistance of agentic workflows in &lt;strong&gt;Google Antigravity&lt;/strong&gt;, which accelerated:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Integration and debugging of &lt;code&gt;@litert-lm/core&lt;/code&gt; WebGPU bindings and KV cache memory cleanup.&lt;/li&gt;
&lt;li&gt;Prompt design for strict IS code adherence, mathematical formula formatting, and micro-climate contextualization.&lt;/li&gt;
&lt;li&gt;Clean Next.js 14 architecture with responsive mobile layouts tailored for high-glare outdoor construction use.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Build on Gemma&lt;/strong&gt;: ShramPark harnesses Google's open-weight &lt;strong&gt;Gemma 4 E2B&lt;/strong&gt; model running completely on-device in the browser via &lt;strong&gt;LiteRT-LM (&lt;code&gt;@litert-lm/core&lt;/code&gt;)&lt;/strong&gt; and &lt;strong&gt;WebGPU&lt;/strong&gt;. By delivering 100% offline, zero-latency inference directly on client hardware, it solves the critical problem of cellular dead-zones in deep basement excavations and remote civil infrastructure projects, enabling step-by-step IS-code compliant structural calculations without ever pinging a cloud server.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>ShramPark: Offline-First AI Engineering Companion 'Raghav' Built for My Civil Engineer Friend</title>
      <dc:creator>Megh Deb</dc:creator>
      <pubDate>Fri, 02 Oct 2026 13:19:58 +0000</pubDate>
      <link>https://dev.to/iammeghdeb/shrampark-offline-first-ai-engineering-companion-raghav-built-for-my-civil-engineer-friend-1dp6</link>
      <guid>https://dev.to/iammeghdeb/shrampark-offline-first-ai-engineering-companion-raghav-built-for-my-civil-engineer-friend-1dp6</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;ShramPark&lt;/strong&gt; is an offline-first, mobile-responsive AI engineering companion and construction site safety platform. At its core is &lt;strong&gt;Raghav AI&lt;/strong&gt;—an on-device structural engineering assistant built specifically for my civil engineer friend.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem My Friend Faced
&lt;/h3&gt;

&lt;p&gt;My friend works as a structural and site civil engineer on active, high-pressure infrastructure and building projects. He spends hours stationed deep underground in basement excavations, piling pits, tunnel shafts, and remote jobsites where cellular networks and internet connectivity drop to absolute zero.&lt;/p&gt;

&lt;p&gt;On active sites, he constantly needs to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cross-reference complex Indian Standard (IS) codes (such as IS 456:2000 for reinforced concrete, IS 800:2007 for structural steel, IS 1893:2016 for seismic design, IS 875 for wind and structural loading, and IS 10262:2019 for concrete mix proportioning).&lt;/li&gt;
&lt;li&gt;Perform step-by-step mathematical engineering calculations (limiting moment of resistance, shear capacity, development length, rebar curtailment, and deflection limits).&lt;/li&gt;
&lt;li&gt;Adjust concrete pouring and curing regimes based on real-time micro-climate factors (temperature, relative humidity, wind speed) to prevent thermal cracking and plastic shrinkage as per IS 7861.&lt;/li&gt;
&lt;li&gt;Inspect on-site craftsmanship (rebar placement, cover block clearances, shuttering verticality, honeycombing) and produce stamped technical audit sheets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In deep basement pits with zero cell reception, conventional cloud-based AI tools are completely unusable. He needed an intelligent, reliable engineering co-pilot that lives directly on his device and never requires an internet connection to solve complex structural problems. To solve this, I built &lt;strong&gt;Raghav AI&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  What ShramPark Does
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Raghav AI (Offline On-Device Engineering Assistant)&lt;/strong&gt;: Runs Google's open-weight &lt;strong&gt;Gemma 4 E2B&lt;/strong&gt; model 100% locally in the browser using &lt;strong&gt;LiteRT-LM&lt;/strong&gt; and &lt;strong&gt;WebGPU&lt;/strong&gt;. Named 'Raghav', this assistant acts as an on-site engineering colleague that performs limit-state RC beam/slab/column design, shear checks, development length derivations, and mix design checks completely offline with zero server roundtrips.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SiteVision (AI Quality &amp;amp; Safety Inspector)&lt;/strong&gt;: Computer vision diagnostics allowing engineers and supervisors to snap photos of rebar cages, shuttering, or freshly cast concrete to detect honeycombing, cover block placement errors, slurry leaks, and safety non-compliance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Micro-Climate Engineering Personalization&lt;/strong&gt;: Integrates live site geolocation and micro-climate data (ambient temperature, humidity, wind speed) to automatically calculate evaporation rates, adjust curing durations, and suggest plastic shrinkage precautions as per IS 7861.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Standardized PDF Engineering Memos&lt;/strong&gt;: Generates client-side, formatted technical calculation reports and site inspection checklists with KaTeX mathematical formulas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailored for 2 Core Site Roles&lt;/strong&gt;: Streamlined explicitly for &lt;strong&gt;Supervisor&lt;/strong&gt; (field safety and visual audits) and &lt;strong&gt;Engineer&lt;/strong&gt; (structural derivations and IS compliance).&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;The application is deployed and ready to use live in the field:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Deployment URL&lt;/strong&gt;: &lt;a href="https://shrampark.vercel.app/" rel="noopener noreferrer"&gt;https://shrampark.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Core Workflows to Test:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;/raghav&lt;/strong&gt;: Initialize the on-device Gemma 4 E2B WebGPU engine (download once or select a local &lt;code&gt;.litertlm&lt;/code&gt; artifact) for 100% offline civil engineering derivations and IS code calculations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;/sitevision&lt;/strong&gt;: Perform image-based field inspections and generate automated IS code compliance checklists.&lt;/li&gt;
&lt;/ul&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/Megh2005" rel="noopener noreferrer"&gt;
        Megh2005
      &lt;/a&gt; / &lt;a href="https://github.com/Megh2005/dev-challange-1" rel="noopener noreferrer"&gt;
        dev-challange-1
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      ShramPark is an offline-first, mobile-responsive AI engineering companion and construction site safety platform built specifically for my civil engineer friend, Raghav.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="flash flash-error mb-3"&gt;Error in user YAML: (&amp;lt;unknown&amp;gt;): mapping values are not allowed in this context at line 1 column 17&lt;/div&gt;
&lt;div class="highlight highlight-source-yaml notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;---
&lt;span class="pl-ent"&gt;title&lt;/span&gt;: &lt;span class="pl-s"&gt;ShramPark: Offline-First AI Engineering Companion 'Raghav' Built for My Civil Engineer Friend&lt;/span&gt;
&lt;span class="pl-ent"&gt;published&lt;/span&gt;: &lt;span class="pl-c1"&gt;true&lt;/span&gt;
&lt;span class="pl-ent"&gt;tags&lt;/span&gt;: &lt;span class="pl-s"&gt;devchallenge, weekendchallenge, hf26challenge&lt;/span&gt;
---
&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01" rel="nofollow"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What I Built&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;ShramPark&lt;/strong&gt; is an offline-first, mobile-responsive AI engineering companion and construction site safety platform. At its core is &lt;strong&gt;Raghav AI&lt;/strong&gt;—an on-device structural engineering assistant built specifically for my civil engineer friend.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;The Problem My Friend Faced&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;My friend works as a structural and site civil engineer on active, high-pressure infrastructure and building projects. He spends hours stationed deep underground in basement excavations, piling pits, tunnel shafts, and remote jobsites where cellular networks and internet connectivity drop to absolute zero.&lt;/p&gt;
&lt;p&gt;On active sites, he constantly needs to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Cross-reference complex Indian Standard (IS) codes…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Megh2005/dev-challange-1" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/Megh2005/dev-challange-1" rel="noopener noreferrer"&gt;https://github.com/Megh2005/dev-challange-1&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;ShramPark is architected around open-weight on-device AI designed to withstand harsh, disconnected construction jobsite environments:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Open-Source &amp;amp; Open-Weight AI Architecture (Gemma + LiteRT-LM)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model&lt;/strong&gt;: &lt;strong&gt;Gemma 4 E2B&lt;/strong&gt; (&lt;code&gt;gemma-4-E2B-it-web.litertlm&lt;/code&gt;), Google's open-weight instruct model quantized and packaged for the LiteRT runtime.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inference Runtime&lt;/strong&gt;: &lt;strong&gt;LiteRT-LM (&lt;code&gt;@litert-lm/core&lt;/code&gt;)&lt;/strong&gt; executing client-side on-device inference via &lt;strong&gt;WebGPU&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Distribution&lt;/strong&gt;: Hosted openly on Hugging Face (&lt;a href="https://huggingface.co/litert-community/gemma-4-E2B-it-litert-lm" rel="noopener noreferrer"&gt;&lt;code&gt;litert-community/gemma-4-E2B-it-litert-lm&lt;/code&gt;&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Server Overhead&lt;/strong&gt;: The model file is cached client-side using browser Cache Storage or loaded directly via the File System Access API from the user's hard drive. Inference consumes 0 server compute and transmits 0 bytes over the wire.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Engine Optimization&lt;/strong&gt;: Configured with a 4096-token execution context and KV cache recycling to execute step-by-step mathematical proofs and limit-state safety factor derivations without GPU out-of-memory errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Full-Stack &amp;amp; Engineering Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework&lt;/strong&gt;: &lt;strong&gt;Next.js 14 (App Router)&lt;/strong&gt; with TypeScript and Tailwind CSS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multimodal Field Inspections&lt;/strong&gt;: Google Generative AI (&lt;code&gt;@google/generative-ai&lt;/code&gt;) for visual defect analysis and safety compliance audits in SiteVision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mathematical Typography&lt;/strong&gt;: &lt;code&gt;react-markdown&lt;/code&gt;, &lt;code&gt;remark-math&lt;/code&gt;, &lt;code&gt;rehype-katex&lt;/code&gt;, and &lt;code&gt;katex&lt;/code&gt; for rendering complex civil engineering formulas and equations cleanly on mobile screens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audio &amp;amp; Accessibility&lt;/strong&gt;: Speech synthesis APIs and Cloud Speech for hands-free audio playback on noisy sites.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document Export&lt;/strong&gt;: &lt;code&gt;jspdf&lt;/code&gt; and &lt;code&gt;@react-pdf/renderer&lt;/code&gt; for instant client-side generation of stamped site inspection logs and structural calculation sheets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database &amp;amp; Auth&lt;/strong&gt;: MongoDB Atlas with &lt;code&gt;@auth/mongodb-adapter&lt;/code&gt; and &lt;code&gt;next-auth&lt;/code&gt; for role-based access control (Supervisor, Engineer).&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Open innovation is what made ShramPark viable for real-world construction:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;True Offline Independence in Dead Zones&lt;/strong&gt;:&lt;br&gt;
Closed-source APIs require round-trip internet requests. On construction sites—inside double-basements, metro tunnels, rebar fabrication yards, or remote flyover sites—cellular signals are weak or non-existent. Open weights paired with LiteRT-LM allow my friend and site engineers to carry an entire structural engineering brain directly in their laptop or tablet browser without a single bar of cell reception.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Zero Incurred In-Field Costs&lt;/strong&gt;:&lt;br&gt;
Civil engineers, site supervisors, and independent contractors cannot afford recurring monthly API subscriptions or per-token fees for routine field calculations. Open-weight local inference delivers complete engineering calculations without recurring expenses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Domain Ownership &amp;amp; Adherence to Local Standards&lt;/strong&gt;:&lt;br&gt;
Generalist closed APIs frequently default to foreign codes (ACI 318, Eurocodes, or British Standards). Open innovation enables us to constrain and instruct open weights exclusively on Indian Standards (Bureau of Indian Standards: IS 456:2000, IS 1893:2016, IS 800:2007, IS 10262:2019) with deterministic formatting and rigorous limit checks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Privacy and Site Data Sovereignty&lt;/strong&gt;:&lt;br&gt;
Proprietary structural drawings, tender blueprints, and on-site defect photos remain strictly on the engineer’s machine, guaranteeing complete IP protection for builders and contractors.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;This project was developed with the assistance of agentic workflows in &lt;strong&gt;Google Antigravity&lt;/strong&gt;, which accelerated:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Integration and debugging of &lt;code&gt;@litert-lm/core&lt;/code&gt; WebGPU bindings and KV cache memory cleanup.&lt;/li&gt;
&lt;li&gt;Prompt design for strict IS code adherence, mathematical formula formatting, and micro-climate contextualization.&lt;/li&gt;
&lt;li&gt;Clean Next.js 14 architecture with responsive mobile layouts tailored for high-glare outdoor construction use.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Build on Gemma&lt;/strong&gt;: ShramPark harnesses Google's open-weight &lt;strong&gt;Gemma 4 E2B&lt;/strong&gt; model running completely on-device in the browser via &lt;strong&gt;LiteRT-LM (&lt;code&gt;@litert-lm/core&lt;/code&gt;)&lt;/strong&gt; and &lt;strong&gt;WebGPU&lt;/strong&gt;. By delivering 100% offline, zero-latency inference directly on client hardware, it solves the critical problem of cellular dead-zones in deep basement excavations and remote civil infrastructure projects, enabling step-by-step IS-code compliant structural calculations without ever pinging a cloud server.&lt;/li&gt;
&lt;/ul&gt;

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