<?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: Apurv</title>
    <description>The latest articles on DEV Community by Apurv (@krvnium).</description>
    <link>https://dev.to/krvnium</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%2F4158474%2Fd7a89322-18ce-461a-9c5d-a094d0fc97c9.jpg</url>
      <title>DEV Community: Apurv</title>
      <link>https://dev.to/krvnium</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/krvnium"/>
    <language>en</language>
    <item>
      <title>LearnCLI — an offline study tool I built on my phone for a friend prepping for JEE</title>
      <dc:creator>Apurv</dc:creator>
      <pubDate>Sun, 04 Oct 2026 19:15:14 +0000</pubDate>
      <link>https://dev.to/krvnium/learncli-an-offline-study-tool-i-built-on-my-phone-for-a-friend-prepping-for-jee-37a6</link>
      <guid>https://dev.to/krvnium/learncli-an-offline-study-tool-i-built-on-my-phone-for-a-friend-prepping-for-jee-37a6</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;
  
  
  &lt;strong&gt;What I Built&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;A friend of mine is prepping for JEE and keeps hitting the same problem — she's studying somewhere with spotty internet, and every "AI study helper" out there needs a connection and usually a subscription. So I built LearnCLI: a tiny terminal tool that explains a topic and throws a practice question back at you, running fully offline.&lt;/p&gt;

&lt;p&gt;You type a topic, it thinks for a few seconds, and it gives you a plain-text explanation plus one question to test yourself with. No account, no internet, no API bill.&lt;/p&gt;

&lt;p&gt;The twist is I didn't have a laptop while building this. I did the entire thing on my phone, in Termux.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyutuyvwdut0mqiolbnrb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyutuyvwdut0mqiolbnrb.png" alt=" " width="800" height="936"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(this is a real run asking it to explain Newton's third law)&lt;/p&gt;

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

&lt;p&gt;Repo: &lt;a href="https://github.com/krvnium/LearnCLI" rel="noopener noreferrer"&gt;https://github.com/krvnium/LearnCLI&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Everything runs through &lt;a href="https://github.com/ggerganov/llama.cpp" rel="noopener noreferrer"&gt;llama.cpp&lt;/a&gt;, compiled straight from source inside Termux on my Poco M4 Pro. No GPU, no cloud box, just phone CPU.&lt;/p&gt;

&lt;p&gt;For the model, I went with Gemma 3 1B, quantized down to Q4_K_M (~800MB), small enough that it actually runs at a usable speed on a phone.&lt;/p&gt;

&lt;p&gt;The script itself is plain Python, calling the compiled llama-cli binary and cleaning up its output — stripping markdown symbols the model likes to throw in, cutting off a marker token I use internally to separate the prompt from the actual answer, and wrapping everything in a little terminal UI so it feels less like a raw model dump and more like an actual tool.&lt;/p&gt;

&lt;p&gt;Build process, roughly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;pkg install&lt;/code&gt; the usual suspects (clang, cmake, git, python) in Termux&lt;/li&gt;
&lt;li&gt;clone and compile llama.cpp natively on-device&lt;/li&gt;
&lt;li&gt;pull the Gemma GGUF from Hugging Face&lt;/li&gt;
&lt;li&gt;write the Python wrapper around it&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;This only works because the model weights and the inference engine are both open. Gemma being open-weight means I can download it once and run it forever, no API key, no per-request cost, no "service unavailable" when my friend's hostel wifi dies at 11pm before an exam. llama.cpp being open-source is the other half — it's what let me actually get a transformer model running on a phone's CPU without needing anyone's permission or infrastructure.&lt;/p&gt;

&lt;p&gt;A closed API would've meant my friend needs internet every single time she wants to use this, and I'd be the one paying for her queries. With this, I built it once, and it just works, offline, for free, for as long as the phone has battery.&lt;/p&gt;

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