[{"data":1,"prerenderedAt":534},["ShallowReactive",2],{"project-\u002Fprojects\u002Fscan2cursor":3,"project-nav":94},{"id":4,"title":5,"author":6,"body":7,"coverText":70,"date":71,"description":72,"excerpt":73,"extension":74,"heroImage":75,"image":76,"meta":77,"navigation":78,"path":79,"projectLink":80,"readingTime":64,"seo":81,"stack":82,"status":86,"stem":87,"tags":88,"unlisted":92,"__hash__":93},"content\u002Fprojects\u002Fscan2cursor.md","Scan2Cursor — Using My Phone as a Barcode Scanner for My Computer","Sandip Choudhary",{"type":8,"value":9,"toc":62},"minimark",[10,15,19,22,26,34,45,48,52,55,59],[11,12,14],"h2",{"id":13},"how-it-started","How it started",[16,17,18],"p",{},"This project started as a small side project. I wanted to use my phone as a barcode scanner. I scan a barcode with the phone, and it should fill a textbox on the computer, or wherever the cursor is, just like a normal USB scanner would. At first I only wanted an alternative to a barcode scanner device, but later I realized that it can be used in a billing app, a spreadsheet or any web form.",[16,20,21],{},"I did not want to install any app or pay a subscription for one of the existing SaaS tools, so I built a simple relay.",[11,23,25],{"id":24},"scanning-from-a-different-network","Scanning from a different network",[16,27,28,29,33],{},"One of the best things I have done in this project is making it accessible over a different Wi-Fi or mobile data. In a warehouse, for example, the staff counting stock use handheld devices to scan, and they can't always rely on the warehouse Wi-Fi because it might be weak in some parts. There may already be strong network coverage, but this project covers that (",[30,31,32],"em",{},"just in case","). A handheld scanner surely beats a mobile scanner. A phone has to depend on its camera to scan, it is not ergonomic, and there is the battery as well. Still, this has been a fun project to do.",[16,35,36,37,44],{},"Despite the limitations of a mobile phone, it is good to have an alternative. When the computer and the phone are on the same Wi-Fi, the phone can just use the IP address of the computer to relay the barcode data. But for a different Wi-Fi or an external network, there has to be something in between to relay the information. This is called tunneling. It is the same concept as a VPN, where we get connected to a network through a different path. I use a ",[38,39,43],"a",{"href":40,"rel":41},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Ftunnel\u002F",[42],"nofollow","Cloudflare tunnel"," to connect the phone from an external network. So basically there are two QR codes to pair a phone: one for the same Wi-Fi and one for an external network.",[16,46,47],{},"The Cloudflare tunnel works nicely, but when it restarts it gets a new address, so there is a new QR code to pair the phone (for the external network).",[11,49,51],{"id":50},"not-losing-scans","Not losing scans",[16,53,54],{},"I also identified a problem with the connection dropping during scanning, which can slow down the work. So there is an internal queue on the mobile page, which also solves the issue of going offline while scanning. The scanned barcodes are pushed into the queue, and when the network is stable they are sent to the computer.",[11,56,58],{"id":57},"why-rust","Why Rust ???",[16,60,61],{},"Using Rust for this project was a deliberate choice because of its small memory footprint and binary size. It is just a relay app, so it does not have to be big and bulky. At first I tried Node.js, but it was roughly 50 MB in size, so I moved to Rust to save storage and memory.",{"title":63,"searchDepth":64,"depth":64,"links":65},"",2,[66,67,68,69],{"id":13,"depth":64,"text":14},{"id":24,"depth":64,"text":25},{"id":50,"depth":64,"text":51},{"id":57,"depth":64,"text":58},"Your phone is the barcode scanner 📱","2026-11-15","A small side project that turns a phone into a barcode scanner for the computer. Scan with the phone and the code is typed wherever the cursor is, even when the phone is on a different network.",null,"md","\u002Fimg\u002Fprojects\u002Fscan2cursor_hero.webp","\u002Fimg\u002Fprojects\u002Fscan2cursor_cover.webp",{},true,"\u002Fprojects\u002Fscan2cursor","https:\u002F\u002Fgithub.com\u002FSandip124\u002Fscan2cursor",{"title":5,"description":72},[83,84,85],"Rust","JavaScript","Cloudflare Tunnel","Completed","projects\u002Fscan2cursor",[89,90,83,91],"Side Project","Open Source","Cross-platform",false,"w1swqS6ZL-ZOpth7BFEw9Zk0CaD_oeOiuIM4y2cJZac",[95,135,295,362,466],{"id":4,"title":5,"author":6,"body":96,"coverText":70,"date":71,"description":72,"excerpt":73,"extension":74,"heroImage":75,"image":76,"meta":131,"navigation":78,"path":79,"projectLink":80,"readingTime":64,"seo":132,"stack":133,"status":86,"stem":87,"tags":134,"unlisted":92,"__hash__":93},{"type":8,"value":97,"toc":125},[98,100,102,104,106,110,115,117,119,121,123],[11,99,14],{"id":13},[16,101,18],{},[16,103,21],{},[11,105,25],{"id":24},[16,107,28,108,33],{},[30,109,32],{},[16,111,36,112,44],{},[38,113,43],{"href":40,"rel":114},[42],[16,116,47],{},[11,118,51],{"id":50},[16,120,54],{},[11,122,58],{"id":57},[16,124,61],{},{"title":63,"searchDepth":64,"depth":64,"links":126},[127,128,129,130],{"id":13,"depth":64,"text":14},{"id":24,"depth":64,"text":25},{"id":50,"depth":64,"text":51},{"id":57,"depth":64,"text":58},{},{"title":5,"description":72},[83,84,85],[89,90,83,91],{"id":136,"title":137,"author":6,"body":138,"coverText":271,"date":272,"description":273,"excerpt":73,"extension":74,"heroImage":73,"image":274,"meta":275,"navigation":78,"path":276,"projectLink":277,"readingTime":278,"seo":279,"stack":280,"status":86,"stem":287,"tags":288,"unlisted":92,"__hash__":294},"content\u002Fprojects\u002Fboneappetite.md","Boneappetitedk — eCommerce Webshop for Dog-Food Subscription",{"type":8,"value":139,"toc":264},[140,142,145,152,156,159,172,221,225,234,237,241,244,248,261],[11,141,14],{"id":13},[16,143,144],{},"When I first got this project I honestly didn't know much about nutrition domain and neither had idea of developing a custom ecommerce. Unlike normal ecommerce where you have a product and a price tag attached to it or a subscription model for a simple pre-defined product, this was different and more custom. The client was a Copenhagen-based dog-food company that needed a webshop. They wanted a subscription model where customers could get recurring deliveries of custom portion of dog food based on their dog's specific dietary needs.",[16,146,147,148],{},"I had posted a blog about what approach i take to build this project, the platform choices, the stack i used to build it, in  ",[38,149,151],{"href":150},"\u002Fblog\u002Fbuilding-subscription-ecommerce\u002F","Building a Subscription Ecommerce Webshop from Scratch",[11,153,155],{"id":154},"the-calorie-calculator","The calorie calculator",[16,157,158],{},"The heart of the webshop is a short guided wizard that turns a few information about a dog into a tailored meal plan. Owners enter their dog's breed and age, pick its current body condition, and set an activity level. The app calculates daily calorie needs for that dog, then recommends recipes and portion sizes to match for the dog needs.",[160,161,162,163,162,168],"figure",{},"\n  ",[164,165],"img",{"src":166,"alt":167},"\u002Fimg\u002Fprojects\u002Fboneappetite_home.jpg","The Boneappetitedk storefront",[169,170,171],"figcaption",{},"1. Landing Page",[173,174,162,177,162,210],"div",{"className":175},[176],"collage",[173,178,181,182,181,192,181,201,162],{"className":179},[180],"collage-steps","\n    ",[160,183,184,185,184,189,181],{},"\n      ",[164,186],{"src":187,"alt":188},"\u002Fimg\u002Fprojects\u002Fboneappetite_dog_profile.jpg","Dog profile — breed and age",[169,190,191],{},"2. Breed & age",[160,193,184,194,184,198,181],{},[164,195],{"src":196,"alt":197},"\u002Fimg\u002Fprojects\u002Fboneappetite_body_condition.jpg","Choosing the dog's body condition",[169,199,200],{},"3. Body condition",[160,202,184,203,184,207,181],{},[164,204],{"src":205,"alt":206},"\u002Fimg\u002Fprojects\u002Fboneappetite_activity_level.jpg","Activity level before calculating the plan",[169,208,209],{},"4. Activity level",[160,211,181,214,181,218,162],{"className":212},[213],"collage-result",[164,215],{"src":216,"alt":217},"\u002Fimg\u002Fprojects\u002Fboneappetite_meal_plan.jpg","Recommended meal plan and subscription checkout",[169,219,220],{},"5. Recommended plan & checkout",[11,222,224],{"id":223},"subscriptions-and-billing","Subscriptions and billing",[16,226,227,228,233],{},"This was the part I had to learn the most for. I'd built webshops before with WooCommerce and Shopify where it's basically just products and a checkout — subscriptions are a completely different thing. I spent a good amount of time reading through ",[38,229,232],{"href":230,"rel":231},"https:\u002F\u002Fwww.chargebee.com\u002Fsubscription-management\u002F",[42],"Chargebee's subscription management docs"," and Stripe's own documentation to properly understand the model.",[16,235,236],{},"Once I had a solid understanding, Stripe's subscription API turned out to be really easy. It handles the recurring billing cycles, plan changes, failed payments, and invoicing in a way that integrated cleanly with the .NET Core backend.",[11,238,240],{"id":239},"a-final-note","A final note",[16,242,243],{},"This project pushed me into areas I hadn't worked in before: subscription billing, domain-specific calculators, and building a full custom eCommerce solution without leaning on an existing platform. It was one of the challenging projects I've done but also one of the most satisfying to ship.",[11,245,247],{"id":246},"project-demo","Project Demo",[249,250,162,252,162,257],"video",{"autoPlay":78,"loop":78,"muted":78,"playsInline":78,"ariaLabel":251},"Boneappetitedk webshop preview",[253,254],"source",{"src":255,"type":256},"\u002Fimg\u002Fprojects\u002Fboneappetite-preview.webm","video\u002Fwebm",[253,258],{"src":259,"type":260},"\u002Fimg\u002Fprojects\u002Fboneappetite-preview.mp4","video\u002Fmp4",[16,262,263],{},"And that's a wrap for this one. Hope you enjoyed the read 💖",{"title":63,"searchDepth":64,"depth":64,"links":265},[266,267,268,269,270],{"id":13,"depth":64,"text":14},{"id":154,"depth":64,"text":155},{"id":223,"depth":64,"text":224},{"id":239,"depth":64,"text":240},{"id":246,"depth":64,"text":247},"My recent project Boneappetitedk 💖","2025-07-01","Copenhagen based dog-food subscription webshop from the ground up using .NET Core, Vue.js, PostgreSQL, and Stripe","\u002Fimg\u002Fprojects\u002FBoneappetiteBannerWide.png",{},"\u002Fprojects\u002Fboneappetite","https:\u002F\u002Fboneappetitedk.com\u002F",4,{"title":137,"description":273},[281,282,283,284,285,286],".NET Core","Vue.js","PostgreSQL","Stripe","PrimeVue","Figma","projects\u002Fboneappetite",[289,290,291,292,293],"eCommerce","Webshop","Web App","Subscription","Full-Stack","yX_Pz2y85Z8HztzLrPvEuEYXYJn7lOwrVcrNzTwShe4",{"id":296,"title":297,"author":6,"body":298,"coverText":346,"date":347,"description":348,"excerpt":73,"extension":74,"heroImage":73,"image":349,"meta":350,"navigation":78,"path":351,"projectLink":73,"readingTime":278,"seo":352,"stack":353,"status":86,"stem":356,"tags":357,"unlisted":78,"__hash__":361},"content\u002Fprojects\u002Flekhastra.md","Lekhastra — A Multi-tenant Inventory ERP for 30+ Stores",{"type":8,"value":299,"toc":341},[300,309,313,316,320,327,334,338],[16,301,302,303,308],{},"I worked on a multi-tenant inventory for department stores while working full time as a software engineer at ",[38,304,307],{"href":305,"rel":306},"https:\u002F\u002Fprathamit.com\u002F",[42],"PrathamIT",". There were a lots of department stores which uses desktop based application and spreadsheet based inventory tracking. Each store tracked inventory differently and the working methodology was mostly dependent on who is incharge of running the store. There was lots of manual work for stock counting and reconciliation took days, and there was no shared source of truth across multiple branches. The foundation of the project Lekhastra was strong and ambitious. I had chance to work on the POS system, Backend System to handling the entire frontend stack.",[11,310,312],{"id":311},"multi-tenancy-from-day-one","Multi-tenancy from day one",[16,314,315],{},"The core architectur was multi-tenancy. 30+ stores needed to share the same application and infrastructure while keeping their data fully isolated. I worked on the multi-tenant backend so that a single deployment could serve every store.",[11,317,319],{"id":318},"decoupling-the-frontend","Decoupling the frontend",[16,321,322,323,326],{},"The project had strong foundation on the backend part which was built on .NET core and the UI was implemented on the server side. While working on the application we knew that the application needed to have large reports with complex ui and data visualization so we needed to separate the frontend from the monolithic app. The backend was already strong but we needed more flexibility and robustness on the frontend part. To mordernise without a full rewrite we build APIs over the existing logic and consumed them in ",[324,325,282],"strong",{}," single-page apps.\nThe decision actually worth and while we were porting the frontend we needed to make every feature work on bulk operation so entire backend is also designed in such a way that transaction supports bulk operations. We target our app to be mostly like the Excel spreadsheet but with advance features. Each cell would be a Dropdown, TextInput, or Nested Dropdown.\nWhile working on the loading the information we also need to be skeptical about how many times we need to fetch the data from the server also.\nWhile the old server rendered UI and backend processed only one form submission at a time, the new UI can support more than 100 form submissions at a single time. By correlating this we can create a guess that how much time it would save when we need to input 100 product creation. This has massively increased store efficiency and productivity. And by the time we had created a new standard working.",[16,328,329,333],{},[164,330],{"alt":331,"src":332},"Lekhastra inventory dashboard","\u002Fimg\u002Fprojects\u002Flekhastra_demo.jpg","\nA product list page with Advance Filtering and Bulk Operations.",[11,335,337],{"id":336},"learning-from-the-project","Learning from the Project",[16,339,340],{},"Lekhastra was a lesson in building for scale and isolation at the same time. Multi-tenancy forces us to be disciplined about where data boundaries live and serving 30+ real stores meant performance work wasn't optional.",{"title":63,"searchDepth":64,"depth":64,"links":342},[343,344,345],{"id":311,"depth":64,"text":312},{"id":318,"depth":64,"text":319},{"id":336,"depth":64,"text":337},"A SAP-inspired inventory ERP for 30+ stores 🏬","2024-08-01","How I helped build Lekhastra, a SAP-inspired multi-tenant inventory ERP serving 30+ department stores across Nepal — built on .NET Core, Vue.js, and PostgreSQL, with bulk operations","\u002Fimg\u002Fprojects\u002Flekhastra_cover.png",{},"\u002Fprojects\u002Flekhastra",{"title":297,"description":348},[281,354,282,283,355],"C#","TypeScript","projects\u002Flekhastra",[358,359,360,291,293],"ERP","Inventory","Multi-tenant","GSbgEb0Co62JwrkQxxUp_t4IZAjpNWEAxX_XO24fn1s",{"id":363,"title":364,"author":6,"body":365,"coverText":451,"date":452,"description":453,"excerpt":73,"extension":74,"heroImage":73,"image":443,"meta":454,"navigation":78,"path":455,"projectLink":456,"readingTime":278,"seo":457,"stack":458,"status":86,"stem":461,"tags":462,"unlisted":92,"__hash__":465},"content\u002Fprojects\u002Fbattery-notifier.md","Battery Notifier — An Open-Source Cross-Platform Desktop App for Battery Management",{"type":8,"value":366,"toc":444},[367,369,372,375,378,382,385,388,392,395,404,407,410,414,417,421,435,438],[11,368,14],{"id":13},[16,370,371],{},"It was just a normal working day. I was deep into one of my projects when my laptop suddenly shut off. No warning, no low-battery popup, nothing. Just a black screen.",[16,373,374],{},"My laptop was from 2017 and the battery had degraded quite a bit by then. Windows usually sends a notification when you're below 20%, but because of the degradation my machine would die well before reaching that point. Sometimes at 50% or more. The default system alert was basically useless for me.",[16,376,377],{},"That's when I thought why not just build something myself? A small app that sits in the background and notifies me exactly when I want to be notified.",[11,379,381],{"id":380},"why-winforms","Why WinForms",[16,383,384],{},"I was already familiar with C# and .NET from my day job where I'd built a POS desktop application, so going with WinForms felt natural. I know some people raise an eyebrow at WinForms being \"old\", but honestly for a lightweight system-tray utility it's more than capable. Most enterprise desktop software still runs on it and it gave me direct access to the Windows APIs i needed without any extra overhead.",[16,386,387],{},"The goal was simple to build a small desktop app that runs on startup, lives in the system tray and notifies me on different battery levels",[11,389,391],{"id":390},"building-it","Building it",[16,393,394],{},"It polls your battery status on a set interval and fires a native Windows toast notification when the charge crosses a threshold you've defined. You can set a high limit (so you know when to unplug) and a low limit (so you know when to plug in before it's too late).",[16,396,397,398,403],{},"One thing I had to think about was preventing multiple instances of the app running at the same time, which would cause duplicate notifications. I solved this using a ",[38,399,402],{"href":400,"rel":401},"https:\u002F\u002Fwww.autoitconsulting.com\u002Fsite\u002Fdevelopment\u002Fsingle-instance-winform-app-csharp-mutex-named-pipes\u002F",[42],"named Mutex",". A Mutex is normally used in multithreading to control access to a shared resource. Here i used it at the process level so that if the app is already running then any second launch just exits immediately.",[16,405,406],{},"After getting the core working, I wanted to distribute it properly. So I learned how to create an installer that handles the setup wizard, registers the app to run on startup and also supports automatic updates.",[16,408,409],{},"I also spent some time on the design side.  I Created custom tray icons and kept the settings UI minimal and clean. It was a good chance to flex a bit beyond just writing code 💪.",[11,411,413],{"id":412},"what-i-learned","What I learned",[16,415,416],{},"This was my first open-source release on GitHub, which felt like a big deal at the time. Beyond the code itself, I got a real feel for the full lifecycle of a desktop app. From the initial idea through building and testing, all the way to packaging, distributing, and maintaining a public release.",[11,418,420],{"id":419},"whats-next","What's next",[16,422,423,424,429,430,434],{},"The app still solves my original problem — and it's come a long way since the first WinForms version. I rebuilt it on ",[38,425,428],{"href":426,"rel":427},"https:\u002F\u002Favaloniaui.net\u002F",[42],"Avalonia UI",", a modern cross-platform framework for .NET, so it now runs on Windows, macOS, and Linux, distributed via winget and Homebrew. It's picked up 89+ stars on GitHub since. I wrote about that rewrite in ",[38,431,433],{"href":432},"\u002Fblog\u002Fshipping-battery-notifier-cross-platform","From a WinForms Hack to a Cross-Platform Desktop App",".",[436,437],"hr",{},[16,439,440],{},[164,441],{"alt":442,"src":443},"Battery Notifier Features","\u002Fimg\u002Fprojects\u002FBatteryNotifierBannerUpdated.webp",{"title":63,"searchDepth":64,"depth":64,"links":445},[446,447,448,449,450],{"id":13,"depth":64,"text":14},{"id":380,"depth":64,"text":381},{"id":390,"depth":64,"text":391},{"id":412,"depth":64,"text":413},{"id":419,"depth":64,"text":420},"my first opensource desktop app 🖥️","2024-07-01","Open-source, cross-platform desktop app that monitors battery status and sends native notifications — built with Avalonia UI, 89+ GitHub stars.",{},"\u002Fprojects\u002Fbattery-notifier","https:\u002F\u002Fgithub.com\u002FSandip124\u002FBatteryNotifier\u002F",{"title":364,"description":453},[354,459,460,428],"WinForms",".NET Framework","projects\u002Fbattery-notifier",[463,91,90,354,464],"Desktop","Avalonia","S7kDmBK6SkeDpiHupA1iJgQBO80uOlAf4hzMk6NYGb8",{"id":467,"title":468,"author":6,"body":469,"coverText":518,"date":519,"description":520,"excerpt":73,"extension":74,"heroImage":73,"image":521,"meta":522,"navigation":78,"path":523,"projectLink":524,"readingTime":278,"seo":525,"stack":526,"status":528,"stem":529,"tags":530,"unlisted":92,"__hash__":533},"content\u002Fprojects\u002Fexpense-tracker.md","Expense Tracker — A Multi-Workspace Finance Manager Built with .NET Core",{"type":8,"value":470,"toc":512},[471,473,476,479,483,486,489,493,496,499,503,506,509],[11,472,14],{"id":13},[16,474,475],{},"This one actually goes back to my college days. I built an early version of it as a project back then just a basic way to log transactions. But the idea always stuck with me and I kept thinking about what it could be if I actually built it properly.",[16,477,478],{},"The core problem I wanted to solve was pretty simple. Most finance apps treat everything as one big flat list. That's fine if you only have one thing to track, but as soon as you want to separate your personal spending from shared expenses, or keep a side project's budget completely isolated, it falls apart. I wanted something where each context had its own space - its own transactions, categories, and balance.",[11,480,482],{"id":481},"what-is-unique-here","What is unique here ?",[16,484,485],{},"The main feature is workspaces. You can create as many as you want. One for personal finances, one for shared household costs, one for a side project and many more workspace as you need. Each one is completely separate with its own transactions, categories, and balance.",[16,487,488],{},"Within each workspace you can record income and expense entries, assign them to categories you define yourself, and mark things as recurring for bills or subscriptions that repeat every month. The summary view gives you a quick picture of total in, total out, and a breakdown by category so you can see where your money is actually going.",[11,490,492],{"id":491},"status-of-the-project","Status of the project",[16,494,495],{},"Right now it's a working prototype. The core fetures are all functional.",[16,497,498],{},"It's one of those projects I keep coming back to when I have time. The plan is to eventually migrate the frontend to Vue.js, add charts and also even add features which is required for a user to record their transactions. I also want to publish a Docker image so anyone can self-host it easily.",[11,500,502],{"id":501},"what-im-learning-from-it","What I'm learning from it",[16,504,505],{},"This project has been a good exercise in building something long-term. It's easy to keep a project clean when you're sprinting to ship it. It's a lot harder when you're returning to it in small sessions over months. So it's been a useful lesson in writing code that's readable and maintainable enough that future-me isn't completely lost when picking it back up.",[16,507,508],{},"The multi-tenant data model was also an interesting design challenge.",[16,510,511],{},"Hopefully I'll have a proper v1 to show off soon. 🤘",{"title":63,"searchDepth":64,"depth":64,"links":513},[514,515,516,517],{"id":13,"depth":64,"text":14},{"id":481,"depth":64,"text":482},{"id":491,"depth":64,"text":492},{"id":501,"depth":64,"text":502},"My ambition project Expense Tracker 🤘","2023-11-04","A .NET Core web application for managing personal and group finances. Supports multiple workspaces so each person can track their own incoming and outgoing transactions separately — built as an open-source side project.","\u002Fimg\u002Fprojects\u002FExpenseTrackerBannerWide.png",{},"\u002Fprojects\u002Fexpense-tracker","#",{"title":468,"description":520},[281,354,283,84,527],"CSS","Prototype","projects\u002Fexpense-tracker",[291,531,90,293,532],"Finance","Personal Project","c6so3NN3QE11-giS_6StqbvSYCzVA-OfvbeTcxHOVwo",1795304472399]