Skip to content
Ubaid_ur_Rehman
Pak Books
Free Digital Library · Built for 360 Muslim Experts

Pak Books

Free Digital Library for Pakistani Students

A free, ad-free, sign-up-free digital library of non-copyrighted Pakistani educational resources — textbooks, notes, past papers, and lectures — for every student, everywhere.

VISION

Knowledge Without Barriers

Millions of Pakistani students lack access to quality educational materials. Textbooks are expensive, past papers are scattered, and digital access is limited. Pak Books exists to change that.

A free, ad-free, sign-up-free digital library aggregating openly-licensed and public-domain educational materials — textbooks, past papers, vocational curricula, and classical literature — served on zero-cost infrastructure so every student in Pakistan can learn without barriers.

PLATFORM

What It Does

Four pillars. One mission.

Free Digital Library

  • Federal & provincial textbooks (Punjab, Sindh, KPK, Balochistan, AJK, GB)
  • Cambridge O/A Level past papers and resources
  • Test prep: MDCAT, ECAT, NTS, CSS
  • Vocational: NAVTTC, DigiSkills, SMIT free IT courses
  • University lecture notes & classical Urdu literature

Telegram Bot (@pak_books_bot)

  • In-chat search, browse, download without leaving Telegram
  • Inline mode: @pak_books_bot <query> in any chat
  • /search, /latest, /stats, /subjects, /book <id>
  • GDPR-compliant /delete-my-data with 2-tap confirmation
  • Fuzzy search (Levenshtein) across title/author/subject

Student-First Features

  • In-browser PDF reader (pdfjs-dist, lazy-loaded)
  • Smart catalog: filter by subject, level, class, board, language
  • Personal bookshelf (localStorage, no account needed)
  • Surprise me button, tip of the day, recently viewed
  • Bilingual UI (English/Urdu) with native RTL support

Security & Quality

  • 7-step auto-validation on every public submission
  • Turnstile captcha + honeypot fallback
  • Admin review queue with cover/book reports
  • VDP program with Hall of Fame at /hall-of-fame
  • Token-based admin auth, audit logging, rate limiting
TECH STACK

Zero-Cost Infrastructure

Production-grade, zero hosting bill

Frontend

Next.js 16 (App Router) + React 19 + TypeScript 5 (strict)

Styling

Tailwind CSS 4 + shadcn/ui (New York) + Radix UI

State

Zustand (client) + TanStack Query 5 (server)

Hosting

Cloudflare Pages (via @opennextjs/cloudflare adapter)

Database

Cloudflare D1 (SQLite at edge, 28 models) + Workers KV

Storage

Internet Archive S3 (permanent) + Cloudflare R2 (temp)

Automation

Kaggle Notebooks (3 notebooks: ia-mirror, daily-maintenance, site-server)

Bot

Custom Telegram Bot API implementation (no telegraf dep)

Build

Bun + esbuild + wrangler (single-file Worker ~1.6 MiB gzip)

SECURITY

Built with Security First

VDP at /vdp · Hall of Fame at /hall-of-fame

Pak Books is built by a security researcher with EC-Council Hall of Fame recognition. Student data security is the foundation, not an afterthought.

Token-based admin auth — no passwords stored, SHA-256 + HMAC pepper
HMAC-signed session cookies, brute-force lockout after 5 failures
D1 edge database — SOC 2 Type II + ISO 27001 certified
Parameterized SQL everywhere — no string concatenation
HTTPS-only + security headers (HSTS, CSP, X-Frame-Options, etc.)
Zero third-party analytics, no tracking pixels, no behavioral profiling
Admin audit log — every write action recorded in AdminAction table
Rate limiting on all write endpoints (sliding window + KV)
Turnstile captcha on submission form (honeypot fallback)
VDP at /vdp with severity matrix, response SLAs, PGP-encrypted reporting

VDP: pak-books.pages.dev/vdp · Hall of Fame: pak-books.pages.dev/hall-of-fame

BUILT FOR

360 Muslim Experts

Pak Books is a project of 360 Muslim Experts — a global network of Muslim experts committed to positive change through Islam, education, and research.

Built for Pakistan 🇵🇰 by 360 Muslim Experts