{"@attributes":{"version":"2.0"},"channel":{"title":"Home on Bhargav Mogra","link":"https:\/\/mogra.dev\/","description":"Recent content in Home on Bhargav Mogra","generator":"Hugo","language":"en","lastBuildDate":"Sun, 20 Sep 2026 16:45:00 +0700","item":[{"title":"The Principles of Hestia Architecture","link":"https:\/\/mogra.dev\/blog\/hestia-architecture-principles\/","pubDate":"Sun, 20 Sep 2026 16:45:00 +0700","guid":"https:\/\/mogra.dev\/blog\/hestia-architecture-principles\/","description":"<p><em>Build the product once. Keep each target shell as small as its platform requires.<\/em><\/p>\n<p>Most multi-platform codebases start with good intentions and end with a\n<code>shared\/<\/code> folder that nobody can describe. Business rules leak into view\ncontrollers. A vendor SDK type shows up in a domain model. &ldquo;Portable&rdquo; code\ncompiles for one platform and is patched for the others. The architecture that\nwas supposed to save effort becomes the reason every feature ships three times.<\/p>"},{"title":"Setting Up a Production-Grade Kotlin Project with GraalVM and Gradle","link":"https:\/\/mogra.dev\/blog\/setting-up-kotlin-graalvm-gradle\/","pubDate":"Sat, 11 Jan 2025 13:30:02 +0700","guid":"https:\/\/mogra.dev\/blog\/setting-up-kotlin-graalvm-gradle\/","description":"<p>Modern Kotlin projects require a robust build setup that&rsquo;s maintainable, scalable, and follows best practices. This guide will walk you through setting up a production-grade Kotlin project with GraalVM support using Gradle&rsquo;s latest features including version catalogs and included builds.<\/p>\n<h2 id=\"project-structure\">Project Structure<\/h2>\n<p>First, let&rsquo;s look at our project structure:<\/p>\n<pre tabindex=\"0\"><code>\u251c\u2500\u2500 build-logic\/\n\u2502 \u251c\u2500\u2500 settings.gradle.kts\n\u2502 \u251c\u2500\u2500 build.gradle.kts\n\u2502 \u2514\u2500\u2500 src\/main\/kotlin\/\n\u2502 \u2514\u2500\u2500 your\/\n\u2502 \u2514\u2500\u2500 gradle\/\n\u2502 \u251c\u2500\u2500 kotlin-common.gradle.kts\n\u2502 \u2514\u2500\u2500 graalvm.gradle.kts\n\u251c\u2500\u2500 gradle\/\n\u2502 \u2514\u2500\u2500 libs.versions.toml\n\u251c\u2500\u2500 settings.gradle.kts\n\u2514\u2500\u2500 build.gradle.kts\n<\/code><\/pre><h2 id=\"version-catalog\">Version Catalog<\/h2>\n<p>The version catalog (<code>gradle\/libs.versions.toml<\/code>) centralizes all our dependency versions and plugin declarations. This makes version management easier and ensures consistency across modules.<\/p>"},{"title":"Repositories in settings.gradle.kts vs build.gradle.kts","link":"https:\/\/mogra.dev\/blog\/gradle-repositories-settings-vs-build\/","pubDate":"Sat, 11 Jan 2025 12:47:12 +0700","guid":"https:\/\/mogra.dev\/blog\/gradle-repositories-settings-vs-build\/","description":"<ol>\n<li><code>settings.gradle.kts<\/code> (Project Settings):<\/li>\n<\/ol>\n<div class=\"highlight\"><pre tabindex=\"0\" class=\"chroma\"><code class=\"language-kotlin\" data-lang=\"kotlin\"><span class=\"line\"><span class=\"cl\"><span class=\"c1\">\/\/ settings.gradle.kts\n<\/span><\/span><\/span><span class=\"line\"><span class=\"cl\"><span class=\"n\">dependencyResolutionManagement<\/span> <span class=\"p\">{<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\"> <span class=\"n\">repositories<\/span> <span class=\"p\">{<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\"> <span class=\"n\">mavenCentral<\/span><span class=\"p\">()<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\"> <span class=\"p\">}<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\"><span class=\"p\">}<\/span>\n<\/span><\/span><\/code><\/pre><\/div><ul>\n<li>This configures repositories for ALL project dependencies<\/li>\n<li>Applied before any build scripts are evaluated<\/li>\n<li>Sets the default repositories for the entire project and all its modules<\/li>\n<li>Available since Gradle 6.8<\/li>\n<li>Considered the modern, recommended way to declare repositories<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><code>build.gradle.kts<\/code> (BuildScript):<\/li>\n<\/ol>\n<div class=\"highlight\"><pre tabindex=\"0\" class=\"chroma\"><code class=\"language-kotlin\" data-lang=\"kotlin\"><span class=\"line\"><span class=\"cl\"><span class=\"c1\">\/\/ build.gradle.kts\n<\/span><\/span><\/span><span class=\"line\"><span class=\"cl\"><span class=\"n\">buildscript<\/span> <span class=\"p\">{<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\"> <span class=\"n\">repositories<\/span> <span class=\"p\">{<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\"> <span class=\"n\">mavenCentral<\/span><span class=\"p\">()<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\"> <span class=\"p\">}<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\"><span class=\"p\">}<\/span>\n<\/span><\/span><\/code><\/pre><\/div><ul>\n<li>This configures repositories only for build script dependencies (plugins, etc.)<\/li>\n<li>Only affects dependencies needed to execute the build script itself<\/li>\n<li>Doesn&rsquo;t affect project dependencies<\/li>\n<li>Used primarily for legacy plugins or when you need specific repositories just for build configuration<\/li>\n<\/ul>\n<p><strong>Key Distinctions:<\/strong><\/p>"},{"title":"About","link":"https:\/\/mogra.dev\/about\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/mogra.dev\/about\/","description":"<p>I build Android applications and the platform underneath them \u2014 the build system, the CI pipelines, the observability, and the shared libraries other teams depend on.<\/p>\n<p>Over 12 years I&rsquo;ve worked across travel, fintech, food delivery, and e-commerce, mostly on the unglamorous parts: crash rates, cold start, Gradle builds, release pipelines, deeplinks that quietly stopped working. I&rsquo;ve taken a CI pipeline from 90 minutes to 20, crash-free users from 95% to 99.6%, and mentored engineers who now lead teams.<\/p>"},{"title":"Homelab","link":"https:\/\/mogra.dev\/homelab\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/mogra.dev\/homelab\/","description":"<div class=\"terminal-prompt\">cat homelab\/README.md<\/div>\n<p class=\"term-lede\">Static pages ship to Cloudflare Pages. Dynamic bits \u2014 the API proxy and analytics \u2014 still run on a private Kubernetes cluster I operate, reached only through an outbound-only tunnel.<\/p>\n<hr>\n<h2 id=\"architecture\">Architecture<\/h2>\n<figure class=\"arch\" aria-label=\"Request path from a visitor to Pages and the cluster\">\n<div class=\"arch-node\">\n<span class=\"arch-node__name\">Visitor<\/span>\n<span class=\"arch-node__desc\">Browser requesting mogra.dev<\/span>\n<\/div>\n<div class=\"arch-link\"><span class=\"arch-link__label\">HTTPS<\/span><\/div>\n<div class=\"arch-node\">\n<span class=\"arch-node__name\">Cloudflare<\/span>\n<span class=\"arch-node__desc\">DNS, TLS, Pages for HTML, edge Functions for a few paths<\/span>\n<\/div>\n<div class=\"arch-cluster\">\n<p class=\"arch-cluster__title\">Edge routes<\/p>\n<div class=\"arch-routes\">\n<div class=\"arch-route\">\n<span class=\"arch-route__path\">\/*<\/span>\n<span class=\"arch-node__name\">Cloudflare Pages<\/span>\n<span class=\"arch-node__desc\">Hugo static site \u2014 blog, resume, projects, this page<\/span>\n<\/div>\n<div class=\"arch-route\">\n<span class=\"arch-route__path\">\/api\/* \u00b7 \/t.js<\/span>\n<span class=\"arch-node__name\">Pages Function \u2192 tunnel<\/span>\n<span class=\"arch-node__desc\">Proxies to origin.mogra.dev on the cluster<\/span>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"arch-link\"><span class=\"arch-link__label\">outbound-only tunnel \u2014 the cluster dials out, nothing dials in<\/span><\/div>\n<div class=\"arch-cluster\">\n<p class=\"arch-cluster__title\">Kubernetes cluster <span class=\"arch-cluster__tag\">namespaces: mogra, umami<\/span><\/p>"},{"title":"Now","link":"https:\/\/mogra.dev\/now\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/mogra.dev\/now\/","description":"<p>What I&rsquo;m focused on right now. (Inspired by <a href=\"https:\/\/nownownow.com\">nownownow.com<\/a>.)<\/p>\n<p><strong>Last updated:<\/strong> August 2026<\/p>\n<ul>\n<li>Leading frontend at <a href=\"https:\/\/finn-app.com\">FINN<\/a>, a hybrid app \u2014 Angular inside an Android shell over Capacitor<\/li>\n<li>Managing a team of 4 and hiring senior frontend engineers<\/li>\n<li>Learning the web half of that stack properly, and sharpening the native half: startup time, Android vitals, and the WebView boundary<\/li>\n<li>Rebuilding the logging and A\/B experimentation systems in the web app<\/li>\n<li>Building internal tooling: release tracking, experiment health monitoring, and MCP servers for the parts of development that are still manual<\/li>\n<li>Running <a href=\"https:\/\/mogra.dev\">mogra.dev<\/a> on Hugo with a homelab-backed API proxy<\/li>\n<li>Writing about Gradle, Kotlin, and build systems<\/li>\n<\/ul>\n<p>If your interests overlap, <a href=\"mailto:bhargav521@gmail.com\">reach out<\/a>.<\/p>"},{"title":"Projects","link":"https:\/\/mogra.dev\/projects\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/mogra.dev\/projects\/","description":"<p>Open source tools, libraries, and templates I&rsquo;ve built. Live GitHub stats load when available; the list itself is always in the HTML.<\/p>"},{"title":"Resume","link":"https:\/\/mogra.dev\/resume\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/mogra.dev\/resume\/","description":{}},{"title":"Uses","link":"https:\/\/mogra.dev\/uses\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/mogra.dev\/uses\/","description":"<p>Tools and setup I reach for daily.<\/p>\n<h2 id=\"editor--terminal\">Editor &amp; Terminal<\/h2>\n<ul>\n<li><strong>Neovim<\/strong> \u2014 my <a href=\"https:\/\/github.com\/bhargavms\/nvim\">config<\/a> is Lua and lazy.nvim, with <a href=\"https:\/\/github.com\/bhargavms\/mogra-toolchain.nvim\">mogra-toolchain.nvim<\/a> handling development tool versions<\/li>\n<li><strong>WezTerm<\/strong> \u2014 with a floating agent sidebar I wrote in Go that shows which coding agents are running and what they are working on<\/li>\n<li><strong><a href=\"https:\/\/github.com\/bhargavms\/dotfiles\">dotfiles<\/a><\/strong> \u2014 zsh and oh-my-zsh, ideavimrc, and a Makefile that brings up a new machine<\/li>\n<li><strong>Android Studio \/ IntelliJ IDEA<\/strong> for Android work, driven with IdeaVim<\/li>\n<\/ul>\n<h2 id=\"hardware\">Hardware<\/h2>\n<ul>\n<li>MacBook Pro (primary development machine)<\/li>\n<\/ul>\n<h2 id=\"languages--frameworks\">Languages &amp; Frameworks<\/h2>\n<ul>\n<li><strong>TypeScript, Angular, Ionic, Capacitor<\/strong> \u2014 the hybrid app I lead the frontend for<\/li>\n<li><strong>Kotlin, Java<\/strong> \u2014 Android, and the native shell the web app runs inside<\/li>\n<li><strong>Go<\/strong> \u2014 internal tooling and the API proxy behind this site<\/li>\n<li><strong>Gradle<\/strong> \u2014 build logic and custom plugins<\/li>\n<\/ul>\n<h2 id=\"build--cicd\">Build &amp; CI\/CD<\/h2>\n<ul>\n<li>GitHub Actions for everything current, Jenkins and GitLab CI in past lives<\/li>\n<li>pre-commit hooks and ktlint, so formatting never reaches CI<\/li>\n<li>Gradle plugins for build times and build monitoring<\/li>\n<\/ul>\n<h2 id=\"infrastructure\">Infrastructure<\/h2>\n<ul>\n<li>Kubernetes, Argo CD, Helm \u2014 GitOps all the way down<\/li>\n<li>Terraform and Terraform Cloud<\/li>\n<li>Docker, Ansible<\/li>\n<li>GCP and DigitalOcean<\/li>\n<\/ul>\n<h2 id=\"testing--observability\">Testing &amp; Observability<\/h2>\n<ul>\n<li>Espresso, JUnit, and Maestro, with ReportPortal for aggregation<\/li>\n<li>Crashlytics, Prometheus, and Grafana<\/li>\n<li>Amplitude and Databricks for measuring launches<\/li>\n<\/ul>\n<h2 id=\"other\">Other<\/h2>\n<ul>\n<li>MCP servers for the parts of development that are still manual<\/li>\n<li>DBT for data models<\/li>\n<li>Stack Overflow for giving back to the community<\/li>\n<\/ul>"}]}}