Free construction cost calculator for Pakistan (2026). Price a 5 marla, 10 marla or 1 kanal house item by item: grey structure, tiles, marble, doors, windows, fittings, ACs and finishing, in PKR, USD,
翻译准备中
生活方式TypeScript · JavaScriptGitHub @MahadMajid80运行状态需重新检查运营者未确认
试用过了吗? 点一下就好,无需登录。
尚未检测到更新。GitHub 发布版本后会显示在这里。
Free construction cost calculator for Pakistan (2026). Price a 5 marla, 10 marla or 1 kanal house item by item: grey structure, tiles, marble, doors, windows, fittings, ACs and finishing, in PKR, USD, GBP, AED and SAR.
翻译准备中
正在加载完整 README。
查看完整 README ↗Next.js 16 + React 19 + Tailwind 4 website that estimates the cost to build a home, apartment building, office or commercial building in Pakistan (PKR), from grey structure to finishing.
The site is a static Next.js export with security headers in vercel.json. Nothing else needs configuring: no environment variables, database or API keys.
git init && git add . && git commit -m "Plot.pk website"
git branch -M main
git remote add origin https://github.com/<you>/plotpk.git
git push -u origin main
vercel.json (framework Next.js, npm ci, npm run build, Node 20.9 or newer).plot.pk (and www.plot.pk redirecting to it).https://plot.pk, change SITE.url in src/lib/site.ts and redeploy. Canonical links, the sitemap and share cards all use it.https://<domain>/sitemap.xml in Google Search Console and Bing Webmaster Tools.Optional CLI route instead of GitHub: npm i -g vercel && vercel --prod from the project folder.
Needs Node 20.9 or newer (.nvmrc pins 22).
npm ci
npm run dev # http://localhost:3000
npm run build # static site in ./out (also works on Netlify or cPanel public_html)
npm start # serve ./out locally after a build
| File | What it holds |
|---|---|
src/lib/rates.ts | Every rate in one file: item choices (specs) with Basic/Standard/Premium/Luxury defaults, optional items, city factors, room suggestions. Update rates here. |
src/lib/calculate.ts | The cost engine (covered area + rooms → quantities → 100+ line items → fees → payment plan, plus the quality comparison). |
src/lib/share.ts | Saves an estimate in the URL so it can be shared. |
src/lib/site.ts | Site name, URL, "rates last reviewed" date, currency rates for overseas visitors (FX) and the pageMeta helper for titles, canonicals and share cards. Update ratesUpdated and FX together each month. |
src/lib/seo.ts, src/lib/sizes.ts | Plot sizes and cities behind the 90 landing pages, plus structured data (FAQ, breadcrumbs, article). |
src/components/Calculator.tsx | The 15-step dark calculator card (project, rooms, grey structure, flooring & tiles, marble, doors, windows, kitchen, washrooms, electrical & fans, ACs, paint & ceilings, woodwork, appliances, extras/land/fees). |
src/components/ResultPanel.tsx | Live estimate beside the steps. |
src/components/Breakdown.tsx | Summary, quality comparison, quantities, filterable/editable bill of quantities, payment plan. |
src/components/Section.tsx | Light page sections (numbered eyebrow, big headline with blue accent line). |
src/app/ | Pages: home, calculator, house-construction-cost (hub + 90 size/city pages), grey-structure-cost, overseas-pakistanis, rates, how-it-works, about, privacy, plus sitemap, robots and manifest. |
src/components/CostPages.tsx | Layout and copy for the size/city landing pages. |
src/components/OverseasCalc.tsx | Cost in USD, GBP, AED, SAR and 6 more currencies. |
vercel.json, public/_headers, public/.htaccess | Security headers (CSP, HSTS, frame blocking) and caching for Vercel, Netlify/Cloudflare and cPanel. |
scripts/og/ | Re-renders the share image and icons with Playwright. |
Only the homepage animates (framer-motion with a 3.5 s CSS failsafe, Lenis smooth scroll). Inner pages render fully from static HTML.
src/lib/site.ts (SITE.url) if it isn't https://plot.pk./sitemap.xml.ratesUpdated and FX monthly; every page and title picks up the new date.