Skip to content
View kohtun386's full-sized avatar

Block or report kohtun386

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
kohtun386/README.md

Ko Htun (Htun Htun Win)

Status Focus Region

Product-focused full-stack developer building governed, deterministic SaaS platforms for manufacturing, academic automation, and POS systems. I design systems where data integrity is non-negotiable and audit trails are sealed at the database level.


What I Build

  • Factory ERP — Multi-tenant workforce intelligence for garment/textile manufacturing
  • Academic Automation — AI-powered thesis generation with multi-agent orchestration and HITL quality gates
  • POS Systems — In-browser point-of-sale with payments and inventory workflows
  • Payroll Automation — Piece-rate payroll engines for textile mills with deterministic calculation

Core Principles:

  • 🏛️ Governance First — RBAC, audit trails, immutable logs
  • 📱 Mobile-First — Owner and supervisor workflows on the go
  • 🔒 Data Integrity — RLS-enforced tenant isolation, RPC-only approvals
  • 🌏 Local-First — Built for Myanmar market realities

Tech Stack

Layer Technologies
Frontend React 18 · Vite · TypeScript · MUI v7
Backend Supabase (Postgres · Auth · RLS · RPCs) · Firebase
Architecture React Context API · Service-layer mutations · Deterministic flows
Deployment Vercel · GitHub Actions
Mobile Flutter · Dart
Tools Claude Code · n8n · Docker

Featured Projects

🏭 Factory ERP V4

Governed, enterprise-ready workforce intelligence SaaS for garment factories.

Status Stack

  • Repo: kohtun386/factory-erp-supabase (private)
  • Stack: React + Vite · Supabase · MUI v7 · TypeScript
  • Status: Active Development (Phase 2 — Onboarding & Governance)
  • Key Features:
    • Multi-tenant architecture with Row Level Security
    • Deterministic production log approvals (RPC-only)
    • Immutable audit trails
    • Invite-only self-serve onboarding
    • Mobile-first UX for supervisors and operators

Architecture Invariants:

  • Approvals via SECURITY DEFINER RPCs only
  • Approved records are immutable (no UPDATE, no DELETE)
  • Process gates enforce valid state transitions
  • Audit trails are append-only

"Approval is RPC-only. Immutability is enforced at the database level. No client bug can violate boundary invariants."


🎓 Shadow Thesis Factory

B2B SaaS platform for automated thesis generation using Event-Driven Multi-Agent Orchestration.

Status Stack

Architecture Highlights:

  • Human-in-the-Loop (HITL) — Quality control and approval gating at every stage
  • Citation Hard Validation — Law 4 enforcement for verified scholarly sourcing
  • Deterministic Data Parsing — SPSS exports: numeric extraction separated from AI narrative generation
  • Event-Driven Orchestration — n8n workflow engine with centralized error handling

Key Components:

  • FastAPI Backend-for-Frontend (BFF)
  • n8n workflow orchestration (wf_05_chapter_writer, wf_error_handler)
  • Supabase with pgvector for semantic search
  • CONCURRENTLY indexed for performance (drafts, thesis_framework)

💳 POS-system

Web-based point-of-sale system with payments and inventory UI.

License Stars


🌐 Vibe Code Tours

Public bilingual landing site for Vibe Code Tours.


Architecture Philosophy

My systems follow deterministic flow design:

┌─────────────────────────────────────────────────────────────┐
│                    GOVERNANCE LAYER                         │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐ │
│  │ RBAC/Auth   │  │ Audit Logs  │  │ Tenant Isolation    │ │
│  │ (Supabase)  │  │ (Immutable) │  │ (RLS Policies)      │ │
│  └─────────────┘  └─────────────┘  └─────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
                            │
                            ▼
┌─────────────────────────────────────────────────────────────┐
│                   BUSINESS LOGIC                            │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐ │
│  │ RPC-Only    │  │ Service     │  │ Deterministic       │ │
│  │ Approvals   │  │ Layer       │  │ State Transitions   │ │
│  └─────────────┘  └─────────────┘  └─────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
                            │
                            ▼
┌─────────────────────────────────────────────────────────────┐
│                     PRESENTATION                            │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐ │
│  │ Mobile-First│  │ React       │  │ MUI v7              │ │
│  │ UX          │  │ Context API │  │ Components          │ │
│  └─────────────┘  └─────────────┘  └─────────────────────┘ │
└─────────────────────────────────────────────────────────────┘

Let's Connect

GitHub Email

Open to: Collaboration on SaaS ERP systems, AI-powered automation, manufacturing workflows, and Myanmar-focused tech products.


Building governed, deterministic, enterprise-ready SaaS platforms.
Last updated: June 2026

Pinned Loading

  1. POS-system POS-system Public

    Forked from Keshara1997/POS-system

    A point-of-sale (POS) system is the hardware and software that enables you to make sales, accept payments, and check out customers.Whether you want to open a retail store,you need a POS system to a…

    TypeScript 6 1