<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">

  <!-- Homepage — highest priority -->
  <url>
    <loc>https://hassanr.com/</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
    <image:image>
      <image:loc>https://hassanr.com/assets/images/profile.webp</image:loc>
      <image:title>Hassan Raza - Full-Stack and AI Engineer</image:title>
      <image:caption>Hassan Raza, Full-Stack Engineer and AI Specialist based in Pakistan</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://hassanr.com/assets/images/og-image.webp</image:loc>
      <image:title>Hassan Raza Portfolio</image:title>
      <image:caption>Hassan Raza - Building revenue-generating digital products for startups and businesses</image:caption>
    </image:image>
  </url>

  <!-- Blog index -->
  <url>
    <loc>https://hassanr.com/blogs/</loc>
    <lastmod>2026-05-24</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
  </url>

  <!-- Blog posts — add new posts at the TOP of this block (newest first) -->

  <url>
    <loc>https://hassanr.com/blogs/building-multi-step-ai-wizard-nextjs-server-actions.html</loc>
    <lastmod>2026-05-24</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <image:image>
      <image:loc>https://hassanr.com/assets/images/blog/blog-ai-wizard-server-actions.webp</image:loc>
      <image:title>How I Built a Multi-Step AI Wizard With Next.js Server Actions</image:title>
      <image:caption>The 6-step pattern used to build 9 AI tools with Next.js Server Actions and Google Gemini</image:caption>
    </image:image>
  </url>

  <url>
    <loc>https://hassanr.com/blogs/how-to-integrate-ai-into-your-business.html</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <image:image>
      <image:loc>https://hassanr.com/assets/images/blog/blog-ai-business-integration.webp</image:loc>
      <image:title>How to Integrate AI Into Your Business Without Hiring a Full Team</image:title>
      <image:caption>9 AI-powered tools built with Google Gemini replacing a copywriter, designer, and social media manager</image:caption>
    </image:image>
  </url>

  <url>
    <loc>https://hassanr.com/blogs/building-profitable-ai-products-cost-optimization.html</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <image:image>
      <image:loc>https://hassanr.com/assets/images/blog/blog-profitable-ai-products.webp</image:loc>
      <image:title>How to Build Profitable AI Products — From $200 API Bills to $8 Unit Economics</image:title>
      <image:caption>Real strategies to control OpenAI costs at scale — from $200 API bills to $8 per customer in production</image:caption>
    </image:image>
  </url>

  <url>
    <loc>https://hassanr.com/blogs/building-crash-safe-long-running-ai-jobs.html</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <image:image>
      <image:loc>https://hassanr.com/assets/images/blog/blog-crash-safe-ai-jobs.webp</image:loc>
      <image:title>How to Build Crash-Safe Long-Running AI Jobs — Lessons from Generating 1,720-Page PDFs</image:title>
      <image:caption>Production patterns for AI jobs that run for hours — idempotent task design, crash recovery, and batching strategies</image:caption>
    </image:image>
  </url>

  <url>
    <loc>https://hassanr.com/blogs/production-ready-llm-apps-batch-processing-async-scaling.html</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <image:image>
      <image:loc>https://hassanr.com/assets/images/blog/blog-llm-batch-processing.webp</image:loc>
      <image:title>Production-Ready LLM Apps: Batch Processing, Async Patterns &amp; Scaling</image:title>
      <image:caption>How Pulse Clarity scales AI PDF generation from 15-second reports to 1,720-page horoscopes using Celery and GPT-4o</image:caption>
    </image:image>
  </url>

</urlset>
