<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Asadullah Hil Galib</title>
    <description>The latest articles on DEV Community by Asadullah Hil Galib (@asadullah_hilgalib_12420).</description>
    <link>https://dev.to/asadullah_hilgalib_12420</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4211489%2Fb88cd335-44e4-43d8-af71-752ab86b5f57.jpg</url>
      <title>DEV Community: Asadullah Hil Galib</title>
      <link>https://dev.to/asadullah_hilgalib_12420</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asadullah_hilgalib_12420"/>
    <language>en</language>
    <item>
      <title>How We Built a Fast, Static Quran &amp; Hadith Website (55,000+ Hadith) with Next.js on Cloudflare Pages</title>
      <dc:creator>Asadullah Hil Galib</dc:creator>
      <pubDate>Thu, 29 Oct 2026 16:15:55 +0000</pubDate>
      <link>https://dev.to/asadullah_hilgalib_12420/how-we-built-a-fast-static-quran-hadith-website-55000-hadith-with-nextjs-on-cloudflare-pages-17pa</link>
      <guid>https://dev.to/asadullah_hilgalib_12420/how-we-built-a-fast-static-quran-hadith-website-55000-hadith-with-nextjs-on-cloudflare-pages-17pa</guid>
      <description>&lt;p&gt;Our team at Edu Reminder builds the &lt;strong&gt;Al Quran&lt;/strong&gt; (★4.6) and &lt;strong&gt;Hisnul Muslim&lt;/strong&gt; (★4.9) Android apps. This year we brought them to the web as &lt;strong&gt;&lt;a href="https://ilmhub.tech/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=launch" rel="noopener noreferrer"&gt;ilmhub&lt;/a&gt;&lt;/strong&gt;: the Quran with 44 translations and classical tafsir, 25 hadith books (55,225 hadith), Hisnul Muslim duas, 47 reciters and prayer times. Free, no ads, no accounts.&lt;/p&gt;

&lt;p&gt;This post is about the engineering: how to serve a &lt;em&gt;lot&lt;/em&gt; of religious text fast, cheaply, and in a way Google can actually index.&lt;/p&gt;

&lt;h2&gt;
  
  
  The constraints
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fully static.&lt;/strong&gt; A static export of Next.js deployed to Cloudflare Pages. No server to scale or pay for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare's per-deployment file limit.&lt;/strong&gt; Every pre-rendered URL costs roughly 8 files (HTML plus RSC prefetch segments). 114 surahs x 6,236 ayahs x 55,225 hadith as individual pages would blow straight through it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SEO matters.&lt;/strong&gt; People search for things like "Surah Ya-Sin with Bangla translation" or "Sahih Bukhari online". Those pages must contain the real text in the HTML.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Decision 1: pre-render only canonical pages
&lt;/h2&gt;

&lt;p&gt;We pre-render the pages that deserve to rank — 114 surahs, 45 dua categories, 47 reciters, and hadith books and chapters — and nothing else. That keeps the deployment around 1,900 files for the Quran side.&lt;/p&gt;

&lt;p&gt;The 604 mushaf pages (&lt;code&gt;/page/:n&lt;/code&gt;) and 30 juz (&lt;code&gt;/juz/:n&lt;/code&gt;) share &lt;strong&gt;one shell each&lt;/strong&gt;. &lt;code&gt;public/_redirects&lt;/code&gt; rewrites them with status 200 and the reader fetches the content client-side. Those shells are &lt;code&gt;noindex&lt;/code&gt;, so Google sees exactly one URL per piece of content.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhsbhetjy0amzi9k95eca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhsbhetjy0amzi9k95eca.png" alt="Surah Ya-Sin with Bangla translation on ilmhub.tech" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 2: the main text is in the static HTML
&lt;/h2&gt;

&lt;p&gt;The verse, translation and hadith JSON lives on Cloudflare R2 (&lt;code&gt;assets.ilmhub.tech&lt;/code&gt;) so it costs nothing in egress and never bloats the deployment. But that CDN deliberately blocks crawlers, so anything fetched in the browser is invisible to Google.&lt;/p&gt;

&lt;p&gt;The fix: render the main text &lt;strong&gt;at build time&lt;/strong&gt; from the local &lt;code&gt;data/&lt;/code&gt; folder and pass it to the client reader as an initial prop. The browser only fetches extras (other translations, tafsir, audio timings). Search engines get the full surah or hadith chapter in the HTML, users get an instant page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 3: index books and chapters, not single hadith
&lt;/h2&gt;

&lt;p&gt;55,225 hadith pages would cost ~440,000 files. Instead, each &lt;strong&gt;book&lt;/strong&gt; and &lt;strong&gt;chapter&lt;/strong&gt; is a pre-rendered, indexed page (e.g. &lt;a href="https://ilmhub.tech/hadith/bukhari" rel="noopener noreferrer"&gt;Sahih Bukhari&lt;/a&gt;), and a single hadith is served from a shared shell plus the CDN. Same for duas: 45 categories are indexed, not each dua.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo0oww0p8aipb4hrw4tj3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo0oww0p8aipb4hrw4tj3.png" alt="Hadith library of Sahih Bukhari and 25 books on ilmhub.tech" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 4: an app shell that never remounts
&lt;/h2&gt;

&lt;p&gt;The header, section nav and mobile tab bar are rendered once by the root layout. Switching from Quran to Audio to Prayer Times is a client-side swap with no reload — and the audio player keeps playing while you browse. 47 reciters, verse-by-verse highlighting, a queue and repeat for memorisation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 5: SEO rules written down and tested
&lt;/h2&gt;

&lt;p&gt;Every indexable page must have: &lt;code&gt;generateStaticParams&lt;/code&gt;, a unique title and description, a canonical URL, exactly one &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;, breadcrumb JSON-LD, Open Graph through one helper (so the share image is never dropped), and an entry in &lt;code&gt;sitemap.ts&lt;/code&gt;. Aliases like &lt;code&gt;/quran/2&lt;/code&gt; are 301 redirects, never duplicate pages.&lt;/p&gt;

&lt;p&gt;A Playwright suite checks all of it against the production build in Chromium, Firefox, WebKit, a Pixel 7 and an iPhone 14 — including RTL Urdu and what the HTML looks like to a search engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;~940 URLs in the sitemap, all discovered by Google on the first read.&lt;/li&gt;
&lt;li&gt;No servers, no database, near-zero hosting cost.&lt;/li&gt;
&lt;li&gt;Pages render instantly because the content is already in the HTML.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Quran: &lt;a href="https://ilmhub.tech/quran/ya-sin" rel="noopener noreferrer"&gt;Surah Ya-Sin&lt;/a&gt;, &lt;a href="https://ilmhub.tech/quran/al-kahf" rel="noopener noreferrer"&gt;Surah Al-Kahf&lt;/a&gt;, &lt;a href="https://ilmhub.tech/quran/al-mulk" rel="noopener noreferrer"&gt;Surah Al-Mulk&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Hadith: &lt;a href="https://ilmhub.tech/hadith" rel="noopener noreferrer"&gt;Hadith library&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Duas: &lt;a href="https://ilmhub.tech/dua/5" rel="noopener noreferrer"&gt;Morning &amp;amp; evening adhkar&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ilmhub.tech/prayer-times" rel="noopener noreferrer"&gt;Prayer times and Qibla&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's built as sadaqah jariyah — free, no ads, no sign-up. Feedback on performance or SEO is very welcome in the comments!&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>webdev</category>
      <category>seo</category>
      <category>showdev</category>
    </item>
    <item>
      <title>QuickTube: a free, open-source way to save videos and music on Android</title>
      <dc:creator>Asadullah Hil Galib</dc:creator>
      <pubDate>Tue, 27 Oct 2026 17:34:01 +0000</pubDate>
      <link>https://dev.to/asadullah_hilgalib_12420/quicktube-a-free-open-source-way-to-save-videos-and-music-on-android-54fh</link>
      <guid>https://dev.to/asadullah_hilgalib_12420/quicktube-a-free-open-source-way-to-save-videos-and-music-on-android-54fh</guid>
      <description>&lt;p&gt;Most video downloader apps on Android share the same problems: full-screen ads, sign-ins you don't need, and APKs from sites you have no reason to trust. I wanted one app that handles YouTube, other sites and music without any of that, so I built &lt;strong&gt;QuickTube&lt;/strong&gt;. It's free, open source under GPL-3.0, and has no ads, no account and no subscription.&lt;/p&gt;

&lt;h2&gt;
  
  
  What QuickTube does
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Search, paste or share.&lt;/strong&gt; Type a search, paste a link, or share from any app. "Download with QuickTube" sits in every app's share sheet, and the format picker opens right over YouTube, TikTok or Facebook while the download carries on in the background. If you've copied a link, QuickTube spots it and offers to download it straight away.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fafuszervbzxw8vm95t3x.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fafuszervbzxw8vm95t3x.jpg" alt="Home screen with search and copied-link chip" width="800" height="1422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every quality, or just the audio.&lt;/strong&gt; Save MP4 from 144p up to 4K, or audio only as M4A (AAC) or Opus. Video-only streams are merged with their audio on the phone, without re-encoding.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F50jcr1krynhcehlqyfhz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F50jcr1krynhcehlqyfhz.jpg" alt="Download sheet with video and audio formats" width="800" height="1422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A browser that finds the video.&lt;/strong&gt; Open any site in the built-in browser. When a page has a video, a Download bar appears with every quality the page offers, including HLS streams.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbd3n6cfov4dovjk93uic.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbd3n6cfov4dovjk93uic.jpg" alt="Built-in browser detecting the video on a page" width="800" height="1422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch and listen first.&lt;/strong&gt; An inline HD player with comments and "Up next", background play, a mini player and lock-screen controls. The music tab has trending songs and playlists.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Playlists and channels.&lt;/strong&gt; Download a whole playlist or channel, or select just the videos you want, in one quality for the batch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The rest:&lt;/strong&gt; a download queue with pause, resume and retry, Wi-Fi-only rules and speed limits, a PIN-locked vault, a 30-day recycle bin, and light, dark or pure black themes with Material You colours on Android 12+.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to install it safely
&lt;/h2&gt;

&lt;p&gt;QuickTube isn't on Google Play, because Play doesn't allow apps that download YouTube videos. It's published as a signed APK on its official GitHub releases instead.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the download page on your phone: &lt;a href="https://edureminder.com/quicktube" rel="noopener noreferrer"&gt;https://edureminder.com/quicktube&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Download the APK and open it. Allow "Install unknown apps" for your browser when Android asks. That warning appears for any app installed from outside Play.&lt;/li&gt;
&lt;li&gt;Optional: compare the file's SHA-256 with the one shown on the download page.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every release is signed with the same key, so updates install over the previous version. After the first install, QuickTube tells you when a new version is out, and one tap downloads it, checks the SHA-256 and signing key, and installs it. It runs on Android 7.0 and newer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy
&lt;/h2&gt;

&lt;p&gt;There's no sign-in and no QuickTube server. Your downloads, history and vault stay on your phone. Official builds send crash reports and anonymous usage counts through Firebase, and you can turn both off in Settings → Privacy. QuickTube never sends the links you open, video titles, searches or file names.&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;QuickTube is written in Kotlin with Jetpack Compose. A few of the harder problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Finding videos in any page.&lt;/strong&gt; The built-in WebView reads the page's own player data, so the Download bar appears even before you press play. It works with plain MP4 players, HLS (&lt;code&gt;.m3u8&lt;/code&gt;, including AES-128 encrypted streams) behind &lt;code&gt;blob:&lt;/code&gt; players, iframe-embedded players and shadow-DOM players.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Merging on the phone.&lt;/strong&gt; High-quality YouTube streams come as separate video and audio. QuickTube remuxes them into one MP4 on the device without re-encoding, so it's fast and lossless. HLS is converted to MP4 the same way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shipping outside Play.&lt;/strong&gt; Signed release APKs, a &lt;code&gt;.sha256&lt;/code&gt; for every file, and an in-app updater that refuses an update if the checksum or signing key doesn't match.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full source is on GitHub, and issues and pull requests are welcome.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it responsibly
&lt;/h2&gt;

&lt;p&gt;Only download content you own or have permission to save, and respect each site's terms of service. QuickTube doesn't bypass DRM and isn't affiliated with YouTube, Google or any other site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Download: &lt;a href="https://edureminder.com/quicktube" rel="noopener noreferrer"&gt;https://edureminder.com/quicktube&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source code: &lt;a href="https://github.com/devgalib/QuickTube" rel="noopener noreferrer"&gt;https://github.com/devgalib/QuickTube&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>android</category>
      <category>opensource</category>
      <category>kotlin</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
