It's plain static HTML that works offline. All the content lives in one file, assets/data.js.
Edit BRAND at the top of data.js. The name and email update on every page.
Add an entry to SOURCES, for example myId: { t: "Title", u: "https://…" }. Then write {myId} inside any text to cite it. Numbering and the sources list are generated automatically.
Write [to verify] in any text and it shows as a yellow tag.
Find its object in PLAYERS. Each one has arrays for who, examples, tools, day, moneyIn, moneyOut, pains, gaps, questions and sources. Optional: tier (1 = developers, 2 = brokers, 3 = buyers; shown as payer badges on the map) and members (named companies inside a group, e.g. the three portals, each with what and rel notes per player; rel lines also appear on the linked player pages).
Add { from, to, what, amount, type: "money"|"data" } to FLOWS. It appears on the map, the table and the player pages.
There is no separate research section: the whole site is the knowledge bank. Put each finding where it belongs — a player's examples, tools, pains, gaps or questions; a FLOWS amount; or an opportunity's why / risks. Add its URL to SOURCES and cite it with {id}. Correct an existing line instead of adding a duplicate. Original reports are archived, unlinked, in research/.
Idea pages use renderIdea (fields: one, why, pricing, risks, optional note and next). The AI deal desk uses renderDeepDive, which also reads pitch, whoPays, workflow, evidence, pricingConcept, anchors, fit, risks, metrics and runnersUp. New flows go at the end of FLOWS so map numbers stay stable.
Add an object to PLAYERS or OPPORTUNITIES. Copy any file in players/ or opportunities/, rename it to the new id and change the id in its last script line. For a new player, also add a map position in POS in assets/app.js.
Add an object to COMPANIES (end of data.js): { id, name, url, b, seg, what, who, uae, ai, price, src:[sourceIds], rel:[[type, target, note]] }. b is a player group id (its bucket); type is one of serves, data-from, integrates, competes, part-of, owned-by; target is a group id or another company id. Set bala:true to highlight it. It appears on the landscape page and on its bucket's player page.
MARKET (Abu Dhabi, ADREC) and MARKET_DUBAI (Dubai, v14) share the same core keys: trend, highlights, developers, buyers, finance, leases, conflicts, reports. Dubai adds areas, priceSqft, supply, ratings, regulation, comparison, implications, firstTimeBuyer and a dldOpenData block computed from the DLD open CSV. The pages are abu-dhabi-market.html and dubai-market.html (renderers renderMarketPage and renderMarketDubaiPage in assets/app.js).
Four windows at the end of data.js feed the new pages. SEGMENTS (v16, segments.html): { intro, overview:[[id,title,size,payer,ai,evidence]], segments:[{ id, title, task, emirates, coverage, how:[text], flow, who_pays:[[flow,finding,conf]], figures:[[item,figure,conf]], players:[[companyId,note]], ai:[[step,role,payer,guardrail]], fit, tv:[text] }] }, cite with {sourceId}; add a segment by appending to segments. REPORTS15: { key: { title, task, intro:[blocks], blocks:[blocks] } } where a block is ["h2"|"h3"|"p", text], ["ul"|"ol", [text]] or ["table", [head], [[cells]]]; cite with {sourceId} and write **bold** or `code`. COSTS (worked examples for costs-and-process.html), AREAS (areas:[{ id, name, city, sale_psf, rents, gross_yield, offplan_share, developers, buyers, launches, notes, dld_open_data }]), and DOMAIN (sections for how-it-works, processes:[{ id, title, emirate, steps:[{n, actor, action, system_or_doc, sids:[sourceIds]}], notes }] and glossary:[{ term, def, emirate, cat, sid }]). One term per row, plain English, no figure without a source.
REPORTS17 (developer-checks.html, golden-visa.html, law-register.html): { devchecks|goldenvisa|lawreg: { title, task, intro:[blocks], blocks:[blocks] } } with the same block shapes as REPORTS15; each h2 block becomes a collapsible section and the page lists every source at the bottom. LAW17: { generated, note, entries:[{ id, j (jurisdiction), num, title, auth, date, status, effect, url, conf, notes, src:[sourceIds] }] } feeds the filterable register on law-register.html. To add a page, copy one of those HTML files, change data-page and the render call, add a renderer next to renderDevChecksPage in app.js and link it in the Knowledge menu.
REPORTS19 (tenancy-law.html, succession-and-coownership.html, master-plans.html): { tenancy|succession|masterplans: { title, task, intro:[blocks], blocks:[blocks] } }, same block shapes as REPORTS15 and REPORTS18. The renderers use rp19 in app.js. Area cards from task 42 live in AREAS.areas with extra optional fields: schools, healthcare, commute, service_charge, fit, infrastructure_links (strings or {text, src, conf}), adrec_data / sharjah_data / rak_data / ajman_data and dld_open_data.by_registry_area.
REPORTS20 (reits-and-tokenisation.html, permits-and-property-types.html, and a section of mortgages.html): { reits|permits|mortgage2: { title, task, intro:[blocks], blocks:[blocks] } }, same block shapes as REPORTS15. The renderers use rp20 in app.js; mortgage2 is rendered below the original sections of the mortgages page. Reports' source ids became {sourceId} citations and their "Corrections to KB" sections were applied as notes beside the old text (marked [v20, task NN: ...]).
REPORTS49.agentic (agentic-layer.html): { title, task, intro: [blocks], blocks: [blocks] } with the same block types as REPORTS20 (h2, p, ul, ol, table). Task 49 source ids end in T49.
assets/agents.js holds AGENTS (one object per agent: n, slug, name, group, payer, step, verdict TEST|MERGE, confidence_pct, bundle, merge_into, summary, problem, pain, buyer, competitors, regulation, pricing, mvp, plan, open, sources), AGENT_BUNDLES, AGENT_UNKNOWNS and AGENTS_META. Text cites sources as {source-id}; ids with hyphens (for example hybote-T51) are allowed. Add a source to SOURCES, then cite it. To add an agent, append to AGENTS and copy a file in agents/. Our own prices are always labelled (proposal).
REPORTS18 (other-emirates.html, ownership-costs.html, disputes-and-fraud.html): { emirates|ownership|disputes: { title, task, intro:[blocks], blocks:[blocks] } }, same block shapes as REPORTS15; each h2 block becomes a collapsible section. The renderers use rp18 in app.js; to add a page, copy one of those HTML files, add a renderer next to renderOtherEmiratesPage and link it in the Knowledge menu.
Suggested by the gap audit (task 15); none of these exist yet:
research/claude-27-segment-gaps.md). (v17: tasks 34 to 36 give the start of a compliance view in developer-checks.html and law-register.html, a data-source list for developer verification, and a Golden Visa page; a combined compliance.html and a risks page are still not built.) (v16: the five top segments are built as sections of segments.html from tasks 28 to 32; coverage is partial, the open items are listed per segment on that page, and the runners-up and low-priority segments are still not researched.)