How Nigraan is built and run, for developers and technical partners.
Architecture overview — How Nigraan's parts fit together, from the two apps and the shared Supabase backend to the scheduled data jobs and hosting.
Frontend — The website's React and TypeScript code, covering pages and routing, state, maps, charts, PDFs, English and Urdu, and how it is organised.
Backend — Nigraan's Supabase backend, covering the PostgreSQL tables, the review gate, row-level security, database functions, accounts and migrations.
JavaScript stack and tooling — The languages, build tools, package scripts, linting, tests and Node.js scripts behind Nigraan, and the commands to work on it.
Data pipeline — How official NDMA and PDMA figures, river levels and OpenStreetMap facilities reach Nigraan automatically, and how the jobs handle failure.
Hosting, deployment and SEO — How the website is built, deployed to Vercel and served, and what makes every public page readable by search engines.
Roles and security — The six roles, what each may see and do, where those rules are enforced, and how keys and personal data are protected.
Testing and quality — Nigraan's unit tests, the browser test of key flows, the load and pressure tests, page-speed checks and the translation audit.