<?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: Anurag Kashyap</title>
    <description>The latest articles on DEV Community by Anurag Kashyap (@kanurag4).</description>
    <link>https://dev.to/kanurag4</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3893999%2F30f6a467-e5ab-4151-be5d-58a5b95f2460.jpg</url>
      <title>DEV Community: Anurag Kashyap</title>
      <link>https://dev.to/kanurag4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kanurag4"/>
    <language>en</language>
    <item>
      <title>From Side Project to Play Store: Shipping a Stock Analyser with Capacitor, Cloudflare Workers, and Claude Code</title>
      <dc:creator>Anurag Kashyap</dc:creator>
      <pubDate>Thu, 07 May 2026 10:33:44 +0000</pubDate>
      <link>https://dev.to/kanurag4/from-side-project-to-play-store-shipping-a-stock-analyser-with-capacitor-cloudflare-workers-and-5bmj</link>
      <guid>https://dev.to/kanurag4/from-side-project-to-play-store-shipping-a-stock-analyser-with-capacitor-cloudflare-workers-and-5bmj</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                                                                                             The stack nobody warns you about — and what actually got it live.                                                                                                                             ---                                                                                            I built Buffett Stock Evaluator (https://kashvector.com/stock/) — a free tool that scores any stock against the Buffett, Ray Dalio, and Benjamin Graham frameworks — as a weekend project.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;One month later it's live on Google Play. Here's the story-&lt;/p&gt;




&lt;p&gt;The Stack&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vanilla HTML/CSS/JS — no framework, no build step&lt;/li&gt;
&lt;li&gt;Cloudflare Worker — the secret glue that makes Yahoo Finance work&lt;/li&gt;
&lt;li&gt;Capacitor — wraps the web app into a native Android APK with almost no code changes&lt;/li&gt;
&lt;li&gt;Claude Code — AI pair programmer throughout&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;The Yahoo Finance Problem&lt;/p&gt;

&lt;p&gt;Every free stock data project eventually hits the same wall: Yahoo Finance's quoteSummary endpoint requires a crumb — a token you can only get after completing a cookie handshake with fc.yahoo.com. You can't do this from a browser because of CORS. Public proxies that used to work got blocked or paywalled in early 2026.&lt;/p&gt;

&lt;p&gt;My solution: a ~150-line Cloudflare Worker that handles the entire auth dance server-side.   &lt;/p&gt;

&lt;p&gt;// worker/yahoo-proxy.js (simplified)&lt;br&gt;
  async function getAuth() {&lt;br&gt;
    const cookieRes = await fetch('&lt;a href="https://fc.yahoo.com'" rel="noopener noreferrer"&gt;https://fc.yahoo.com'&lt;/a&gt;);&lt;br&gt;
    const cookie = cookieRes.headers.get('set-cookie');&lt;br&gt;
    const crumbRes = await fetch(&lt;br&gt;
      '&lt;a href="https://query2.finance.yahoo.com/v1/test/getcrumb" rel="noopener noreferrer"&gt;https://query2.finance.yahoo.com/v1/test/getcrumb&lt;/a&gt;',&lt;br&gt;
      { headers: { Cookie: cookie } }&lt;br&gt;
    );&lt;br&gt;
    return { cookie, crumb: await crumbRes.text() };&lt;br&gt;
  }&lt;/p&gt;

&lt;p&gt;The Worker caches the crumb per-isolate for an hour, adds an origin allowlist to prevent abuse, and rate-limits by IP using an in-memory sliding window — all without Cloudflare's paid add-ons.&lt;/p&gt;

&lt;p&gt;The killer feature: the Worker is git-connected to the repo via wrangler.toml. Committing a change and pushing to main auto-deploys it. No dashboard clicking.&lt;/p&gt;




&lt;p&gt;The Architecture Decision That Made Native Cheap&lt;/p&gt;

&lt;p&gt;Before touching Capacitor I made one rule: only app.js is allowed to touch the DOM.&lt;/p&gt;

&lt;p&gt;Every other file — the scorer logic, the data fetcher, the formatters — had to be pure functions: data in, data out. No document.querySelector, no window.*, nothing.&lt;/p&gt;

&lt;p&gt;This felt like overkill for a web app. But when I ran npx cap sync to wrap it in a native Android shell, I made zero changes to any of the logic files. Capacitor just needed webDir:&lt;br&gt;&lt;br&gt;
  "www" and the WebView handled the rest.&lt;/p&gt;

&lt;p&gt;npx cap sync   # copies www/ into android assets&lt;br&gt;
  npx cap open android  # launches Android Studio to build&lt;/p&gt;

&lt;p&gt;The DOM boundary isn't a style preference — it's the constraint that makes "ship to Android" a two-command operation instead of a rewrite.&lt;/p&gt;




&lt;p&gt;Three Scoring Frameworks, One Data Contract&lt;/p&gt;

&lt;p&gt;Each scorer (buffettScore, dalioScore, grahamScore) takes the same raw Yahoo data object and &lt;br&gt;
  returns:&lt;/p&gt;

&lt;p&gt;{ results: [...], totalScore, maxScore, verdict }&lt;/p&gt;

&lt;p&gt;Verdicts are ratio-based — totalScore / maxScore &amp;gt;= 0.85 → "Strong Buy" — because some criteria get skipped for financial stocks (banks shouldn't be penalised for high debt-to-equity ratios). maxScore shrinks when criteria are skipped, so the threshold stays meaningful.&lt;/p&gt;

&lt;p&gt;One trap I hit: Yahoo reports debtToEquity as a percentage (53.2 means 53.2%). Every scorer divides by 100 before comparing thresholds. Miss this once and every stock looks catastrophically leveraged.&lt;/p&gt;




&lt;p&gt;The Play Store Journey&lt;/p&gt;

&lt;p&gt;The part nobody writes about honestly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a Google Play developer account ($25 one-time fee, instant)&lt;/li&gt;
&lt;li&gt;Closed testing — you must have at least 12 testers opt-in and run for 14 days before you can apply for production access&lt;/li&gt;
&lt;li&gt;Production access review — Google manually reviews the app. Mine took about 7 days after applying&lt;/li&gt;
&lt;li&gt;Sign with an upload keystore — lose this .jks file and you can never update the app again. Back it up somewhere outside the repo.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The closed testing period is the real wait. Recruit your testers early — getting 12 people to click an opt-in link takes longer than you'd think.&lt;/p&gt;

&lt;p&gt;For the signed AAB I used Android Studio's built-in bundle generator rather than CLI signing.&lt;/p&gt;




&lt;p&gt;Building with Claude Code&lt;/p&gt;

&lt;p&gt;I used Claude Code as a pair programmer throughout — not just for boilerplate, but for architecture decisions, debugging Yahoo's auth changes, and writing the Play Store submission  checklist.&lt;/p&gt;

&lt;p&gt;The most useful pattern: describe a constraint first, then ask for implementation. "The scorer must be a pure function with no DOM access" produced much better code than "write a Buffett scorer." The AI respected the architecture rules when they were explicit.&lt;/p&gt;

&lt;p&gt;One thing that surprised me: Claude caught the debtToEquity percentage trap before I did, flagged it as a known Yahoo Finance gotcha, and added a comment explaining why. That's the kind of domain-specific knowledge that would have cost me an hour of head-scratching.        &lt;/p&gt;




&lt;p&gt;What I'd Do Differently&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set up the Worker origin allowlist on day one. I added it after the Worker was already deployed and got a surprise traffic spike from a scraper.&lt;/li&gt;
&lt;li&gt;Recruit closed testers before submitting. I lost a week waiting for the 12-tester threshold.&lt;/li&gt;
&lt;li&gt;Don't skip the DOM boundary rule even on weekend projects. The Capacitor port took one afternoon. Without the rule it would have been a weekend.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;The app is free, no sign-in required: kashvector.com/stock (&lt;a href="https://kashvector.com/stock/" rel="noopener noreferrer"&gt;https://kashvector.com/stock/&lt;/a&gt;) or&lt;br&gt;
   search "Buffett Stock Evaluator" on Google Play.&lt;/p&gt;




&lt;p&gt;Built with Capacitor · Cloudflare Workers · vanilla JS · Claude Code&lt;/p&gt;

</description>
      <category>claude</category>
      <category>android</category>
      <category>cursor</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Anurag Kashyap</dc:creator>
      <pubDate>Fri, 01 May 2026 10:32:13 +0000</pubDate>
      <link>https://dev.to/kanurag4/-4b7f</link>
      <guid>https://dev.to/kanurag4/-4b7f</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/kanurag4/i-built-my-own-fitness-dashboard-because-the-technogym-app-wasnt-cutting-it-1fe2" class="crayons-story__hidden-navigation-link"&gt;I Built My Own Fitness Dashboard Because the Technogym App Wasn't Cutting It&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/kanurag4" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F3893999%2F30f6a467-e5ab-4151-be5d-58a5b95f2460.jpg" alt="kanurag4 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/kanurag4" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Anurag Kashyap
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Anurag Kashyap
                
              
              &lt;div id="story-author-preview-content-3595432" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/kanurag4" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F3893999%2F30f6a467-e5ab-4151-be5d-58a5b95f2460.jpg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Anurag Kashyap&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/kanurag4/i-built-my-own-fitness-dashboard-because-the-technogym-app-wasnt-cutting-it-1fe2" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;May 1&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/kanurag4/i-built-my-own-fitness-dashboard-because-the-technogym-app-wasnt-cutting-it-1fe2" id="article-link-3595432"&gt;
          I Built My Own Fitness Dashboard Because the Technogym App Wasn't Cutting It
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag crayons-tag--filled  " href="/t/showdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;showdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/analytics"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;analytics&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/data"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;data&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/sideprojects"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;sideprojects&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/kanurag4/i-built-my-own-fitness-dashboard-because-the-technogym-app-wasnt-cutting-it-1fe2" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;1&lt;span class="hidden s:inline"&gt; reaction&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/kanurag4/i-built-my-own-fitness-dashboard-because-the-technogym-app-wasnt-cutting-it-1fe2#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              1&lt;span class="hidden s:inline"&gt; comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            4 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>I Built My Own Fitness Dashboard Because the Technogym App Wasn't Cutting It</title>
      <dc:creator>Anurag Kashyap</dc:creator>
      <pubDate>Fri, 01 May 2026 10:25:27 +0000</pubDate>
      <link>https://dev.to/kanurag4/i-built-my-own-fitness-dashboard-because-the-technogym-app-wasnt-cutting-it-1fe2</link>
      <guid>https://dev.to/kanurag4/i-built-my-own-fitness-dashboard-because-the-technogym-app-wasnt-cutting-it-1fe2</guid>
      <description>&lt;p&gt;If you use Technogym equipment at your gym, you've probably opened their app, tapped around a few screens, and quietly closed it again. The hardware is excellent — but the app's dashboards feel designed for compliance rather than insight. I wanted to answer simple questions like &lt;em&gt;"how many days did I actually go to the gym this month?"&lt;/em&gt; or &lt;em&gt;"is my weights trending up?"&lt;/em&gt; and I couldn't get there without clicking through five menus.&lt;/p&gt;

&lt;p&gt;So I built my own.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem with Technogym's App
&lt;/h2&gt;

&lt;p&gt;The Technogym ecosystem tracks everything: every rowing stroke, every set, every kilogram lifted, every step on the treadmill. The raw data is incredibly rich. But the native app surfaces it in a way that makes it hard to spot trends, compare months, or get an at-a-glance view of your progress.&lt;/p&gt;

&lt;p&gt;My specific frustrations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No meaningful weekly or monthly aggregation across session types&lt;/li&gt;
&lt;li&gt;No way to know if my average weights lifted increasing over time&lt;/li&gt;
&lt;li&gt;Calorie and distance stats buried per-session with no roll-up view&lt;/li&gt;
&lt;li&gt;No "gym visits per week" concept — just individual activity logs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The obvious solution would be to use the Technogym API directly. I looked into it. &lt;strong&gt;Getting API access requires a business partnership with Technogym.&lt;/strong&gt; As an individual developer and gym-goer, that door is closed.&lt;/p&gt;

&lt;p&gt;But there's a workaround: &lt;strong&gt;you can export your own data.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Data Export
&lt;/h2&gt;

&lt;p&gt;Technogym lets you request a full data export from the app. You get a ZIP file containing four JSON files — your profile, body composition measurements, every gym session with full per-set breakdowns, and outdoor activities.&lt;/p&gt;

&lt;p&gt;My export had &lt;strong&gt;2,668 indoor activity records&lt;/strong&gt; going back two years and &lt;strong&gt;408 biometric measurements&lt;/strong&gt;. The indoor activities file is the richest — each record contains the top-level session metrics plus individual set data including weight, reps, and duration.&lt;/p&gt;

&lt;p&gt;One quirk: there are no human-readable exercise names. Each exercise is identified by an internal UUID. You have to infer what it was from the metrics present — if a record has rowing distance and stroke rate metrics, it's a rowing session; if it has weight and rep data in its sets, it's strength training.&lt;/p&gt;

&lt;p&gt;I can re-download this export every few days to keep the dashboard fresh.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Build: Web + Android from One Codebase
&lt;/h2&gt;

&lt;p&gt;I wanted this on two surfaces:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A web app&lt;/strong&gt; — to open on any browser and share a view with my trainer&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An Android APK&lt;/strong&gt; — to check on my phone after a session&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Expo with React Native&lt;/strong&gt; was the obvious choice — one codebase, two targets. The web app is deployed to &lt;strong&gt;GitHub Pages&lt;/strong&gt; automatically on every push. The Android APK is built via &lt;strong&gt;EAS Build&lt;/strong&gt; (Expo's cloud build service) — the free tier gives 30 builds per month, which is more than enough.&lt;/p&gt;

&lt;p&gt;The entire ZIP file is parsed client-side. Your data never leaves your device.&lt;/p&gt;




&lt;h2&gt;
  
  
  Interesting Problems Along the Way
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What "A Gym Visit" Actually Means
&lt;/h3&gt;

&lt;p&gt;The Technogym export gives you one record per exercise — a typical gym session generates 10–15 records. So counting records as "sessions" would give you 100+ per week, which is meaningless.&lt;/p&gt;

&lt;p&gt;Looking at the timestamps, every record from a given gym visit clusters within 1–2 hours on the same calendar day. So the right definition is simple: &lt;strong&gt;a gym visit = a distinct calendar day with indoor activity&lt;/strong&gt;. That single insight turned a useless metric into one of the most useful charts in the app.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Timezone Bug
&lt;/h3&gt;

&lt;p&gt;I'm in Australia (UTC+10). The app was grouping all my April sessions into the March bucket — every month appeared one step behind. The cause was subtle: when converting a date to a string key for grouping, I was using the UTC date instead of the local calendar date. Midnight on April 1st in Sydney is still March 31st in UTC, so the bucket ended up in the wrong month. Once I switched to using local date methods, everything snapped into place.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keeping Charts and Logic Separate
&lt;/h3&gt;

&lt;p&gt;The rule I enforced throughout: no data transformation inside chart components. Every chart receives a plain array of pre-computed values. All the filtering, grouping, and aggregation lives in a dedicated hooks layer.&lt;/p&gt;

&lt;p&gt;This paid off immediately when adding the &lt;strong&gt;Avg / Total toggle&lt;/strong&gt; to charts like Weight Lifted and Calories Burned — the chart component just holds the toggle state and passes it to the hook. The chart itself doesn't change at all.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Can See Now
&lt;/h2&gt;

&lt;p&gt;The dashboard has five tabs:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Overview&lt;/strong&gt; — Gym visits per week/month, avg visits/week, avg calories per visit, activity type breakdown, training load (total active minutes), and metabolic intensity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Biometrics&lt;/strong&gt; — Weight, body fat, muscle mass, BMI and other body composition metrics as trend lines over time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Workouts&lt;/strong&gt; — Calories burned (indoor vs outdoor), total weight lifted, cardio distance — all with total/average toggles.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cardio&lt;/strong&gt; — Distance, calories, pace (in min:sec per km, green = fastest period), and elevation gain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strength&lt;/strong&gt; — Weight lifted and rowing performance (distance + power) with avg/total toggle.&lt;/p&gt;

&lt;p&gt;The most useful views for me personally: weights lifted trend and gym visits per week — a simple bar chart that makes consistency (or the lack of it) very visible.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sharing with My Trainer
&lt;/h2&gt;

&lt;p&gt;The web app lives at a public GitHub Pages URL. Before a session, I open the app, upload my latest export ZIP, and share the URL. My trainer can see exactly what I've been doing — session frequency, calorie burn by type, weight progression — without needing any account or login.&lt;/p&gt;

&lt;p&gt;It's also a much better conversation starter than trying to scroll through the Technogym app together.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;A few things I'd like to add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;1RM trend&lt;/strong&gt; — the export includes an estimated one-rep max metric per strength session&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Body composition overlay&lt;/strong&gt; — weight, fat mass, and muscle mass on a single chart&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The data's all there. It's just a matter of building the views.&lt;/p&gt;




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

&lt;p&gt;The full source is on GitHub: &lt;a href="https://github.com/kanurag4/technogym-dashboard" rel="noopener noreferrer"&gt;github.com/kanurag4/technogym-dashboard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're a Technogym user frustrated with the native app's dashboards, fork it and point it at your own export. The ZIP format appears consistent across accounts — the parsing should work for any Technogym user.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with Expo, React Native, NativeWind, react-native-gifted-charts, and JSZip. Deployed to GitHub Pages and Android via EAS Build.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>data</category>
      <category>showdev</category>
      <category>sideprojects</category>
    </item>
    <item>
      <title>I Built a Suite of 6 Financial Tools in My Browser Stack — Here's the Architecture</title>
      <dc:creator>Anurag Kashyap</dc:creator>
      <pubDate>Sun, 26 Apr 2026 10:53:59 +0000</pubDate>
      <link>https://dev.to/kanurag4/i-built-a-suite-of-6-financial-tools-in-my-browser-stack-heres-the-architecture-2jme</link>
      <guid>https://dev.to/kanurag4/i-built-a-suite-of-6-financial-tools-in-my-browser-stack-heres-the-architecture-2jme</guid>
      <description>&lt;h1&gt;
  
  
  I Built a Suite of 6 Financial Tools in My Browser Stack — Here's the Architecture
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;KashVector is live.&lt;/strong&gt; Six free, client-side financial tools at &lt;a href="https://kashvector.com" rel="noopener noreferrer"&gt;kashvector.com&lt;/a&gt;. No login, no backend database, no data leaving your device. Everything runs in the browser.&lt;/p&gt;

&lt;p&gt;I came back to coding after 15 years away — last time I wrote software was mobile apps before the iPhone. I used Claude Code as my development partner throughout. This is a writeup of the architecture, the key decisions, and the AI-assisted workflow I built around it.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Tools
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stock Evaluator&lt;/strong&gt; — scores any ticker against Buffett, Dalio, and Graham frameworks using live Yahoo Finance data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Budget Planner&lt;/strong&gt; — six-step wizard with payslip parsing, waterfall spending chart, and savings benchmarks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Debt Recycling / Investment Property Calculator&lt;/strong&gt; — models converting home loan debt to tax-deductible investment debt&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Portfolio Health Check&lt;/strong&gt; — concentration risk analysis across sector, region, and individual stocks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FIRE Calculator&lt;/strong&gt; — Financial Independence number, time-to-retire, and Coast FIRE target&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mortgage Calculator&lt;/strong&gt; — repayments, total interest, and offset/extra repayment impact modelling&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Architecture: Deliberately Boring
&lt;/h2&gt;

&lt;p&gt;The hosting stack is as simple as it gets:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GitHub → Cloudflare Pages (auto-deploy on push)
         ↑
         Cloudflare Worker (Yahoo Finance proxy only)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Cloudflare Pages&lt;/strong&gt; serves all static assets. Every &lt;code&gt;git push&lt;/code&gt; triggers an automatic redeploy — no dashboard clicks, no manual steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One Cloudflare Worker&lt;/strong&gt; handles the only piece that couldn't be client-side: Yahoo Finance data. Yahoo requires a valid cookie and &lt;code&gt;crumb&lt;/code&gt; authentication token on every request — you can't call it directly from a browser due to CORS and the auth handshake. The Worker (~150 lines of JavaScript) manages that handshake, fetches the financial data, and returns clean JSON with the right CORS headers. Every other tool — Budget Planner, Debt Recycling, Portfolio Health Check, FIRE, Mortgage — fetches zero external data. They compute entirely from what you type in.&lt;/p&gt;




&lt;h2&gt;
  
  
  The One Architecture Decision That Paid Off Twice
&lt;/h2&gt;

&lt;p&gt;During planning for the Stock Evaluator, we made a rule: &lt;strong&gt;all financial logic must be pure functions with no browser dependencies.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No &lt;code&gt;document&lt;/code&gt;, no &lt;code&gt;window&lt;/code&gt;, no DOM manipulation inside calculation code. Scoring functions take numbers in, return numbers out. At the time it felt like unnecessary discipline for a browser app.&lt;/p&gt;

&lt;p&gt;It paid off in two ways:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Android in a weekend.&lt;/strong&gt; Capacitor wraps a web app in a native Android WebView. Because the calculation logic had zero browser coupling, &lt;code&gt;npx cap sync&lt;/code&gt; pulled the web code into the Android project cleanly. No Kotlin. No Java. No rewrite. The same JavaScript that runs in Chrome runs inside the native app. Android Studio handled the signing keystore and AAB generation — the actual build-and-sign cycle took an afternoon to learn and became routine quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Consistent logic across the suite.&lt;/strong&gt; As I added more tools, the same discipline applied. Every calculator's core logic is independently testable and portable.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Budget Planner: A Different Beast
&lt;/h2&gt;

&lt;p&gt;Five of the six tools are vanilla JavaScript — single HTML files or minimal multi-file setups. The Budget Planner is the outlier: &lt;strong&gt;React + Vite + Tailwind&lt;/strong&gt;, a full build pipeline.&lt;/p&gt;

&lt;p&gt;That complexity was earned. The tool has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A six-step wizard with conditional branching based on income type (gross vs net, PAYG vs self-employed)&lt;/li&gt;
&lt;li&gt;Australian superannuation calculated separately from take-home pay&lt;/li&gt;
&lt;li&gt;A waterfall chart (Chart.js) showing exactly where money goes&lt;/li&gt;
&lt;li&gt;Savings rate benchmarked against Australian demographic data by age bracket&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The feature I'm most proud of is &lt;strong&gt;drag-and-drop payslip parsing&lt;/strong&gt;. Drop a PDF, Excel, or CSV payslip onto the income step and it auto-fills your income and pay frequency. Everything runs in the browser using &lt;code&gt;pdf-parse&lt;/code&gt; and &lt;code&gt;xlsx&lt;/code&gt; — the file is never uploaded anywhere.&lt;/p&gt;

&lt;p&gt;Getting parsing right required handling a surprising variety of real payslip formats:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fields in reversed order ("$4,200.00 — TOTAL NET PAY")&lt;/li&gt;
&lt;li&gt;Labels like "TOTAL NET PAY - Bank Credit" as a single string&lt;/li&gt;
&lt;li&gt;Date ranges written as "1 March – 31 March" for frequency detection instead of numbers&lt;/li&gt;
&lt;li&gt;Superannuation listed as a deduction rather than a separate line&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Key Bugs Worth Documenting
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Dividend double-counting (Debt Recycling Calculator).&lt;/strong&gt; The total loan balance wasn't decreasing year-over-year — it stayed nearly flat. The bug: dividends were being added to the investment portfolio value &lt;em&gt;and&lt;/em&gt; counted in the cash flow used to pay down debt. Money was being recycled twice. The fix was a one-line deletion once I understood the mechanic, but diagnosing it required tracing the cash flow model step by step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Chart.js resize loop (Debt Recycling Calculator).&lt;/strong&gt; Charts were resizing every time the user expanded the year-by-year breakdown table, because Chart.js was recalculating dimensions after each layout shift. Fix: pin the Y-axis width via &lt;code&gt;afterFit&lt;/code&gt; callback and call &lt;code&gt;chart.resize()&lt;/code&gt; explicitly on the table toggle event.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS grid blowout (Budget Planner).&lt;/strong&gt; The expense breakdown table was blowing past its container on narrow screens. Root cause: CSS grid columns default to &lt;code&gt;min-width: auto&lt;/code&gt;, which means a long text string expands the column indefinitely. Fix: &lt;code&gt;min-width: 0&lt;/code&gt; on the column definition.&lt;/p&gt;




&lt;h2&gt;
  
  
  The AI Workflow I Built Around Claude
&lt;/h2&gt;

&lt;p&gt;Using Claude Code as a coding partner is table stakes now. The more interesting thing is the &lt;strong&gt;structured workflow&lt;/strong&gt; I built around it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Superpowers Plugin
&lt;/h3&gt;

&lt;p&gt;A set of workflow skills that enforce a sequence before any feature starts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brainstorm → plan → implement → verify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The planning phase is where the pure-functions decision came from. Having a structured moment to think about architecture — before writing any code — consistently surfaces decisions that would be painful to retrofit later.&lt;/p&gt;

&lt;h3&gt;
  
  
  Peer-Review Sub-Agent (I Built This)
&lt;/h3&gt;

&lt;p&gt;After finishing a feature, I trigger an isolated Claude agent that has &lt;strong&gt;zero context&lt;/strong&gt; of how the code was written. It receives only the output — the files, the diff, the feature description. It reviews cold, like a senior engineer picking up someone else's PR.&lt;/p&gt;

&lt;p&gt;It returns a prioritised issue list ranked by criticality:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Breaking bugs&lt;/li&gt;
&lt;li&gt;Logic errors&lt;/li&gt;
&lt;li&gt;Edge cases&lt;/li&gt;
&lt;li&gt;Style / code quality&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No anchoring to my decisions. No "we did it this way because." Just an independent read. It catches things I miss — usually edge cases around input validation and boundary conditions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lessons Learned File
&lt;/h3&gt;

&lt;p&gt;After every project, Claude updates a running markdown file with things worth remembering. Before starting anything new, Claude reads it. This is how I stopped making the same debugging mistakes twice. The dividend double-counting bug went into that file. So did the Chart.js resize behaviour. Compounding knowledge across projects, not just within them.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;The stock evaluator Android app goes public once the Play Store closed testing completes (Google requires 12 testers for 14 consecutive days for new personal accounts before production access). More tools are planned — retirement modelling, property vs rent comparison.&lt;/p&gt;

&lt;p&gt;All tools are free at &lt;a href="https://kashvector.com" rel="noopener noreferrer"&gt;kashvector.com&lt;/a&gt;. No sign-up, no tracking, no subscriptions.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>showdev</category>
      <category>sideprojects</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
