<?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: abdullah85</title>
    <description>The latest articles on DEV Community by abdullah85 (@abdullah85).</description>
    <link>https://dev.to/abdullah85</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%2F309800%2Fe3409c46-e92e-4115-b314-c7a615a3b81d.jpg</url>
      <title>DEV Community: abdullah85</title>
      <link>https://dev.to/abdullah85</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdullah85"/>
    <language>en</language>
    <item>
      <title>Le Laissez-Log: Record what you learn everyday, Lazily in the Background</title>
      <dc:creator>abdullah85</dc:creator>
      <pubDate>Mon, 26 Oct 2026 06:57:42 +0000</pubDate>
      <link>https://dev.to/abdullah85/le-laissez-log-record-what-you-learn-everyday-lazily-in-the-background-2ogb</link>
      <guid>https://dev.to/abdullah85/le-laissez-log-record-what-you-learn-everyday-lazily-in-the-background-2ogb</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;Le Laissez-Log is a small &lt;strong&gt;terminal-session watcher for &lt;a href="https://github.com/ActivityWatch/activitywatch" rel="noopener noreferrer"&gt;ActivityWatch&lt;/a&gt;&lt;/strong&gt;, the open-source, local-first time tracker.&lt;/p&gt;

&lt;p&gt;ActivityWatch already knows &lt;em&gt;when&lt;/em&gt; you are at the keyboard (&lt;code&gt;aw-watcher-afk&lt;/code&gt;) and &lt;em&gt;which window&lt;/em&gt; is active (&lt;code&gt;aw-watcher-window&lt;/code&gt;). What it doesn't know is &lt;strong&gt;what you actually did in the terminal&lt;/strong&gt;, which is where a lot of daily learning happens: the commands you tried, the errors you hit, the fix that finally worked.&lt;/p&gt;

&lt;p&gt;My watcher wraps your shell in a PTY and writes &lt;strong&gt;one ActivityWatch event per command&lt;/strong&gt;: the command, how long it ran, and a short, redacted snippet of its output. You keep working as usual. The log builds itself in the background, so at the end of the day there is a searchable record of what you learned, with no note-taking.&lt;/p&gt;

&lt;p&gt;The lazy part: no habit to maintain and nothing to write down. You work and it records.&lt;/p&gt;

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

&lt;p&gt;Start a throwaway ActivityWatch server, run the wrapper, type a few commands, then &lt;code&gt;exit&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# terminal 1&lt;/span&gt;
aw-server &lt;span class="nt"&gt;--testing&lt;/span&gt;

&lt;span class="c"&gt;# terminal 2&lt;/span&gt;
python aw_watcher_terminal.py &lt;span class="nt"&gt;--testing&lt;/span&gt;
&lt;span class="c"&gt;# ...type a few commands, then exit...&lt;/span&gt;

&lt;span class="c"&gt;# terminal 3: read the events back&lt;/span&gt;
curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="s2"&gt;"localhost:5666/api/0/buckets/aw-watcher-terminal_&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;hostname&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;/events"&lt;/span&gt; | jq &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'.[] | {timestamp, duration, data}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--testing&lt;/code&gt; must match how the server was started: &lt;code&gt;aw-server --testing&lt;/code&gt; listens on port 5666 with a separate database, while a plain &lt;code&gt;aw-server&lt;/code&gt; uses port 5600 and your real data. If they don't match, the watcher tells you which port it couldn't reach.&lt;/p&gt;

&lt;p&gt;A real event from my machine, for the command &lt;code&gt;ls&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"timestamp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2026-10-26T06:53:00.822000+00:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"duration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.004932&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"cmd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ls"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"approx"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"output_bytes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;149&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"output_head"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"aw_watcher_terminal.py  LICENSE    requirements.txt&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;laissez-log-post.md     README.md  typescript&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;The whole watcher is one file, &lt;code&gt;aw_watcher_terminal.py&lt;/code&gt;, built on &lt;code&gt;aw-client&lt;/code&gt;. To run it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;aw-client aw-server
aw-server &lt;span class="nt"&gt;--testing&lt;/span&gt; &amp;amp;
python aw_watcher_terminal.py &lt;span class="nt"&gt;--testing&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Options: &lt;code&gt;--max-output N&lt;/code&gt; (bytes of output kept per command, &lt;code&gt;0&lt;/code&gt; to disable), &lt;code&gt;--settle SECONDS&lt;/code&gt;, &lt;code&gt;--shell PATH&lt;/code&gt;, and &lt;code&gt;--debug FILE&lt;/code&gt; to log terminal state without logging keystrokes.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Learning the system first
&lt;/h3&gt;

&lt;p&gt;Before writing anything, I ran &lt;code&gt;aw-server&lt;/code&gt;, &lt;code&gt;aw-watcher-afk&lt;/code&gt; and &lt;code&gt;aw-watcher-window&lt;/code&gt; as separate processes instead of using the bundled tray launcher, and poked at the REST API with &lt;code&gt;curl&lt;/code&gt;. Three things became clear:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Everything is events inside buckets.&lt;/strong&gt; A bucket is a named stream from one source on one host, and an event is &lt;code&gt;{timestamp, duration, data}&lt;/code&gt; with arbitrary JSON data. The server doesn't know what the data means; meaning is applied at query time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watchers send heartbeats, not one event per poll.&lt;/strong&gt; If a heartbeat has the same data and arrives within &lt;code&gt;pulsetime&lt;/code&gt; of the last event's end, the server &lt;em&gt;extends&lt;/em&gt; that event. Otherwise it starts a new one. My AFK bucket showed this directly: a single &lt;code&gt;not-afk&lt;/code&gt; event whose &lt;code&gt;duration&lt;/code&gt; grew in steps of about 5 seconds (the watcher's poll interval) while its &lt;code&gt;timestamp&lt;/code&gt; never changed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I confirmed the rule by hand.&lt;/strong&gt; From IPython, I created my own bucket and sent heartbeats with a 10-second &lt;code&gt;pulsetime&lt;/code&gt;. Two identical heartbeats a few milliseconds apart produced one event with a duration of 0.029s. Identical heartbeats more than 10 seconds apart produced separate events, and different data always produced a new event.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The watcher
&lt;/h3&gt;

&lt;p&gt;There is no official watcher for terminal content. The closest one, &lt;code&gt;aw-watcher-input&lt;/code&gt;, counts keypresses only and deliberately doesn't record which keys. So I built one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It runs your &lt;code&gt;$SHELL&lt;/code&gt; inside a PTY, relays bytes both ways, and rebuilds each command from the keystrokes you type.&lt;/li&gt;
&lt;li&gt;It writes events with &lt;code&gt;client.insert_event&lt;/code&gt;. A command is a discrete event rather than a heartbeat stream, so it's written once the shell prompt has returned and output has gone quiet.&lt;/li&gt;
&lt;li&gt;The window watcher keeps recording which window was active, so the two buckets can be joined by timestamp at query time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Privacy decisions that shaped the design
&lt;/h3&gt;

&lt;p&gt;A terminal recorder is sensitive by nature, so I made these choices on purpose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One session, not a global keylogger.&lt;/strong&gt; A system-wide key hook would see every app. A PTY wrapper sees only the session it wraps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Record only when the shell owns the terminal.&lt;/strong&gt; Keystrokes count only while the shell is the foreground process of the PTY, which means password prompts (&lt;code&gt;sudo&lt;/code&gt;, &lt;code&gt;ssh&lt;/code&gt;), editors, pagers and REPLs are never stored:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;  &lt;span class="n"&gt;fg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tcgetpgrp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;master&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;pid&lt;/span&gt;            &lt;span class="c1"&gt;# is the shell itself in the foreground?
&lt;/span&gt;  &lt;span class="n"&gt;recordable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;fg&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;echo_on&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;canonical_mode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Redaction and truncation.&lt;/strong&gt; &lt;code&gt;password=&lt;/code&gt;, &lt;code&gt;token=&lt;/code&gt;, &lt;code&gt;api_key=&lt;/code&gt; patterns are redacted in both the command and its output, and output is cut to 500 bytes by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything stays local.&lt;/strong&gt; The data goes into ActivityWatch's own SQLite database on your machine, where you can inspect it, change retention, or delete it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Bugs I hit along the way
&lt;/h3&gt;

&lt;p&gt;Each of these came out of reading real events and noticing something was off:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;My first password-prompt check looked at terminal echo flags and discarded every command, because readline turns echo off at a normal prompt too. The fix was to distinguish readline (echo off, canonical mode off) from password prompts (echo off, canonical mode on).&lt;/li&gt;
&lt;li&gt;Events were only written when the &lt;em&gt;next&lt;/em&gt; command was entered or the shell exited. I switched to writing once the shell regains the foreground and the output settles. A subtle race here: the shell takes back the terminal slightly &lt;em&gt;before&lt;/em&gt; it prints its prompt, so checking too early lost the output and recorded a 2-second &lt;code&gt;sleep&lt;/code&gt; as 0 seconds.&lt;/li&gt;
&lt;li&gt;Pasting several lines leaked bracketed-paste codes (&lt;code&gt;[200~&lt;/code&gt;) into commands and split the paste into separate commands. I now parse escape sequences and treat a pasted newline as text.&lt;/li&gt;
&lt;li&gt;Output carried the trailing prompt and the next command's echo. These are now trimmed.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  AI use
&lt;/h3&gt;

&lt;p&gt;The watcher has no model at runtime. I used an AI coding assistant (Claude) as a pair programmer while building and debugging it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Commands are rebuilt from keystrokes, so history recall and tab completion can't be reconstructed. Those events get &lt;code&gt;approx: true&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Full-screen programs (like &lt;code&gt;info&lt;/code&gt;) paint with cursor movements rather than lines, so their &lt;code&gt;output_head&lt;/code&gt; is empty even though &lt;code&gt;output_bytes&lt;/code&gt; is not.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;output_head&lt;/code&gt; records what programs &lt;em&gt;print&lt;/em&gt;, which can include text you typed (a program that echoes its input will echo it into the log). Treat the database as sensitive.&lt;/li&gt;
&lt;li&gt;Only the wrapped terminal is recorded, and only the first part of each command's output.&lt;/li&gt;
&lt;li&gt;I tested with scripted PTY sessions (echo, a silent &lt;code&gt;sleep&lt;/code&gt;, a multi-line paste, a password prompt and &lt;code&gt;cat&lt;/code&gt;) and by hand on my own machine. Bash only; zsh and fish are untested.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Because the thing I wanted is something a closed service wouldn't let me build.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;I could read how it works.&lt;/strong&gt; Understanding heartbeat merging came from the open API and from experimenting against my own server, not from a vendor's description of a black box.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I could extend it.&lt;/strong&gt; ActivityWatch exposes an open REST API and a client library, so a watcher for a data source nobody had covered was an afternoon of work, not a feature request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The data stays mine.&lt;/strong&gt; Command history and output are about as personal as data gets. With an open, local-first tool I can inspect the database, set my own retention and delete it. With a closed cloud tracker, I'd be trusting a company with my terminal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It leaves room for local AI.&lt;/strong&gt; Because the log lives in an open local store, a locally run model could later summarize "what I learned today" without any of it leaving my machine. That isn't built yet, but it's the direction this opens.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;I ran it on my own machine while building this post, and it recorded real sessions: &lt;code&gt;ls&lt;/code&gt;, &lt;code&gt;man&lt;/code&gt; pages, an &lt;code&gt;info&lt;/code&gt; browser session and &lt;code&gt;exit&lt;/code&gt;. The payoff I care about isn't a number of minutes saved. It's that I no longer have to remember to write down what I tried. The terminal history I'd normally lose is now an event stream I can query by day.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>SpotWise: a gold-saver's backtester where the AI never does the maths</title>
      <dc:creator>abdullah85</dc:creator>
      <pubDate>Mon, 19 Oct 2026 06:34:07 +0000</pubDate>
      <link>https://dev.to/abdullah85/spotwise-a-gold-savers-backtester-where-the-ai-never-does-the-maths-4i8p</link>
      <guid>https://dev.to/abdullah85/spotwise-a-gold-savers-backtester-where-the-ai-never-does-the-maths-4i8p</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hf26"&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;&lt;strong&gt;SpotWise&lt;/strong&gt; lets you research and paper-trade gold, silver and platinum using real price history.&lt;/p&gt;

&lt;p&gt;It's for one specific person: a long-term saver who buys a little gold every month, buys more when the price dips, sells a little when it spikes, and is fed up with ad-filled price sites and doing the sums by hand. In India and the Gulf, where buying gold every month is normal, there are a lot of people like this.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Charts&lt;/strong&gt; for gold, silver and platinum in 13 currencies (INR, AED, USD, EUR, GBP…), with 1M–All ranges and 24k/22k purity. Switching metal, currency or purity keeps your zoom.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local prices per gram&lt;/strong&gt;, with optional duty, premium and GST/VAT taken from &lt;strong&gt;effective-dated tax profiles&lt;/strong&gt;. Rates change over time, and history should use the rate that applied then.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paper trades&lt;/strong&gt; you enter yourself appear on the chart as buy/sell markers, with your position, average cost and realised/unrealised P&amp;amp;L. They're stored only in your browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask SpotWise:&lt;/strong&gt; type a plan in plain words, like &lt;em&gt;"gold, 10000 a month for 5 years, buy double when 5% below average"&lt;/em&gt;. SpotWise backtests it against plain monthly buying and explains the result. The backtest's trades are drawn on the chart next to yours.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Who would pay for it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Jewellers and bullion dealers' websites&lt;/strong&gt; that want a price-research widget they control: no per-query AI fees, no visitor data sent to a third-party LLM, and their own local tax rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Personal-finance creators and newsletters&lt;/strong&gt; that want to answer "would buying the dip actually have helped?" with real numbers instead of opinions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Savers themselves&lt;/strong&gt;, for a small subscription, if it's ad-free and works in their currency and purity.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;&lt;strong&gt;Live app:&lt;/strong&gt; &lt;a href="https://spotwise-6by5.onrender.com/" rel="noopener noreferrer"&gt;https://spotwise-6by5.onrender.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(It's on Render's free tier, so the first load can take a few seconds while the service wakes up.)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkj3976wzimuhoosf31sf.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%2Fkj3976wzimuhoosf31sf.png" alt="SpotWise: gold 24k in INR per gram, with the Ask SpotWise and paper-trade panels" width="800" height="720"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Gold 24k in INR per gram over the past year. Below the chart: &lt;strong&gt;Ask SpotWise&lt;/strong&gt;, with example plans you can click, and &lt;strong&gt;Your paper trades&lt;/strong&gt;, which draws your buys and sells on the chart.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmzhilxofqnxw5ccv49b3.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%2Fmzhilxofqnxw5ccv49b3.png" alt="SpotWise on a phone" width="420" height="900"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It works on a phone too.&lt;/p&gt;

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


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/abdullah85" rel="noopener noreferrer"&gt;
        abdullah85
      &lt;/a&gt; / &lt;a href="https://github.com/abdullah85/spotwise" rel="noopener noreferrer"&gt;
        spotwise
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Entry for https://dev.to/challenges/hacktoberfest-week2-2026-10-12
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;SpotWise&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;Research and paper-trade gold, silver and platinum on real price history
Built for the DEV Hacktoberfest Open-Source AI Challenge (Week 2, "Side Hustle").&lt;/p&gt;
&lt;p&gt;SpotWise is for a long-term saver who buys gold monthly, buys more when prices are low and
sells a little when they are high, and is tired of ad-filled price sites and doing the sums by hand.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What it does&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Charts&lt;/strong&gt; for gold, silver and platinum in many currencies, with 1M/6M/1Y/3Y/5Y/All ranges
tooltips, and metal / currency / purity (24k, 22k) switching that keeps your zoom.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Price conversion&lt;/strong&gt; to per-gram prices in your currency, with optional duty, premium and GST/VAT
using &lt;strong&gt;effective-dated tax profiles&lt;/strong&gt; (rates change; history stays correct).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paper trades&lt;/strong&gt; you add yourself, drawn on the chart as buy/sell markers, with position,
average cost and realised / unrealised profit and loss. Stored in your browser only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask SpotWise (AI)&lt;/strong&gt;: describe a plan in plain…&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/abdullah85/spotwise" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; FastAPI (Python). Price conversion, backtest engines, data validation and the AI layer are small, pure, tested modules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React + TradingView Lightweight Charts (Apache-2.0, attribution kept on).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data:&lt;/strong&gt; &lt;a href="https://metals.dev" rel="noopener noreferrer"&gt;metals.dev&lt;/a&gt; price history, fetched by a resumable script that counts every call (the free plan allows 100 calls a month) and checks the data for gaps, zero prices and large jumps. Prices are stored in &lt;strong&gt;Neon Postgres&lt;/strong&gt; and shown only inside the app, with credit to metals.dev. The repo contains no dataset and no keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy:&lt;/strong&gt; one &lt;strong&gt;Render&lt;/strong&gt; web service. FastAPI serves the built frontend and the API from the same URL.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The AI never does arithmetic
&lt;/h3&gt;

&lt;p&gt;LLMs are bad at sums, and a finance tool can't get money wrong. So the model does only two jobs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Text → JSON request.&lt;/strong&gt; The model fills a JSON schema (&lt;code&gt;response_format: json_schema&lt;/code&gt;), and Pydantic bounds-checks the output. Model output is never trusted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result → explanation.&lt;/strong&gt; Plain code runs the backtest, then the model writes a short summary from a list of facts the code supplies. &lt;strong&gt;Every number in that summary must appear in those facts&lt;/strong&gt; (&lt;code&gt;numbers_ok()&lt;/code&gt;). If it doesn't, SpotWise uses template text instead.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With no model configured, the app still works end to end, using a rule-based parser and the templates. That's also why a &lt;strong&gt;small, self-hosted open-weight model&lt;/strong&gt; is enough: it only has to turn text into a structure and write a sentence, never reason about money.&lt;/p&gt;

&lt;p&gt;The public demo currently runs without a model connected, so you'll see the built-in parser and template explanations there. Point &lt;code&gt;SPOTWISE_LLM_URL&lt;/code&gt; at your own open-weight model server to switch the model on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why open innovation matters here
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The economics work.&lt;/strong&gt; A bullion dealer's widget might answer thousands of questions a day. With a self-hosted open model the cost per question is basically zero, so it doesn't eat a jeweller's thin margins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No lock-in.&lt;/strong&gt; Any OpenAI-compatible server works (&lt;code&gt;SPOTWISE_LLM_URL&lt;/code&gt;, &lt;code&gt;SPOTWISE_LLM_MODEL&lt;/code&gt;): llama.cpp, vLLM, Ollama. If a better small model comes out next month, you switch with a config change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy.&lt;/strong&gt; What people ask, and how much they save each month, is personal financial information. It never has to leave the operator's server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trust you can check.&lt;/strong&gt; The code is MIT-licensed and the conversion maths is tested against fixed vectors, so anyone can confirm the numbers aren't made up.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Not financial advice
&lt;/h2&gt;

&lt;p&gt;SpotWise is an educational tool that only does paper trading. Backtests use spot prices and ignore making charges, and past results don't predict the future.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Prices by metals.dev.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>hf26challenge</category>
      <category>devchallenge</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
    <item>
      <title>New Year, New Me as Authentic as Possible, reflecting existing CV</title>
      <dc:creator>abdullah85</dc:creator>
      <pubDate>Mon, 02 Feb 2026 07:40:37 +0000</pubDate>
      <link>https://dev.to/abdullah85/new-year-new-you-as-authentic-as-possible-reflecting-existing-cv-1l5i</link>
      <guid>https://dev.to/abdullah85/new-year-new-you-as-authentic-as-possible-reflecting-existing-cv-1l5i</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/new-year-new-you-google-ai-2025-12-31"&gt;New Year, New You Portfolio Challenge Presented by Google AI&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  About Me
&lt;/h2&gt;

&lt;p&gt;I am a full stack developer, and would like to showcase my skills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Portfolio
&lt;/h2&gt;


&lt;div class="ltag__cloud-run"&gt;
  &lt;iframe width="100%" height="600px" src="https://aakworks-1003162804902.asia-southeast3.run.app/"&gt;
  &lt;/iframe&gt;
&lt;/div&gt;


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

&lt;p&gt;I used the Gemini CLI to build the portfolio from scratch. I used my existing cv pdf as an inspiration for getting started. I needed a site that would be as authentic to the work as possible. &lt;/p&gt;

&lt;h2&gt;
  
  
  What I'm Most Proud Of
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The code for generating the site is a project.&lt;/li&gt;
&lt;li&gt;The theme is extracted from the resume pdf provided as input.&lt;/li&gt;
&lt;li&gt;The portfolio site can be updated dynamically&lt;/li&gt;
&lt;li&gt;The project for creating the portfolio can be adapted by anyone. &lt;/li&gt;
&lt;li&gt;The portfolio is compact as a single scrollable site.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>googleaichallenge</category>
      <category>portfolio</category>
      <category>gemini</category>
    </item>
    <item>
      <title>Landing Page for Precious Metal Pricing History</title>
      <dc:creator>abdullah85</dc:creator>
      <pubDate>Sun, 01 Feb 2026 18:22:24 +0000</pubDate>
      <link>https://dev.to/abdullah85/landing-page-for-precious-metal-pricing-history-28oe</link>
      <guid>https://dev.to/abdullah85/landing-page-for-precious-metal-pricing-history-28oe</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is my submission for &lt;a href="https://dev.to/deved/build-apps-with-google-ai-studio"&gt;DEV Education Track: Build Apps with Google AI Studio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I built a landing page for viewing the live or historic prices for precious metals like gold, silver and platinum in fiat currencies such as USD, GBP and the like.&lt;/p&gt;

&lt;p&gt;I used one prompt summarizing my requirements as show below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I would like to create a landing page for a site that displays historical accurate charts with a minimum\
 period range over the past 5 years for precious metals as Gold, silver, platinum in terms of USD and ot\
her international currencies. Use Imagen for generating attractive images specifically for authentically\
 representing the metal bars and coins where appropriate. I do not want excessive imagery and avoid face\
s of animals or humans or other creatures. I prefer the images to convey professionalism and present the\
 allure of precious metals without overdoing it. I want the code to be in HTML, CSS and Javascript only.\
 That is, any script used must be in pure javascript with .js extensions and I do not want typescript fi\
les with .ts extensions. Also, provide documentation with `README.md` for a high level overview and `INS\
TALL.md` for installation specific instructions.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I requested the Imagen tool to generate relevant images.&lt;/p&gt;

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

&lt;p&gt;The app is deployed at &lt;a href="https://aureum-precious-metals-analytics-1003162804902.us-west1.run.app/" rel="noopener noreferrer"&gt;https://aureum-precious-metals-analytics-1003162804902.us-west1.run.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4y65vtoyp40fuqh5krti.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.amazonaws.com%2Fuploads%2Farticles%2F4y65vtoyp40fuqh5krti.png" alt="Landing page for the application"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Experience
&lt;/h2&gt;

&lt;p&gt;Some of the key takeaways are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Google AI studio has integrated multiple tools to speed up building an application from scratch.&lt;/li&gt;
&lt;li&gt;The tool defaults to using &lt;code&gt;.ts&lt;/code&gt; or &lt;code&gt;.tsx&lt;/code&gt; extensions despite requesting it to avoid these approaches.&lt;/li&gt;
&lt;li&gt;The tool also defaults to using React despite not requesting it.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>deved</category>
      <category>learngoogleaistudio</category>
      <category>ai</category>
      <category>gemini</category>
    </item>
  </channel>
</rss>
