Skip to content

About

Interactive dubai villa bylaw compliance checker and shareable content-card generator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Dubai Bylaws Decoded

A single-file, static web app with two modes:

  1. Content Cards — five ready-to-post "Do / Don't" diagram cards (front setback, side setback, plot coverage, wall height, parking), each with a "Download PNG" button sized for Instagram/LinkedIn posting.
  2. Compliance Checker — enter your own plot dimensions and proposed design figures; every diagram updates live against a rule-band engine.

The verification gate

Each category in the checker carries a verified flag (default false) and a source field (default null). Until a category is verified:

  • Its diagram still renders live from your inputs, for preview.
  • No COMPLIANT / VIOLATION verdict is shown — instead it's marked PENDING in amber, both on the stamp and in the sidebar.
  • It's excluded from the "X/Y verified checks passed" summary count.

To unlock a category, open index.html, find that category's entry in the CATS array, and set:

verified: true,
source: 'Dubai Building Code 2021 Edition, Part K, Table K.3 (confirm article/table no.)',

only once you've confirmed the figures in getRequirements() against the current Dubai Building Code and the relevant authority (Dubai Municipality, DDA, or Trakhees) for that rule.

The Content Cards tab is separate from this gate — it's illustrative content for posting, clearly labeled "ILLUSTRATIVE — VERIFY BEFORE USE" on every card, regardless of the checker's verification state.

Running locally

No build step — it's a single HTML file.

open index.html          # macOS
# or just double-click index.html in any browser

Deploying

Vercel

npm i -g vercel   # if not already installed
vercel deploy

GitHub Pages

  1. Push this repo to GitHub.
  2. Repo Settings → Pages → Source: main branch, / (root).
  3. Your app will be live at https://<username>.github.io/<repo-name>/.

Roadmap

  • Verify and unlock each category (set verified: true + source)
  • Add authority selector (Dubai Municipality / DDA / Trakhees / Nakheel)
  • Add more categories: fire separation, basement rules, roof structures
  • Export a shareable PDF summary per project (checker mode)
  • Save/load project inputs

License

MIT — see LICENSE.

About

Interactive dubai villa bylaw compliance checker and shareable content-card generator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages