<?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: klauski24</title>
    <description>The latest articles on DEV Community by klauski24 (@klauski24).</description>
    <link>https://dev.to/klauski24</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%2F3955491%2Ff130decc-d950-428d-b499-03c10d5059bf.png</url>
      <title>DEV Community: klauski24</title>
      <link>https://dev.to/klauski24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/klauski24"/>
    <language>en</language>
    <item>
      <title>I Built Sổ Lãi, a Practical Profit Tracker for Vietnamese Online Shops</title>
      <dc:creator>klauski24</dc:creator>
      <pubDate>Thu, 28 May 2026 09:37:36 +0000</pubDate>
      <link>https://dev.to/klauski24/i-built-so-lai-a-practical-profit-tracker-for-vietnamese-online-shops-4n18</link>
      <guid>https://dev.to/klauski24/i-built-so-lai-a-practical-profit-tracker-for-vietnamese-online-shops-4n18</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-05-21"&gt;GitHub Finish-Up-A-Thon Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I built &lt;strong&gt;So Lai&lt;/strong&gt;, a local-first profit tracker for small online shops in Vietnam.&lt;/p&gt;

&lt;p&gt;The goal is simple: help a seller answer the question they often cannot answer from platform revenue alone:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Is my shop actually profitable after product cost, marketplace fees, shipping subsidies, discounts, ad spend, returns, and pending COD?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So Lai is not trying to be a full POS, CRM, or inventory suite. It focuses on the painful middle layer that many small sellers still manage through scattered spreadsheets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product cost by SKU&lt;/li&gt;
&lt;li&gt;Orders from Shopee, TikTok Shop, Facebook, Zalo, or livestream sales&lt;/li&gt;
&lt;li&gt;Platform fees, shipping cost, vouchers, and discounts&lt;/li&gt;
&lt;li&gt;Ad spend by channel and SKU&lt;/li&gt;
&lt;li&gt;Return/cancellation status&lt;/li&gt;
&lt;li&gt;COD received vs. pending&lt;/li&gt;
&lt;li&gt;Net profit by order, product, and sales channel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The app runs locally with Node.js and JSON storage, so it does not require paid APIs or cloud setup.&lt;/p&gt;

&lt;p&gt;GitHub repo: &lt;a href="https://github.com/klauski24/so-lai" rel="noopener noreferrer"&gt;https://github.com/klauski24/so-lai&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Run locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;clone&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;https://github.com/klauski24/so-lai.git&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;cd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;so-lai&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;npm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;start&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://127.0.0.1:4182
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What the demo shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Vietnamese-language dashboard called &lt;strong&gt;Sổ Lãi&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Shop profile setup&lt;/li&gt;
&lt;li&gt;Clear explanation of where the numbers come from&lt;/li&gt;
&lt;li&gt;CSV import for products, orders, and ad costs&lt;/li&gt;
&lt;li&gt;Manual order entry&lt;/li&gt;
&lt;li&gt;Profit analysis by channel and SKU&lt;/li&gt;
&lt;li&gt;Alerts for loss-making products, high COD pending, and high return rate&lt;/li&gt;
&lt;li&gt;CSV and Markdown report export&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Screenshots are included in the repository:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;so-lai-desktop.png&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;so-lai-mobile.png&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Comeback Story
&lt;/h2&gt;

&lt;p&gt;The first version was too vague.&lt;/p&gt;

&lt;p&gt;It started as an English-named dashboard called &lt;strong&gt;ProfitLens&lt;/strong&gt;. It had some useful calculations, but it did not feel practical yet. The biggest problems were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The app used Vietnamese currency but had an English product name.&lt;/li&gt;
&lt;li&gt;There was no place to define the shop.&lt;/li&gt;
&lt;li&gt;It was not clear where the data should come from.&lt;/li&gt;
&lt;li&gt;The dashboard looked like a demo, not something a seller could actually use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I reworked the project into &lt;strong&gt;So Lai&lt;/strong&gt;, a more grounded tool for Vietnamese sellers.&lt;/p&gt;

&lt;p&gt;The before/after arc became:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Before: a generic dashboard with sample data&lt;/li&gt;
&lt;li&gt;After: a local-first shop profit workbook with shop setup, CSV import, real data source guidance, and exportable reports&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The most important improvement was adding a realistic input workflow. A shop can now start with CSV files exported or copied from tools they already use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Marketplace order reports&lt;/li&gt;
&lt;li&gt;Product cost spreadsheets&lt;/li&gt;
&lt;li&gt;Ads manager exports&lt;/li&gt;
&lt;li&gt;COD reconciliation records&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That made the project feel much closer to a real small-business workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Changed
&lt;/h2&gt;

&lt;p&gt;I finished the project by adding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vietnamese branding and UI copy&lt;/li&gt;
&lt;li&gt;Shop profile fields&lt;/li&gt;
&lt;li&gt;CSV import endpoints for products, orders, and ad costs&lt;/li&gt;
&lt;li&gt;CSV paste and file upload UI&lt;/li&gt;
&lt;li&gt;Template CSV examples inside the app&lt;/li&gt;
&lt;li&gt;Order-level profit calculations&lt;/li&gt;
&lt;li&gt;Product-level and channel-level summaries&lt;/li&gt;
&lt;li&gt;COD pending tracking&lt;/li&gt;
&lt;li&gt;Return/cancellation handling&lt;/li&gt;
&lt;li&gt;Markdown report export&lt;/li&gt;
&lt;li&gt;README with a practical workflow for real shop data&lt;/li&gt;
&lt;li&gt;Desktop and mobile screenshots&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The current data model is intentionally small:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;shop
products
orders
adCosts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That kept the app focused and usable instead of turning it into another oversized management system.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Experience with GitHub Copilot
&lt;/h2&gt;

&lt;p&gt;GitHub Copilot helped me move from idea to finished MVP quickly.&lt;/p&gt;

&lt;p&gt;It was especially useful for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Designing the CSV import workflow&lt;/li&gt;
&lt;li&gt;Building the product/order/ad cost data model&lt;/li&gt;
&lt;li&gt;Writing practical profit calculations&lt;/li&gt;
&lt;li&gt;Refactoring the UI copy from a generic English dashboard into a Vietnamese seller-focused tool&lt;/li&gt;
&lt;li&gt;Creating sample CSV formats&lt;/li&gt;
&lt;li&gt;Improving the README so another person can actually run and test the project&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The best part was using Copilot as an iteration partner. The project improved when I kept asking whether the tool was realistic enough for an actual seller, not just whether the code worked.&lt;/p&gt;

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

&lt;p&gt;The biggest lesson: a business tool is not useful just because it has charts.&lt;/p&gt;

&lt;p&gt;It becomes useful when the user can answer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where do I put my real data?&lt;/li&gt;
&lt;li&gt;What format does the data need?&lt;/li&gt;
&lt;li&gt;What decision does this dashboard help me make?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For So Lai, the answer is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put in products, orders, COD status, and ads through CSV.&lt;/li&gt;
&lt;li&gt;Use the dashboard to find products and channels that are secretly losing money.&lt;/li&gt;
&lt;li&gt;Export the result as a report for monthly review.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;The next practical step is preset imports for real platform exports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shopee order CSV mapping&lt;/li&gt;
&lt;li&gt;TikTok Shop order CSV mapping&lt;/li&gt;
&lt;li&gt;Facebook/Zalo manual order templates&lt;/li&gt;
&lt;li&gt;COD reconciliation import&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After that, I would add a monthly comparison view so sellers can see whether changes in pricing, voucher strategy, or ad spend actually improved profit.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
