🇸🇦

Open Source Community

المملكة العربية السعودية Building Codes

Building codes are public law. Help us make المملكة العربية السعودية construction regulations open, machine-readable, and accessible to everyone.

Data Completeness

Current state of المملكة العربية السعودية building data in GABARITO

Building
Overall Completeness--

0

Compliance Rules

0

Reference Cities

0

Building Params

0

Zoning Zones

How to Contribute

Help improve building code data for المملكة العربية السعودية in 5 simple steps.

1

Fork the Repository

Go to https://github.com/gabarito-io/building-codes-sa and click "Fork" to create your own copy of the repository.

2

Clone and Create a Branch

Clone your fork locally with "git clone" and create a feature branch: git checkout -b add-city-data or fix-compliance-rule.

3

Edit or Add JSON Data

Building codes and zoning rules are stored as JSON files. Edit existing data to fix errors, or add new city data following the existing schema.

4

Validate Your Changes

Run the validation scripts to ensure your data conforms to the schema. Each compliance rule needs a rule_id, description, field, operator, value, severity, and code_reference.

5

Submit a Pull Request

Push your branch and open a Pull Request against the main branch. Include the source of your data (law number, gazette reference, official URL) for provenance tracking.

Contributing Guidelines

Do

  • Cite official sources (law numbers, gazette references)
  • Use the existing JSON schema for consistency
  • Include provenance (source URL, access date)
  • Add tests for new compliance rules
  • Keep data factual -- no fabrication
  • Use descriptive commit messages

Don't

  • Fabricate or guess building code values
  • Copy proprietary data without permission
  • Submit data without source references
  • Modify the schema without discussion
  • Include personally identifiable information
  • Submit copyrighted standard text verbatim

Building Codes Are Public Law

Building codes and construction regulations are enacted by governments for public safety. They are public law -- not proprietary information. Every architect, engineer, contractor, and citizen has a right to know what the building rules are in their jurisdiction.

Yet in most countries, building codes are fragmented across thousands of municipal regulations, locked in PDF documents, and difficult to access programmatically. This creates information asymmetry that hurts small firms, increases compliance costs, and ultimately impacts building safety.

GABARITO believes compliance data should be open, machine-readable, and free. By structuring building codes as JSON and making them available via a free API, we enable developers to build compliance tools, researchers to study regulatory patterns, and professionals to check requirements instantly.

Join us in making building regulations accessible to everyone. Every contribution helps make construction safer and more efficient.