Ausaf Khan / Lahore, UTC+5

I build the systems that collect, process and deliver data, and the AI features on top of them.

I am a software engineer at Watch My Competitor, a UK competitive-intelligence SaaS. I joined in November 2022 writing scrapers and grew into owning how the company's data is collected, processed and delivered: orchestration, distributed crawl workers and an event-driven ETL framework. Over the last year I have moved into AI, with a natural-language-to-SQL endpoint and a question-answering service over uploaded CSVs.

I am open to AI engineer and backend engineer roles, and I take on freelance projects. Book a 30-minute call.

5B+ rows
in the BigQuery warehouse my pipelines feed. The company's total, not mine alone.
~52x
more rows after I built distributed crawl workers: about 50M a year to about 50M a week.
233 rows
from one bot-protected retail store in about 4.5 minutes, every row priced, on self-hosted browsers.

Selected work

Watch My Competitor
May 2025 to now

Distributed crawl workers on Pub/Sub

Problem
Pub/Sub delivers each message at least once, crawls can run for hours, and many workers run at the same time. Done naively, that means duplicate batches, stuck messages and retry loops that never end.
What I did
Built the service. The backend takes a Postgres advisory lock per job and removes duplicate batches by content hash before anything is crawled. Workers pull up to 50 messages at a time and extend their leases for long scrapes. A batch gets 3 delivery attempts, then is marked Failed, and a harvest with zero rows counts as a failure, not a success.
Result
Collection on the projects moved onto it went from about 50M rows a year with the old scrapers to about 50M rows a week, roughly 52x. Every crawl is visible as a job with batches that are clearly Completed or Failed. I have written about 70% of its commits.

Python, GCP Pub/Sub, Cloud Storage, Kubernetes

Oct 2024 to now

Orchestration backend and QA dashboard

Problem
By late 2024 the company had hundreds of spiders and no single place that knew what had run, what had failed and what had reached the client.
What I did
Created a FastAPI backend with datasets, websites, jobs, batches and pipelines as first-class models, and a React dashboard the data team uses to check runs.
Result
It became the place that answers those questions. I have written about 72% of the backend's commits and about 65% of the dashboard's.

FastAPI, PostgreSQL, React

Nov 2024 to now

Event-driven ETL framework

Problem
Every client dataset needed its scraped files merged, cleaned, compared with the previous run, validated and loaded into BigQuery, and each of those steps was its own piece of work.
What I did
Designed a framework of stages driven by Pub/Sub. Consolidation reads with 8 parallel workers, every stage writes its output back to storage so each step can be checked, failures get 3 delivery attempts, and BigQuery loads only append, so a bad config cannot quietly create a stray table.
Result
About 75 datasets run on it, and a new source is added without touching the core. I designed the framework and its stage runner; a teammate has since written more of the per-dataset pipelines than I have.

Python, Pub/Sub, Cloud Storage, BigQuery

2023 to now

Crawlers, and bot-protected retail sites

Problem
Some large retail sites sit behind commercial bot protection. The company was paying a hosted browser API per page, and it needed every store's prices across rosters of thousands of stores.
What I did
Moved this crawling to self-hosted Camoufox, a hardened Firefox build, running through residential proxies, with one warmed session and three candidate IPs per store. The work runs on the crawl workers above, so it scales by adding workers instead of buying more API calls.
Result
One store comes back with 233 rows, every row priced, in about 4.5 minutes. Overall I have built 250+ crawlers across 30+ client projects.

Python, Scrapy, Playwright, Camoufox

Aug 2025 to now

Natural-language-to-SQL endpoint

Problem
The data team wanted to ask plain-English questions over daily product snapshots, without a model ever being able to change or overload the database.
What I did
Wrote every part: the query flow, the Gemini integration, a SQL validator and the security tests. The model's output is never trusted. The validator accepts a single SELECT, checked by parsing, and fails closed on any table it cannot identify. Queries run under a read-only role on a read replica with a 30-second timeout, and results are capped at 1,000 rows.
Result
People query the data without writing SQL, with a chart and short commentary. I hardened it after a pen test, and a dedicated test suite covers the validator and the read-only path.

FastAPI, Gemini, PostgreSQL, sqlparse

Jul 2024 to now

Finance data stack

Problem
Clients compare companies that report in different currencies and on different calendars.
What I did
Created the collector for financials, share prices, SEC filings and FX rates; became the main author of the results API (currency conversion, growth rates, last-twelve-months figures); and started the forecasting service, an ensemble of Prophet, SARIMA and ETS with a 4-quarter horizon.
Result
Three services that work together over Pub/Sub. I have written about 59% of the collector's commits and about 65% of the API's.

Python, FastAPI, PostgreSQL, BigQuery, Prophet

Also: a question-answering service over uploaded CSVs (Aug 2025), the knowledge layer behind the company's voice agent, and contributions to another team's AI chat backend, including moving all of its model calls behind one gateway with a CI check that blocks direct provider clients.

Open source and freelance

Outside the day job
Nov 2026

leadcheck

Finds rows in B2B lead lists where a LinkedIn URL or email belongs to someone else. Most checks are deterministic, including an assignment-problem solve that catches shifted joins; only the ambiguous rows go to a Claude tool loop, and low-confidence verdicts go to a human. On a 43-row labelled set, rules alone pass 81.4% of rows and the full pipeline passes all of them. The README says plainly that the set is small and that a held-out set is still needed.

Python, Pydantic, SciPy, Claude API

2026

semantic-redis-cache

An open-source Python library that answers a repeated question from cache when the new wording means the same thing, so you stop paying for the same LLM call twice. Embeddings are computed locally, the similarity threshold is yours to set, and every result says whether it was a hit.

Python, Redis, sentence-transformers

2025 to 2026

AI-maturity assessment platform

A freelance MVP for a founder. Organisations answer a scored assessment and receive a radar-chart report with tiered recommendations, rendered to PDF.

FastAPI, PostgreSQL on Supabase, React, TypeScript

2026

Self-hosted progress dashboard

Daily snapshots, trend graphs and a review forecast for a language-learning service, with phone notifications from an installable web app. Ships as one container.

FastAPI, React, SQLite, Docker

2024

Carrier registry scraper

Pulls public carrier snapshots from the US federal registry for a range of carrier numbers, from a simple web form, with CSV export.

Scrapy, Flask, pandas

Experience

About four years
Nov 2022 to now

Software Engineer, Watch My Competitor

Remote from Lahore. I started on the spider projects, created about 27 of them, and learned what breaks at scale: retries, proxies, blocked requests, and empty pages that look like successes. From mid-2024 I built the finance data stack, then the harvesting platform around the scrapers, and since August 2025 the AI work above. What I enjoy most is owning a system end to end, from the queue to the dashboard.

Mar 2023

BSc Computer Science, University of Central Punjab

Lahore. I started work a few months before graduating.

Freelance

Alongside the full-time role

I take on web scraping and data pipelines, FastAPI backends, and AI features such as retrieval over your documents, with a test set that measures quality.

  • A fixed price, agreed after a short scoping conversation.
  • If you would rather judge the work first, a small paid first step.
  • Written updates, milestones you can check, and you own the code and the data.

Contact

Lahore, UTC+5