Available for select engagements

I don't just build apps.
I architect the systems businesses run on.

I'm Hasnain, a Senior Full Stack Engineer and Systems Architect. I take messy operational problems and turn them into production systems that hold under real load.

Seven years, 200+ web projects, and 10+ production-grade platforms: real-time infrastructure, multi-tenant SaaS, AI/LLM products, and commerce at six-figure monthly volume.

Islamabad · RemoteWorking worldwide·All timezones·Async by default
Hasnain Ahmed Khan
Technical PM & Systems ArchitectLinkedIn

Teams and brands I've built for

Years in production
7+Years in production
Web projects shipped
200+Web projects shipped
Production systems
10+Production systems
Req/s, zero deadlocks
15KReq/s, zero deadlocks
Market regions
5Market regions
Featured systems

The three that were hardest to get right.

Each of these had one problem at its centre that no amount of extra code would solve; only a different architecture would.

LexerDial: Multi-Tenant Business Phone System
01Multi-Tenant SaaS / VoIP

LexerDial: Multi-Tenant Business Phone System

Business phone systems are sold as closed platforms: a tenant cannot bring their own carrier account, routing rules are configured through someone else's UI, and call data is trapped. Building an alternative means owning both the real-time telephony leg and the multi-tenant boundaries around it.

WebRTC → PSTN
Call Path
BYO carrier
Tenancy Model
TurborepoHonoNext.js 16React 19Drizzle ORMPostgreSQL
Read the case study
LexerSend: Multi-Tenant Cold Email Infrastructure
02Multi-Tenant SaaS / Infrastructure

LexerSend: Multi-Tenant Cold Email Infrastructure

Cold outbound on a conventional ESP fails on its own terms: the provider suspends the account for the exact behavior the tool exists to perform. Sending through real mailboxes avoids that, but you inherit everything the ESP was handling, send caps, rotation, warmup, bounce processing, reply detection, and deliverability monitoring.

4
Services
286K
Private Relay CIDRs
Next.jsSupabaseBullMQRedisNodemailerIMAP
Read the case study
Ebidzy: Real-Time Reverse Auction Platform
03Custom Web & Mobile App

Ebidzy: Real-Time Reverse Auction Platform

Resolving severe network clock drift in client-side countdowns and preventing race conditions and double-selling when thousands of users simultaneously trigger Buy Now clicks.

<5ms
Distributed Lock Time
15K req/s
Concurrency Throughput
NestJSNext.jsReact NativeRedisPostgreSQLWebSockets
Read the case study
Selected work

Everything else worth showing.

Production systems, commerce platforms, NGO infrastructure, and custom CMS builds, filterable by what you actually came here for.

Workflow automation

The work that runs itself.

n8n and Make.com pipelines built for real operations: lead generation, support triage, order taking, and hiring. Each one replaced a recurring manual job, not a hypothetical one.

What I can build

Sixteen domains, one engineer.

Breadth is only useful if it's real. This is the full range I've actually shipped in, from CMS websites through to multi-tenant AI platforms and payment infrastructure.

  • Corporate & Business Websites
  • NGO, Charity & Donation Platforms
  • Educational & LMS Platforms
  • Real Estate Portals
  • News & Publishing Platforms
  • Booking & Reservation Systems
  • Membership & Subscription Platforms
  • Marketplace Platforms
  • Directory & Listing Websites
  • Crowdfunding Platforms
  • Job Portals & Recruitment
  • Community Platforms & Forums
  • Property Management Systems
  • Healthcare & Clinic Websites
  • Restaurant & Hotel Platforms
  • Travel & Tourism Websites
  • Multi-Language Websites
  • High-Performance SEO Websites
  • Headless Websites
  • Next.js Development Services
How I work

Six positions I've earned, not adopted.

Every one of these came from a system that broke, or nearly did. They are how I make decisions before there is enough information to be certain.

01

Architecture first, always

I design the data model, the failure modes, and the boundaries before the first component. Most production incidents are architecture decisions arriving late.

02

Real-time is a state problem

WebSockets are the easy part. The hard part is deciding what is authoritative, where it lives, and how clients reconcile when they disagree with the server.

03

Money code gets paranoid treatment

Idempotency keys, distributed locks, row-level locks, gateway failover. In payments the correct number of double-charges is zero, and getting there is design, not testing.

04

AI needs deterministic edges

Normalize inputs before the model and validate outputs after it. A model in the middle of a pipeline is fine; a model as the pipeline is a liability.

05

Automate what recurs

If a person does it more than weekly and it has a clear trigger, it belongs in a workflow. Every automation I ship replaced a job someone was actually doing.

06

Ship it, then harden it

Security work follows a real deployment, not a hypothetical one: PHP upgrades, HSTS, TLS, WAF rules, verified by a before-and-after scan rather than a checklist.

Experience

Seven years, compounding.

From sole developer, to leading a 20-person production department, to running delivery across several agencies at once. Each step was a wider blast radius for the same instinct: build the system, not the feature.

  1. Jun 2024 to PresentCurrent

    Technical Project Manager & Systems Architect

    Multiple agencies · own studio · direct clients · Remote, worldwide

    • Run technical delivery across several agencies and a book of direct clients: from requirements gathering through system architecture to deployment, for teams across four continents.
    • Architected scalable systems for 6-figure USD/month eCommerce stores and international NGOs operating in multiple countries.
    • Oversaw 100+ Shopify and WordPress deployments, running 25–30 live production platforms simultaneously.
    • Directed a security hardening engagement covering PHP upgrades, clickjacking protection, HSTS/TLS fixes, XML-RPC lockdown, and Cloudflare WAF rules. Twelve findings resolved, verified by before/after Nessus scans.
  2. May 2023 to Jun 2024

    Production Head & Lead Architect

    Full-service digital agency · Karachi, Pakistan

    • Scaled a production department from zero to 15–20 people across web, software, graphics, and marketing.
    • Directed delivery of 60+ web projects, including ~10 custom full-stack applications, as primary technical decision-maker.
    • Architected a real-time remote notarization platform using WebSockets and live PDF manipulation for identity verification and digital signing on video calls.
    • Engineered a secure marketplace platform with multi-layer verification and automated legal agreement generation.
  3. Jan 2022 to May 2023

    Full Stack Developer

    Creative & media agency · Karachi, Pakistan

    • Built a custom WordPress infrastructure from scratch (custom theme, no page builder) for a major hospitality client.
    • Integrated the NiFT payment gateway, a third-party booking calendar API, and the WhatsApp API for dynamic-pricing-driven customer notifications.
  4. Dec 2020 to Nov 2021

    Senior Web Developer

    Animation & creative studio · Pakistan

    • Led the web department for a creative animation agency, managing server infrastructure across multiple sub-brands.
    • Designed and built a custom PHP Employee Management System from scratch covering attendance tracking and performance metrics.
  5. Sep 2020 to Apr 2021

    Web & Software Development Trainer

    Technical training institute · Karachi, Pakistan (Part-time)

    • Taught and mentored 70+ students in web development, computer science fundamentals, and software engineering.
  6. Jun 2019 to Apr 2020

    Web & Software Developer

    Software house · Pakistan

    • Sole developer managing full project lifecycles from database design to client delivery.
    • Built a custom PHP commerce application for inventory and order management in the clothing/tailoring industry.
  7. Expected 2028

    BSc Computer Science

    SZABIST, Islamabad

About

An engineer who thinks like an operator.

Hasnain Ahmed Khan
Age 10
Started coding
7 Years
Professional
15–20
Team led
BSCS + AI
Current focus

I started writing code at ten and never really stopped. What changed over seven years was the altitude: from building the feature, to building the service, to designing the system the whole business runs through.

Today I run technical delivery across several agencies at once, alongside my own studio and direct clients: architecture, build, and the people doing the work, for teams across four continents. Before that I grew a production department from zero to twenty and shipped sixty-plus projects as the primary technical decision-maker.

The thread through all of it: I like the problems where the obvious solution doesn't work. Clock drift across thousands of clients. Double-charging on a flaky connection. Spam-foldering you can't measure. Those are the ones worth doing properly.

Architecture before code

The hardest problems I have shipped were never solved by writing more code. They were solved by changing where state lives, or when a decision gets made.

Own the whole delivery

Requirements, architecture, build, hardening, deployment, and the client conversation. I have run all six on the same project, which is why the handoffs between them do not break.

Build for the region you ship to

Gift Aid, local payment rails, multi-currency checkout, data residency law. Wherever a build lands, local constraints are architecture, not configuration.

Structure over motivation

Gym, study, and delivery all run on the same principle: a system you can follow on a bad day beats intensity you can only sustain on a good one.

Technical stack

Everything I've shipped production on.

Not a list of things I've read about. Every item here has been through a deploy, an incident, or a client deadline.

01

Languages

TypeScript end to end on anything new; PHP and the rest where existing systems and clients already live.

  • TypeScript
  • JavaScript
  • PHP
  • Python
  • SQL
  • Java
  • C#
  • C++
  • Swift
  • Bash
  • Liquid
  • HTML5 / CSS3
02

Frontend

React and Next.js App Router with a headless component layer, accessible primitives, no page builders, no component-library lock-in.

  • React 19
  • Next.js 14/15/16
  • Tailwind CSS v4
  • Radix UI
  • shadcn/ui
  • React Native / Expo
  • NativeWind
  • TanStack Query
  • React Hook Form
  • Zod
  • Motion
  • GSAP
  • Three.js / React Three Fiber
  • D3.js
  • Recharts
  • Embla Carousel
03

Backend & APIs

Node services split by responsibility: HTTP, workers, and pollers as separate processes so a deploy never interrupts in-flight work.

  • Node.js
  • NestJS
  • Hono
  • Express
  • REST API design
  • GraphQL
  • WebSockets
  • Server-Sent Events
  • WebRTC
  • Webhook architecture
  • JWT & session auth
  • RBAC
  • Microservices
  • Turborepo
  • pnpm workspaces
04

Data & Persistence

Postgres as the system of record, Redis for anything hot, and hand-tuned locking where correctness beats convenience.

  • PostgreSQL
  • Redis
  • MySQL / MariaDB
  • MongoDB
  • SQLite / op-sqlite
  • Supabase
  • Firebase / Firestore
  • Prisma
  • Drizzle ORM
  • Database migrations
  • Row Level Security
  • Query optimization
05

AI & LLM Engineering

Models sit inside pipelines with deterministic edges, normalized input before, validated output after, and tiering so cost tracks the work.

  • Anthropic Claude API
  • OpenAI API
  • Google Gemini API
  • RAG architecture
  • Milvus
  • Qdrant
  • Vector embeddings & semantic search
  • LLaMA 3
  • QLoRA fine-tuning
  • Prompt chaining & model tiering
  • OCR pipelines
  • Computer vision
  • Playwright scraping
  • Claude Code / Cursor
06

Queues, Jobs & Real-Time

Anything measured in minutes goes on a queue, and anything on a queue gets a progress channel back to the user.

  • BullMQ
  • Redis pub/sub
  • Background workers
  • Cron & scheduled tasks
  • Event-driven architecture
  • Distributed locking
  • Idempotency design
  • Rate limiting & jitter
  • Clock synchronization
07

Payments & Fintech

Money code gets paranoid treatment, idempotent by construction, multi-gateway failover, and reconciliation you can audit.

  • Stripe
  • Stripe Elements
  • Stripe webhooks
  • PayPal
  • 2Checkout
  • NiFT
  • Apple Pay / Google Pay
  • Multi-currency design
  • Subscription billing
  • Gateway failover
  • PCI-compliant flows
  • HMRC Gift Aid
08

Email & Deliverability

Sending through real mailboxes means owning warmup, rotation, bounce handling, and the difference between a measured metric and an inferred one.

  • SMTP / Nodemailer
  • IMAP polling
  • Gmail OAuth2
  • SPF / DKIM / DMARC
  • Mailbox warmup automation
  • Weighted mailbox rotation
  • DNSBL monitoring
  • Open/click tracking
  • Bot & prefetch detection
  • Transactional email
09

Commerce & CMS

Custom themes and plugins written by hand, no page builders on anything that has to perform or be maintained.

  • WordPress
  • Custom themes (no builder)
  • Custom plugin development
  • WooCommerce
  • ACF
  • Gravity Forms
  • Elementor Pro
  • Shopify
  • Shopify Liquid & CLI
  • Shopify Admin API
  • Headless CMS
  • Custom admin panels
10

DevOps & Cloud

I own the box, not just the repo, provisioning, reverse proxies, TLS, DNS, and the deploy pipeline in front of them.

  • Docker & Compose
  • Nginx
  • Caddy
  • Apache
  • PM2
  • Debian / Ubuntu administration
  • Windows Server
  • Google Cloud Compute Engine
  • AWS
  • Cloudflare
  • Cloudflare R2 / S3 storage
  • CI/CD pipelines
  • SFTP deploy automation
  • SSL/TLS configuration
  • DNS management
11

Security & Compliance

Hardening work follows a real deployment and is verified by a before/after scan, not a checklist.

  • Nessus remediation
  • Cloudflare WAF rules
  • HSTS & TLS hardening
  • Clickjacking / X-Frame-Options
  • XML-RPC lockdown
  • AES-256-GCM encryption
  • Secrets management
  • Multi-tenant isolation
  • TOTP 2FA
  • OAuth / SSO
  • ISA audit compliance
  • Data residency architecture
12

Automation & Integration

If a person does it more than weekly and it has a clear trigger, it belongs in a workflow.

  • n8n
  • Make.com
  • WhatsApp Business API
  • Chatwoot
  • Call Control / VoIP APIs
  • Apollo API
  • Google Places API
  • Google Sheets API
  • Third-party API integration
  • Data sync pipelines
13

Observability & Analytics

Wired in before launch, not after the first incident, an async failure with no trace is one you will never reproduce.

  • Sentry
  • PostHog
  • Google Analytics 4
  • Google Tag Manager
  • Cross-domain attribution
  • Structured logging
  • Uptime & health monitoring
  • Core Web Vitals
  • Technical SEO
14

Tooling & Practice

The unglamorous layer that makes the rest repeatable.

  • Git / GitHub
  • Figma to production
  • Postman
  • VS Code
  • Vitest / Jest
  • Playwright E2E
  • Architecture documentation
  • Code review
  • Technical project management
How we'd work together

Three ways to engage, scoped in milestones.

No single big commitment. Every engagement is quoted against a written technical plan, and if it isn't working after the first milestone, you stop and owe nothing further.

4–8 weeks

MVP Sprint

A real product in front of real users: architecture, core build, auth and billing foundations, deployed to your own infrastructure.

3–6 months

Full Build

The complete platform, production-hardened: real-time infrastructure, advanced RBAC, AI features where they earn their place, load-tested.

Monthly retainer

Fractional CTO

Ongoing technical ownership: architecture, code review, vendor decisions, hiring support, hands-on build where it moves fastest.

Contact

Tell me what's breaking.

A bottleneck you keep working around, a platform that buckles under load, or a system you haven't built yet. The more specific you are, the more useful my first reply will be.

Emailinfo@hasnain.io
WhatsApp+1 862 360 2501
Call+92 343 427 6246
LinkedInin/hasnainkh7
Available for new projects

Based in Islamabad on PKT (GMT+5), working with clients worldwide. I typically reply within 24 hours. Mention it if something is urgent.