<?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: Tunde Jonah Olabanjo</title>
    <description>The latest articles on DEV Community by Tunde Jonah Olabanjo (@tunde_jonaholabanjo_f863).</description>
    <link>https://dev.to/tunde_jonaholabanjo_f863</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%2F1882233%2F585caca7-ec8a-47b9-a42e-dea50fd7ae98.jpg</url>
      <title>DEV Community: Tunde Jonah Olabanjo</title>
      <link>https://dev.to/tunde_jonaholabanjo_f863</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tunde_jonaholabanjo_f863"/>
    <language>en</language>
    <item>
      <title>M : a calm voice that says "breathe" before you hit send</title>
      <dc:creator>Tunde Jonah Olabanjo</dc:creator>
      <pubDate>Sat, 21 Nov 2026 19:41:55 +0000</pubDate>
      <link>https://dev.to/tunde_jonaholabanjo_f863/m2-a-calm-voice-companion-that-notices-when-youre-tense-2jp4</link>
      <guid>https://dev.to/tunde_jonaholabanjo_f863/m2-a-calm-voice-companion-that-notices-when-youre-tense-2jp4</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/presage-2026-11-04"&gt;Presage SmartSpectra SDK Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;M² (say "M squared") is a calm voice companion for the minutes after a message shakes you.&lt;/p&gt;

&lt;p&gt;You know the moment. A text from your boss, a family group chat, a message you want to answer &lt;em&gt;right now&lt;/em&gt; while your chest is still tight. That is the exact moment people send the thing they regret. M² sits beside you in that moment. You type or talk to it, it answers out loud in a calm voice, and with your consent it reads your breathing and pulse from a short video of your face using the Presage SmartSpectra SDK. It compares that reading with &lt;em&gt;your own&lt;/em&gt; calm, then helps you decide what to say, or whether to wait a few breaths first.&lt;/p&gt;

&lt;p&gt;It only advises. Sending a message is always your choice, and M² never touches your messages. It is a wellness companion, not a medical device. It does not diagnose or treat anyone, and it says so on the first screen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why I built it.&lt;/strong&gt; M² is modelled after my girlfriend. She is the person who keeps me calm. When a message has me wound up, she is the one who slows me down, and that is the whole reason I am building this: I wanted that steady voice available in the moment, for the times when no one is next to you. M² is not her and does not replace her. It is my attempt to turn what she does for me into something anyone could have beside them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who made it.&lt;/strong&gt; I am a student in Abuja. I do not write code myself, so this was built together with Claude (I used the AI Disclosure button for that). I decided what M² should be, what it should never claim, and what to cut when it did not work. Claude wrote the code, and we argued about the rest. The app is MIT licensed and public.&lt;/p&gt;

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

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/YEVI6UXXihs" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The demo is one real session in &lt;strong&gt;Clip mode&lt;/strong&gt;, cut down from a 28 minute recording. Two clips of my sister (she works in a hospital) were read by the Presage SDK inside the app. For each clip she also photographed the pulse reading on a hospital monitor, and both photos are shown next to M²'s numbers in the video.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Clip 1, calm:&lt;/strong&gt; M² read 23.5 breaths a minute and a pulse of 77 bpm. The monitor showed 65. M² was 12 bpm higher here, and the video says so.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clip 2, after she had moved about a bit:&lt;/strong&gt; M² read 25.3 breaths a minute and a pulse of 88 bpm, with tension 38 against the calm it learned from clip 1. The monitor showed 89.&lt;/li&gt;
&lt;li&gt;I type to M² and it answers in text and in its calm voice. It asks what was happening before the reading, and when I ask it to compare the two readings it uses the tension number.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How the video was made, plainly: the two scans are sped up 24x (on my laptop each real read takes about 9 minutes), and everything else is real time from the same recording. Nothing is staged, and the captions in the video say what is sped up.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/OlatundeOlabanj/m2-calm-companion" rel="noopener noreferrer"&gt;https://github.com/OlatundeOlabanj/m2-calm-companion&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The README has a quick start (Node 22.12+, a free Presage key, optionally a Groq key, &lt;code&gt;npm install &amp;amp;&amp;amp; npm test&lt;/code&gt;, &lt;code&gt;npm start&lt;/code&gt;), a "where Presage is used in the code" list, and an honest status section that says what was tested and what was not. There are 90 unit tests. Technical diagrams (data flow, state machine, sequence diagrams) are in &lt;code&gt;docs/diagrams&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Responds to Human Signals
&lt;/h2&gt;

&lt;p&gt;M² uses three things from the SDK: &lt;strong&gt;breathing rate&lt;/strong&gt;, &lt;strong&gt;pulse&lt;/strong&gt;, and the &lt;strong&gt;facial expression&lt;/strong&gt; readings. (It also looks for HRV, but see the limits below.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The reading.&lt;/strong&gt; The Presage Node SDK is used through its file input (&lt;code&gt;useFile&lt;/code&gt;) inside an Electron app. The app records about a minute from the camera to a temporary file, or you pick a clip you already have. A separate process feeds that file to the SDK and collects the breathing, pulse and expression messages. The SDK sends breathing and pulse as separate messages, so the reader merges them into one summary. Running the reader in its own process is what keeps a slow computer responsive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your calm, not an average.&lt;/strong&gt; The first reading you take while relaxed becomes &lt;em&gt;your calm&lt;/em&gt;. It is stored as the median of your breathing and pulse samples, plus a robust spread (median absolute deviation, with a floor so a very steady clip does not make every later reading look huge). Nothing is compared with a population number.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tension number.&lt;/strong&gt; A later reading is compared with your calm: how far breathing and pulse sit &lt;em&gt;above&lt;/em&gt; it, in units of your own spread. Breathing counts 60 percent and pulse 40 percent, and only increases count, so being calmer than your baseline never raises the score. A small expression nudge can add a bit when the SDK's expression reading is stable. The result is a number from 0 to 100.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What M² does with it.&lt;/strong&gt; The number decides what M² says, and the wording only states measurements, never an emotion or a diagnosis:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Low: "You look settled."&lt;/li&gt;
&lt;li&gt;Middle: "A little above your calm," then an offer to breathe together.&lt;/li&gt;
&lt;li&gt;High: "Your body looks tense," then a suggestion to slow down before sending anything.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every number on screen carries its unit (breaths per minute, bpm). A pulse outside a plausible range is rejected instead of shown, because a sensor value a person knows is wrong is worse than no value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The send gate.&lt;/strong&gt; There is a small state machine for the moment of sending: &lt;em&gt;open&lt;/em&gt;, &lt;em&gt;locked&lt;/em&gt;, &lt;em&gt;review&lt;/em&gt;. Tension at or above 55 for 3 seconds holds Send. Tension below 30 for 8 seconds moves it to a review step where you read your message once more. If the signal is poor it pauses and never locks, and there is always a manual override, because the gate is advice, not a prison. This logic is unit-tested, but I have not shown it in the demo video.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Talking to it.&lt;/strong&gt; You can type to M² or talk to it. It uses Groq for the conversation and a natural voice, only if you tick the box, with a plain offline voice as a fallback. The AI is told the few numbers it is allowed to use and is told not to talk about a body it cannot see.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reference check, one person and two clips.&lt;/strong&gt; I wanted at least one outside number to compare against, so my sister photographed a hospital monitor's pulse reading for each clip.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;M² breathing&lt;/th&gt;
&lt;th&gt;M² pulse&lt;/th&gt;
&lt;th&gt;Monitor pulse&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Clip 1 (calm)&lt;/td&gt;
&lt;td&gt;23.5 per minute&lt;/td&gt;
&lt;td&gt;77 bpm&lt;/td&gt;
&lt;td&gt;65 bpm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clip 2 (after movement)&lt;/td&gt;
&lt;td&gt;25.3 per minute&lt;/td&gt;
&lt;td&gt;88 bpm&lt;/td&gt;
&lt;td&gt;89 bpm&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On clip 2 M² was within 1 bpm. On clip 1 it was 12 bpm higher. The direction matched (pulse and breathing both higher on clip 2, and M² said "a little above your calm"), but that is two clips of one person, so it shows direction and not accuracy. There is no monitor reference for breathing rate or for the tension number. M² does not measure oxygen, so I show only the monitor's pulse. Clip 1's breathing came out at 23.5 a minute, which M² itself called on the higher side for a relaxed adult, so it is a weak calm baseline and I say so.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The honest part about "live".&lt;/strong&gt; I tried Live camera mode first. My laptop is a 2-core Intel Celeron with 3.6 GB of memory. Live reading froze the whole system, and in my test the camera gave a weak signal at about 6 frames a second. So I built Clip mode: record, then read in a separate process, one step at a time. On that laptop a clip took about 2 to 4 minutes and about 480 MB of memory. Live mode is still in the app for faster computers, with safeguards I added (lower camera resolution on small machines, a memory watchdog, a check that the camera shows a real picture), but &lt;strong&gt;I have not tested it on a fast computer and I do not claim it works there.&lt;/strong&gt; Everything in the demo is real Presage SDK output on real clips, but it is Clip mode: near real time, not continuous. I do not know for certain whether the challenge counts that as a live signal, so I am saying it plainly instead of hoping nobody asks.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Best Thoughtful Real-World Use.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What inspired it:&lt;/em&gt; the person who keeps me calm. Someone who says "breathe, don't send that yet" is the most useful thing I know in those moments, and most people do not have that person within reach at the time. M² is my attempt to put a little of that in a laptop.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The need:&lt;/em&gt; the minutes after a message that shakes you are when people send the thing they regret. Most wellness apps talk about stress in general. M² is for one specific moment, and it works at the moment of the decision, not afterwards.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Who it is for:&lt;/em&gt; anyone who has typed a reply too fast. I built it for people on ordinary, slow computers, which is why Clip mode exists at all. I use one myself.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How it is designed for them:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It starts with a plain, kind voice and asks for consent before the camera is touched.&lt;/li&gt;
&lt;li&gt;It learns your calm from you, so a naturally fast breather is not told they are tense.&lt;/li&gt;
&lt;li&gt;It never needs the camera to simply talk.&lt;/li&gt;
&lt;li&gt;When a reading fails, it tells you why (too dark, too much motion, chest not visible) instead of guessing.&lt;/li&gt;
&lt;li&gt;It says clearly what it cannot do.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Consent and Data Handling
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Camera consent:&lt;/strong&gt; the camera is used only after you tick the consent box on the first screen. A Read me tap starts each recording. No covert or background monitoring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage:&lt;/strong&gt; Clip mode records about a minute of video to a temporary file only so Presage can read it. The file is deleted when the reading ends, on cancel, and on app start or quit. A clip you choose yourself is read in place and never copied or deleted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not stored:&lt;/strong&gt; audio, messages and readings are never written to disk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SDK telemetry:&lt;/strong&gt; switched off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optional AI service:&lt;/strong&gt; Groq is off unless you tick the box. If you do, it receives short voice clips for transcription, text for the reply, and a few numbers when a reading exists. &lt;strong&gt;Never video.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keys:&lt;/strong&gt; in &lt;code&gt;.env&lt;/code&gt;, which is git-ignored.&lt;/li&gt;
&lt;li&gt;No diagnosis, treatment or medical decision-making claims anywhere. M² states measurements and suggests breathing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The build, honestly
&lt;/h2&gt;

&lt;p&gt;We started with Live mode and it did not survive my laptop. These are the things that went wrong, and what we did:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Early clips failed for ordinary reasons: too much motion, too dark, and one upside down.&lt;/li&gt;
&lt;li&gt;My code needed breathing and pulse in the same message, but the SDK sends them separately. Fixed with the merge step above.&lt;/li&gt;
&lt;li&gt;Inside Electron the SDK could not open video files at all ("input unavailable"), though the same files opened in plain Node. The reader now falls back to the system Node, and retries when the servers drop the connection.&lt;/li&gt;
&lt;li&gt;Some recordings were refused as webm. The reader now makes a clean mp4 copy with ffmpeg and tries once more.&lt;/li&gt;
&lt;li&gt;The first demo videos were bad, and I said so and redid them. After feedback on the first demo I also changed the labels (units on every number), added the on-screen note that it reads a recorded clip, and wrote a rule that rejects an implausible pulse.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Two reads of the same clip agreed (14.3 and 13.7 breaths a minute, pulse 79 and 76). That shows the reading repeats, not that it is accurate. I have not validated it against a medical device.&lt;/li&gt;
&lt;li&gt;HRV needs about 60 seconds of settled signal. On clip 2 the app showed an HRV of 75 ms, labelled "settling", so I count it as not yet validated.&lt;/li&gt;
&lt;li&gt;The calm baseline comes from one clip (clip 1) and its breathing rate was high for a calm person, so tension 38 is against a weak baseline.&lt;/li&gt;
&lt;li&gt;The monitor comparison is one person, two clips, pulse only.&lt;/li&gt;
&lt;li&gt;Live mode is untested on a fast computer. Recording with the laptop's own camera is the least-tested path; recording with a phone and choosing the clip is the reliable one.&lt;/li&gt;
&lt;li&gt;One person, one laptop. This is a prototype, not a product.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I would do next
&lt;/h2&gt;

&lt;p&gt;Test Live mode on a fast computer, take several calm and tense clips from several people with their consent, compare the readings with a proper pulse monitor, and see whether the baseline idea holds up beyond me. If it does, I will build the part I care about most: a quiet tap that appears next to the message box, just before you hit send.&lt;/p&gt;

&lt;p&gt;Made by TJS Code.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>presagechallenge</category>
    </item>
    <item>
      <title>Ghost in the Ledger: open-weight AI that finds the ghosts haunting your bank statement</title>
      <dc:creator>Tunde Jonah Olabanjo</dc:creator>
      <pubDate>Sat, 31 Oct 2026 05:00:10 +0000</pubDate>
      <link>https://dev.to/tunde_jonaholabanjo_f863/ghost-in-the-ledger-open-weight-ai-that-finds-the-ghosts-haunting-your-bank-statement-189c</link>
      <guid>https://dev.to/tunde_jonaholabanjo_f863/ghost-in-the-ledger-open-weight-ai-that-finds-the-ghosts-haunting-your-bank-statement-189c</guid>
      <description>&lt;p&gt;This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/p&gt;

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

&lt;p&gt;I live in Nigeria, where every debit comes with an SMS or an email: a POS payment at 2 AM, a small SMS fee, a subscription you forgot about, a salary that landed on the 28th and was mostly gone by the 1st. Then I noticed everyone's phone does this: a card alert, a "you made a $12.99 purchase", a pound here, a euro there. At the end of the month, nobody knows where the money went.&lt;/p&gt;

&lt;p&gt;Ghost in the Ledger takes a bank statement (PDF or CSV) or pasted alerts and SMS from almost any bank, in many currencies, and shows you the ghosts hiding in it:&lt;/p&gt;

&lt;p&gt;Subscription ghosts: the same place charging about the same amount every month.&lt;br&gt;
Fee poltergeists: overdraft, ATM and foreign transaction fees, SMS charges, VAT and stamp duty, added up.&lt;br&gt;
Midnight spenders: debits between 12 AM and 5 AM.&lt;br&gt;
Payday vanishing acts: a big credit where most of it is gone within three days.&lt;br&gt;
Leaks: many small debits to the same place.&lt;/p&gt;

&lt;p&gt;Each ghost gets a short, spooky story and the exact lines behind it, so every claim can be checked.&lt;/p&gt;

&lt;p&gt;My reading of the theme: the past is still in your account, and it keeps leaving marks. A ghost that says "your salary vanished in three days" is harder to ignore than a spreadsheet row.&lt;/p&gt;

&lt;p&gt;The part I care about most is the one you cannot see: the model is never allowed to be wrong about your money. More on that below.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/Cf_D8MKao6w" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;All demo data is fake. The app has three demo sets (US dollars, UK pounds, Nigerian naira) so anyone can try it without a statement.&lt;/p&gt;

&lt;p&gt;A real result from the US demo, written by gpt-oss-20b through Groq:&lt;/p&gt;

&lt;p&gt;The Payday Vanishing Act. On 2026-08-31 a friendly ghost paid a credit of 2850 USD, then vanished after spending 2424.99 USD, leaving a spectral 85% balance.&lt;/p&gt;

&lt;p&gt;(That is the model's own wording, quirks included. The numbers are checked against the data, the prose is the model's.)&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/OlatundeOlabanj" rel="noopener noreferrer"&gt;
        OlatundeOlabanj
      &lt;/a&gt; / &lt;a href="https://github.com/OlatundeOlabanj/ghost-in-the-ledger" rel="noopener noreferrer"&gt;
        ghost-in-the-ledger
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Open-weight AI that finds the ghosts haunting your bank statement. Local-first, a guard stops the model inventing numbers. Zero dependencies.
    &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;Ghost in the Ledger&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;Paste your bank alert emails, SMS texts or a statement, from almost any bank in the world, and a friendly ghost shows you what is quietly haunting your money: forgotten subscriptions, small bank fees, late-night spends, a payday that vanished in three days.&lt;/p&gt;
&lt;p&gt;Built for the DEV Hacktoberfest "Ghost in the Machine" challenge. It uses open-weight models (Gemma, Llama, gpt-oss) and has zero npm dependencies.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Privacy story&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Your money data is yours.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The server only listens on &lt;code&gt;127.0.0.1&lt;/code&gt;, so nothing outside your computer can open it.&lt;/li&gt;
&lt;li&gt;By default everything runs on your machine. If Ollama is installed, a small open-weight model writes the ghost stories locally.&lt;/li&gt;
&lt;li&gt;No Ollama? There is a built-in offline mode that writes the stories from templates. It needs no model and no internet.&lt;/li&gt;
&lt;li&gt;Groq (hosted open-weight model, default &lt;code&gt;openai/gpt-oss-20b&lt;/code&gt;) is an optional fallback. It is only used if you set…&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/OlatundeOlabanj/ghost-in-the-ledger" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;MIT licensed. Node 18 or newer. No npm install, because there are zero dependencies. npm start and open &lt;a href="http://127.0.0.1:8787" rel="noopener noreferrer"&gt;http://127.0.0.1:8787&lt;/a&gt;.&lt;/p&gt;

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

&lt;p&gt;Finding ghosts is plain code. The model only tells the story.&lt;/p&gt;

&lt;p&gt;lib/ghosts.js finds every ghost with deterministic code: same input, same ghosts, same numbers. The model never decides what happened. It receives the facts of one finding plus a few example lines, and its only job is to rewrite them as a short story.&lt;/p&gt;

&lt;p&gt;Three backends, picked automatically:&lt;/p&gt;

&lt;p&gt;Ollama, fully local. I ran Gemma 3 1B (4-bit Q4_K_M) on a 2-core, 3.6 GB laptop with no GPU. Works with the internet off.&lt;br&gt;
Groq, hosting an open-weight model (openai/gpt-oss-20b by default), only if you set GROQ_API_KEY. Optional. Even then, the whole statement is never sent, only short facts about each pattern.&lt;br&gt;
Offline mode, which writes the stories from templates. No model, no internet, always works.&lt;/p&gt;

&lt;p&gt;The story guard. Small models invent numbers, names and sometimes copy raw data. For a money app that is not acceptable, so every model story has to pass checks before you see it:&lt;/p&gt;

&lt;p&gt;Every number must exist in the facts or the example lines. Spelled-out numbers, k and million shortcuts, and vague amounts ("double", "a dozen") are refused.&lt;br&gt;
A date part, like the 12 in "12 Aug", cannot pose as a count of 12 payments.&lt;br&gt;
The text must read like a story: no copied data rows, no | separators, no starting with a date.&lt;/p&gt;

&lt;p&gt;If any check fails, the story is thrown away and a template written from the real facts takes its place. The page tells you how many were replaced and shows what the model wrote. The worst case is a plainer story, never a wrong number.&lt;/p&gt;

&lt;p&gt;Proof, not promises. A bar at the top counts every outbound request the server makes and the bytes it sent. With Ollama or offline mode it stays at zero. With Groq it shows the true number. A panel after each run lists what a cloud app would have uploaded, struck through, and what was actually sent instead. The meter only counts requests this app makes. It cannot watch other programs, and the README says so.&lt;/p&gt;

&lt;p&gt;Any bank, many currencies. Currency is detected per transaction, US versus UK date order is decided per file, and mixed currencies are never added together. PDF statements are converted on your own computer with pdftotext and never stored. The parser was written against fake alerts and statements shaped like US and UK banks and wallets, and like GTBank, Access, Zenith, UBA, Opay, Kuda, Moniepoint, Sterling, FirstBank, Ecobank and ALAT. These are my own fake samples in those shapes, not real alerts, so a bank that changes its wording shows up as a skipped line with a warning that quotes it. It does not guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I measured, honestly:
&lt;/h2&gt;

&lt;p&gt;Gemma 3 1B, local, on my laptop. The US demo with a one-story limit took about 3 to 4 minutes for that single story, at roughly 2 tokens per second on 2 cores and almost no free memory. It finished, with zero outside calls. The guard replaced the story. Gemma had written Okay, here are two spooky-friendly sentences about the spending, keeping the numbers exactly as they were: "The money's flowing, a little bit slow, 2850 USD...", which does not read like a story, so the page used the template instead. My first Gemma attempt had also copied a raw data row (2026-08-31 credit 2850 USD | A tiny spectral bill…) with real numbers, which my first guard accepted. That mistake is why the readability checks exist.&lt;br&gt;
gpt-oss-20b on Groq. All five stories in seconds. One of five was replaced by the guard, for starting with a copied date and data row. The meter showed 5 outside calls and 5,287 bytes sent, and the page said so.&lt;br&gt;
Tests: 191 tests, zero dependencies, no CDNs, no external fonts. The server only listens on 127.0.0.1 and refuses foreign Host headers.&lt;/p&gt;

&lt;p&gt;Known gap, stated plainly: the guard proves every number is real, not that it sits in the right place. If a model swaps two true numbers, it can slip through. A 1B model on a 2-core laptop is also slow. A recent laptop will do far better, and the app has settings for slow machines (GHOST_COMPACT, GHOST_MAX_STORIES, GHOST_TIMEOUT_MS).&lt;/p&gt;

&lt;p&gt;I built this with AI coding assistance, which the challenge allows. The design decisions, the privacy rules and the guard checks are mine, and I ran and tested the app myself, on my own laptop.&lt;/p&gt;

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

&lt;p&gt;A bank statement is about the most private file most people own. For this app the open-weight model is not a nice extra. It is the reason the app can exist at all:&lt;/p&gt;

&lt;p&gt;Your data never has to leave your computer. With Ollama running, nothing is uploaded, and the meter proves it for this app. A closed API would mean sending someone's transactions to a server they do not control.&lt;br&gt;
It works with the lights and the internet off. Where data is expensive and connections drop, that matters. I downloaded my model over a connection that kept stalling, so I chose a 0.8 GB model on purpose.&lt;br&gt;
I can swap models. When the model I had chosen as the default was no longer on Groq's list, the app returned a plain "not found" error, and I switched to another open-weight model with one environment variable. Nothing in my project was locked to one provider.&lt;br&gt;
It costs nothing to run. No per-token bill for a tool you should use on a quiet Sunday night.&lt;/p&gt;

&lt;p&gt;I have not benchmarked closed models against this, so I will not claim better quality. What I can say is that the privacy and cost story only works because the weights are open, and that a 1B local model was too slow and too error-prone on my hardware to write every story, which is exactly why the guard exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;The Nigerian demo statement ends with a salary of ₦450,000 and a ghost that says 92% of it was gone in three days. Nobody needs a model to tell them that. But the money you lose slowly is the part you never see, and a ghost saying it out loud is harder to look away from.&lt;/p&gt;

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

&lt;p&gt;Best Use of Gemma: Gemma 3 1B runs locally through Ollama as the story writer, with the guard checking its output. I am being plain about the result: on my hardware it wrote one story, slowly, and the guard replaced it.&lt;/p&gt;

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