Portrait of Roshan Kc, Co-Founder and CTO of MarginTop Solutions

Kathmandu · CTO

Roshan Kc Co-Founder and CTO at MarginTop Solutions

I am a computer engineer specializing in IoT-based applications and DevOps. I build IoT-based applications for enterprises and startups — working with the protocols and algorithms physical devices rely on, including ADMS, OCPP, ROS, M…

Team

16

Members led at MarginTop

Role

CTO

Sets technical vision

Focus

IoT

Systems & DevOps

The story

How MarginTop Solutions began

Right after my bachelor’s degree, I started teaching. On the side, Bibek and I took freelance projects from clients. One of those clients got funding and asked us to register a company — so we officially registered MarginTop Solutions (opens in a new tab). A few months later, Samir joined too. By the end of that same year, we moved to Kathmandu.

How the name came

MarginTop Solutions was a name we decided in our first year of college. We were in a lot of programs and competitions, and we already knew we would start a company someday. We brainstormed a few names, landed on MarginTop, and after that we used the same brand in every program and hackathon we joined.

Online to growth

For the first six months we worked completely online. Then came the growth phase. As our client base expanded and project complexity grew, we knew we were onto something bigger. We hired more people — we even hired a maid and started providing khaja in the office. Personally, I felt the pain of growth with no prior experience. We had to work on everything. As CTO, I was DevOps at night, backend developer in the evening, Flutter during the day — and team management sat on top of all of it.

Where we are now

We primarily relied on a third person to get projects. We soon realized that was not the right way, and now we have started approaching clients directly. I am learning marketing, social media management, ads, and video editing — and I think that is the best gift of starting early: there is always energy to learn. Today MarginTop is growing slowly and stably. Our team size is 16 and still growing. In parallel, we are working on products of our own.

How I show up

Strong technical expertise. Learnability. Experience.

That is the bar I hold for myself as CTO — deep enough to set the technical vision, curious enough to keep learning, and seasoned enough to ship under real pressure.

  • Technical expertise

    IoT-based applications and DevOps for enterprises and startups — including the software side of device protocols like ADMS, OCPP, ROS, MQTT, STUN, and TURN.

  • Learnability

    Starting early taught me to keep learning on purpose — marketing, social media, ads, video editing, and whatever the next gap in the company demands.

  • Experience

    From freelance client work to a registered company and a team of 16 — wearing DevOps, backend, Flutter, and management hats while MarginTop grew.

  • Craft outside the office

    Video editing, graphic design, and frontend for the joy of making. Swimming, running, and cycling to stay sharp.

Experience

The CV, without the PDF

A hands-on CTO who still ships code. I work where software meets physical devices, and I build the platforms, apps and infrastructure around them.

  • 10+enterprise systems delivered
  • 16engineers led and hired
  • 10+industries served
  • 3clouds in production: AWS, Azure, GCP
  1. 2023 — Present

    Co-Founder & Chief Technology Officer

    MarginTop Solutions · Kathmandu, Nepal

    • Technical direction. I own architecture, stack choices and code standards for every engagement. That includes in-house Laravel, React and Flutter boilerplates, role-based access control, linting and formatting rules, code reviews and a monolith-first default.
    • Hardware-facing products. I lead the software for robots, clinical wearables, biometric terminals and EV chargers, and I write the protocol layers myself: BLE mesh, serial file transfer, vendor push protocols and OCPP.
    • Platforms and data. I've architected a multi-tenant SaaS, fintech order books, ERPs, CRMs and healthcare portals, as well as LLM-driven recommendation and media pipelines.
    • Infrastructure. Containerised deployments on a self-hosted PaaS across AWS, Azure and GCP, plus CI with GitHub Actions, self-hosted STUN / TURN and Supabase servers, and load testing before launch.
    • Team and business. We grew from fully remote to a Kathmandu office of 16. I run hiring and intern mentoring, and I helped move the company from third-party project sourcing to working with clients directly.
  2. 2023

    Freelance Engineer & Higher-Secondary Teacher

    Independent · Nepal

    • Taught computer science while building freelance web projects with my co-founder. A funded client asked us to incorporate, and that became MarginTop.
    • Designed Python courses for school students, covering games, charts, data and automation.
  3. 2018 — 2023

    Bachelor of Computer Engineering

    IOE, Pashchimanchal Campus · Pokhara

    • Robotics club member. Built the club website on a Google Sheets-backed CMS.
    • Hackathons: an AI smart-farm monitor with crop and disease prediction built in 24 hours, and a CNN-based emotion-recognition web app.
    • Started the MarginTop brand in college programs and competitions, years before we registered the company.

Selected work

What I've built, by problem space

Client and product names stay private. This is the engineering: what each system does, the hard parts, and the tools I used.

01 · Robotics & automation

Control software for autonomous mobile robots

The software operators use to map, program and run industrial robots, both from a browser and from a desktop app that talks to the controller directly.

  • A web control app on ROS 2 (via rosbridge) with live map rendering, mapping and navigation modes, routes, waypoints, restricted and special zones, joystick teleop and run statistics.
  • Visual programming with Blockly and custom robot blocks, so operators can build missions without writing code.
  • Leading the codebase's move to Domain-Driven Design and Clean Architecture, one module at a time (strangler pattern), with JavaScript migrated to TypeScript.
  • An Electron desktop configurator that talks to the controller over USB serial. It uses custom ZMODEM / XMODEM file transfer, YAML config packages, i18n and auto-update.
  • A Flutter provisioning app plus Ubuntu-side Python services (hotspot creator, Wi-Fi scanner API) to put robots on site networks.

ROS 2roslibGazeboReactTypeScriptKonvaBlocklyElectronserialportFlutterPython

02 · Connected health devices

Companion apps for a clinical wearable

Mobile apps that pair with a Bluetooth-mesh therapy device, run treatment sessions and keep clinical data safe even when the phone is offline.

  • Bluetooth mesh provisioning on Nordic nRF hardware, custom opcodes and over-the-air firmware updates (DFU).
  • Long-running background sessions and local notifications that survive the OS killing the app.
  • Offline-first sync with self-hosted Supabase + PowerSync on Docker, plus a Laravel / React admin dashboard for clinicians.

FlutterBLE MeshNordic nRFDFUSupabasePowerSyncLaravelDocker

03 · Biometrics & access control

Device management for fingerprint terminals

A backend that manages a fleet of biometric terminals for attendance and access control, with mobile and tablet apps on top.

  • Implemented the terminals' ADMS / HTTP push protocol from the vendor spec: device registration, command queues, attendance logs and user enrolment.
  • Fingerprint capture and matching with the vendor SDKs on Android and Linux.
  • Node.js services with React dashboards and mobile / tablet clients.

ZKTeco ADMSPush SDKFingerprint SDKNode.jsReactAndroid

04 · EV charging & telemetry

Talking to chargers and sensors

Server-side protocol work so platforms can monitor and control physical equipment in the field.

  • OCPP integration to register EV chargers, receive status and meter values, and run remote charging commands.
  • MQTT messaging for device telemetry and commands.
  • Scheduled data collectors with retry logic and email alerts when a run fails.

OCPPMQTTWebSocketsCron & alerting

05 · Real-time communication

Peer-to-peer media and multiplayer

Low-latency connections between users and devices, plus the servers that make them work across networks.

  • Set up and run self-hosted STUN / TURN servers and wired them into WebRTC applications.
  • Peer-to-peer multiplayer over WebRTC, with short-lived TURN credentials, leaderboards and telemetry served from Cloudflare Workers.
  • WebSocket broadcasting with Laravel Reverb, and Web Push notifications from PWAs.

WebRTCSTUN / TURNCloudflare WorkersPartyServerLaravel ReverbWeb Push

06 · AI & data

LLM and data pipelines that run in production

Pipelines that turn messy web data, audio and documents into structured, searchable output.

  • A marketplace deal engine: scrape → screen and normalise → LLM extraction → fair-value scoring → embeddings → ranked matches against each buyer's questionnaire profile.
  • Speech-to-text and context-aware dubbing with LLMs, served over FastAPI.
  • Scraping and knowledge pipelines that collect, structure and publish country-by-country guides.
  • Constraint optimisation for routes and schedules with OptaPlanner.

PythonOpenAIGeminipgvectorEmbeddingsApifyFastAPIJupyterOptaPlanner

07 · SaaS & business systems

Multi-tenant platforms, ERPs and portals

Systems that run day-to-day operations for schools, clinics, consultancies and growing companies.

  • A multi-tenant SaaS with a superadmin tenant, a PostgreSQL database per organisation, subdomain routing, per-tenant storage buckets and RBAC on stateless Laravel Octane + Swoole.
  • School ERP, consultancy CRM, recruitment dashboards and travel booking sites.
  • A rehabilitation-centre platform with an admin panel, an API and a parent PWA (reports, billing, push notifications).

LaravelOctaneHorizonPostgreSQLRedisExpressMongoDBReactNext.jsPWA

08 · Fintech & payments

Order books, billing and checkout

Money-moving systems where correctness and auditability matter more than speed of delivery.

  • An investment order book with issuances, investor balances and database-trigger audit trails.
  • Subscription billing with Stripe and Apple Pay, mobile in-app purchases with RevenueCat, and local gateways (PhonePe, Fonepay).
  • Live commodity-rate tracking with scheduled scrapers, retry logic and failure alerts.

StripeApple PayRevenueCatPhonePeFonepayMySQL triggers

09 · Media & streaming

Video and audio at scale

Pipelines that make uploaded media stream well on any connection.

  • An adaptive HLS transcoding pipeline: multiple video and audio quality levels, automatic media-type detection, fixes for broken streams, and local or S3 storage.
  • Bulk archive downloaders with per-host rate limiting, resume support and metadata extraction.
  • Image compression and resizing tools for content teams.

FFmpegHLSS3PythonBackblaze B2

10 · Mobile, desktop & games

Cross-platform apps close to the metal

Apps that work with printers, audio hardware and GPUs, not just forms.

  • A universal printer app for Android, iOS, Windows, macOS and Linux. It discovers printers over BLE, Bluetooth Classic, Wi-Fi (mDNS) and USB, and prints ESC/POS receipts and labels.
  • Real-time 3D sports games on a custom physics engine (spin / Magnus effect, drag, bounce) with a CPU opponent, shipped to iOS and Android with over-the-air updates.
  • A hearing-assist app doing real-time audio DSP in C, called from Flutter through Dart FFI and Oboe.
  • Android TV display apps and Python desktop tools.

FlutterRiverpodDart FFIAndroid NDKESC/POSThree.jsCapacitorAndroid TV

11 · Infrastructure & DevOps

Running it all in production

How we deploy, observe and scale everything above on a startup budget.

  • Containerised deployments on Coolify, including migrating workloads between cloud VMs.
  • Azure Functions that pull diagnostic logs from Blob Storage into Table Storage for compliance reporting, with secrets in Key Vault.
  • Laravel tuned with Octane, Swoole and io_uring for concurrent load. JMeter and custom benchmarks run before launch.
  • CI with GitHub Actions, Cloudflare at the edge, and product analytics with PostHog.

DockerCoolifyAWSAzureGCPGitHub ActionsCloudflareJMeter

12 · Developer tooling

Tools that make teams faster

Internal platforms and starter kits that cut setup time on every new project.

  • An API-testing platform: import OpenAPI specs, build dependency-aware test chains, generate test suites, and run them dry or live, with RBAC.
  • Company boilerplates for Laravel, React admin and Flutter with permissions, media handling and coding standards built in.
  • Lead collection, bulk SMS and social auto-posting tools for the business side.

TypeScriptExpress 5MongoDBZodOpenAPILaravel

Tech stack

Tools I've shipped with

Everything here has been used in real projects, not just tutorials.

Languages
PHPTypeScriptJavaScriptPythonDartC / C++SQLBash
IoT & protocols
ROS 2BLE MeshNordic nRF / DFUMQTTOCPPZKTeco ADMSSerial / ZMODEMESC/POS
Real-time
WebRTCSTUN / TURNWebSocketsLaravel ReverbCloudflare WorkersWeb Push
Backend
LaravelOctane + SwooleHorizonNode.jsExpressFastAPIFlask
Frontend
ReactNext.jsViteTailwind CSSThree.jsKonvaBlocklyPWA
Mobile & desktop
FlutterRiverpodDart FFI / NDKCapacitorElectronAndroid TVCustomTkinter
AI & data
OpenAIGeminiEmbeddingspgvectorSpeech-to-textApifypandasOptaPlanner
Databases
PostgreSQLMySQLMongoDBRedisSupabasePowerSyncSQLite
Cloud & DevOps
AWSAzureGCPDockerCoolifyGitHub ActionsCloudflareFFmpeg / HLSJMeter
Payments & growth
StripeApple PayRevenueCatPhonePeFonepayAdMobPostHog

Industries I've built for

Robotics & automationHealthTech & clinical devicesRehabilitation careFintech & capital marketsBiometrics & access controlEV chargingEdTech & school ERPMarketplaces & recommendationsMedia streaming & AI dubbingGamingTravel & bookingRecruitment & CRMCommodity pricingGov-tech analytics

Writing

Notes from the founder seat

All posts

Quick answers

People often ask

Who is Roshan Kc?

Roshan Kc is the Co-Founder and CTO of MarginTop Solutions in Kathmandu. He is a computer engineer specializing in IoT-based applications and DevOps — building device-backed platforms that use protocols like MQTT, OCPP, ROS, ADMS, STUN, and TURN.

What is MarginTop Solutions?

MarginTop Solutions is an IT company co-founded by Roshan Kc, Bibek, and Samir. It grew from freelance client work into a registered company, moved to Kathmandu, and is now a team of 16 growing slowly and stably — while also building products.

What technologies does Roshan Kc work with?

PHP and Laravel (Octane, Horizon, Reverb), TypeScript with React, Next.js and Node.js, Python with FastAPI, and Flutter for mobile. On the device side he works with ROS 2, Bluetooth Mesh, MQTT, OCPP, ZKTeco ADMS, WebRTC and STUN / TURN. Infrastructure runs on Docker, Coolify, AWS, Azure, GCP and GitHub Actions.

What kind of systems has Roshan Kc built?

Control software for autonomous mobile robots, companion apps for a Bluetooth-mesh clinical wearable, biometric access-control and EV-charger integrations, LLM and recommendation pipelines, multi-tenant SaaS platforms, fintech order books, HLS video pipelines, and real-time 3D multiplayer games.

Where did Roshan Kc study?

Roshan Kc holds a Bachelor of Computer Engineering from IOE, Pashchimanchal Campus in Pokhara, Nepal (2018 – 2023).

How can I get in touch?

Email kcroshan566@gmail.com, or reach out via LinkedIn, GitHub, Instagram, X, Medium, Facebook, or WhatsApp.

Next chapter

Let’s build something lasting

Partnerships, architecture conversations, MarginTop collaborations, or startup ideas — my inbox is open.