Skip to content
united-nationsPublic

About

results.un.org | UN Results Portal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP

UN Results

  • UN Secretariat: Explore programme-budget results by priority area or beneficiary. Priority areas open one at a time; sticky budget-section headings group subprogramme cards with progressive disclosure. Open official objectives, strategies and full result content in sidebars. The locations map remains available at /locations/.
  • UN System: Explore UN country results frameworks and browse 46 reporting entities by their largest SDG expenditure allocation or by Open UN's System Chart grouping at /system/ (also /un-system/). The directory prototype includes sample impact statements, strategic plan and results framework links, and inactive annual report placeholders.

Run locally

Use Node.js 24 (22.18 or later is supported) and pnpm 11.22.0.

pnpm install --frozen-lockfile
pnpm dev

Open localhost:3000. For local site or analytics settings, copy .env.example to .env.local.

Refresh the data

Secretariat amounts use Open UN's 2025 programme-budget expenditure, including regular budget (RB), other assessed (OA) and extrabudgetary (XB), from public/data/budget-ppb-expenditure-2025.json in the Open checkout. Refresh the local snapshot with node scripts/prepare-secretariat-budget.mjs ../open; it writes data/secretariat-expenditure-2025.json and records the source digest and release. Priority and section headings have no money total. Section headings show names without numbers. Money is shown on lower-level group headings and counted once per financial allocation, regardless of card count. Missing funding rows remain unreported, and partially reported groups are marked. Printed CHF expenditure is retained as CHF, matching Open's currency formatting; visualization-only FX amounts are not presented as reported dollars. Fixed-width blue amount links use the shared Tooltip, FinancialTooltip, funding definitions and formatBudget from @un-eosg/ui. Filtering cards does not change expenditure. Amounts link to open.un-two-zero.org with an external-link arrow. Subprogramme links use Open's supported node hash. Results are grouped by individual budget sections beneath priority areas, so sections 12 and 13 and the six 29A–29F subsections each have their own heading. Open does not currently restore the year, measure or funding selection from URLs: select Expenditure, 2025 and RB/OA/XB there to match the displayed figures. The Secretariat Results view uses readable cards only. Mandate, expenditure and Details actions share compact blue boxes. Details opens the matching entity/subprogramme sidebar; sections and groups spanning several entities provide a sidebar listing their corresponding entity overviews.

Lower-level entity and subprogramme headings show counts from the live Mandate Registry https://mandates.un.org/api/v1/programmes response, snapshotted in data/secretariat-mandates-2027.json. Refresh with node scripts/prepare-secretariat-mandates.mjs; --input <response.json> supports a separately downloaded API response. The importer verifies the budget cycle and retains the retrieval time, source hash, canonical scope labels and row IDs. Counts are distinct cited documents at the registry location, including its subtree, and do not change with Results filters. Links use section, canonical subprogramme and entity values with ppb_version=ppb2027. Mandate boxes link directly to the registry without a tooltip. Groups combining several registry locations and unmatched source headings link to the containing section without an aggregate count; overlapping document counts are never summed. Section headings show only their name and Details action, without mandate counts or expenditure. Action boxes use dark-blue arrow circles: external links point up-right, and Details points right into its sidebar.

The earlier local compatibility check remains reproducible with python scripts/audit-mandate-links.py ../programme-budget-data ../mandates and writes data/mandate-compatibility-audit-2027.json. Raw PPB hyperlinks are not equivalent to the registry's resolved citation/document data and are not used for the displayed counts.

The complete programme/section/entity comparison is in docs/references/programme-section-comparison-2027.html (with a CSV alongside it and structured data in data/programme-section-comparison-2027.json). Recreate it with node scripts/compare-programmes-sections.mjs ../open ../programme-budget-data.

The entity directory uses data/system-entities.json, a local 2025 snapshot of Open UN's CEB SDG expenditure, entity expenditure totals and organization grouping. Source URLs pinned to repository commits are recorded in the snapshot. Descriptions and available logos come from the UN System Chart; missing logos use a generic icon. The earlier data/systemchart-entity-documents.json snapshot is retained as an input for its cleaned strategic plan and results framework links. Annual reports are intentionally inactive placeholders, and the five impact statements per entity are explicitly labelled illustrative copy.

Each entity is assigned to its largest positive allocation across SDGs 1–17. Equal allocations use the lower goal number. Entities with no allocation to those goals appear in an eighteenth Non-SDG entry. This represents explicitly reported CEB code X00, not missing reporting. Other positive contributors to each category appear in a compact, progressively revealed list. The 2025 snapshot displays 46 reporting entities, of which five have no allocation to goals 1–17. UNODC is excluded as a separate directory entry; its expenditure remains in the source system and SDG totals and is not merged into the Secretariat's figures. The directory covers these financial reporting entities, rather than every body in the System Chart.

The SDG view can group goals into the five pillars plus Other for Non-SDG expenditure. Pillars are ordered by expenditure and open one at a time, with individual SDGs inside. Search uses the shared underline input across all views. The By function view uses data/system-entity-functions-2025.json, sourced from Open UN's CEB Standard II export, and assigns each entity to its largest function allocation. Refresh that snapshot from the local Open UN checkout with node scripts/prepare-system-functions.mjs ../open 2025.

The System page opens on Organizations; Country teams contains the map and scope note, and Evaluations links to independent evaluation resources. Switching tabs preserves each view's controls. Related-resource cards follow Open UN's layout: Secretariat links to the Mandate Registry and Open UN; organizations link to the System Chart and Open UN; country teams link to UN INFO, Open UN and UNSDG. Evaluation resources link to the System-Wide Evaluation Office, United Nations Evaluation Group and Global SDG Synthesis Coalition. The Evaluations tab also includes the UNSDG document library filtered to country-team evaluations and four evidence-map cards covering countries, SDGs, QCPR priorities and detailed QCPR evidence, with a link to the SWEO overview. Country-framework sidebars list all available verified reports, grouped by the country's latest framework and previous periods, with cover-preview placeholders. Financial period selection does not hide reports. They also link to the complete UNSDG listing. Discovery and period-matching evidence are described in docs/uninfo-methodology.md. The country map uses pale framework-coverage shading with proportional blue expenditure circles styled after Open UN, using the same colours for single and shared frameworks. Each circle shows reported expenditure for calendar 2025; hover to see the annual USD amount. Shared country-team workspaces have one joint circle rather than duplicated country totals. A compact three-bar note compares 2025 CEB system expenditure, the published 2024 UN country-team benchmark and 2025 reported UN INFO expenditure; each label shows its year, and definitions and sources are in its expander. python/09-fetch_uninfo_annual.py --years 2025 refreshes the annual raw observations; python/11-export_uninfo_annual.py --year 2025 creates public/data/uninfo/annual-expenditure-2025.json. The CEB function input is kept at data/system-function-expenditure-2025.json; the published country-team benchmark is in data/un-country-team-spending.json. See docs/uninfo-methodology.md for source definitions, the annual processing commands and coverage limitations. Country sidebars focus on expenditure for the selected framework period. A country/shared-framework overview and every strategic priority, outcome and output retain their headline expenditure figures and bars, without detailed financial breakdowns. Missing metrics remain unreported. All money on the system page uses formatBudget from @un-eosg/ui/format-budget, matching Open UN.

The Country teams main page also offers one card per published indicator across six frameworks: Kenya, Nepal, Ukraine, Afghanistan, Colombia and the shared Pacific framework. The country/framework selector resets reporting periods and filters when switching datasets. Kenya starts on July 2024–June 2025; other frameworks prefer a populated annual interval ending in 2025, then a completed interval with reported achievements. Full source reporting intervals remain available through the period selector. Pacific currently publishes baselines and targets without reached values; those missing achievements remain explicit.

Values lead each card, followed by the indicator description and compact reported/target comparisons. Entity totals and population breakdowns remain separate, without inferred totals. Known reporting entities appear directly in card metadata. The unit filter offers units reported by common indicators; selecting a unit restricts the cards to flagged common indicators with that unit. Clearing the filter restores all results. Official SDG icons and goal links appear on cards, with precise target/indicator links where supplied. Shared catalogue mappings use a unique exact definition match and have dashed underlines with explanatory tooltips, distinct from direct country links.

The export index is public/data/uninfo/results/manifest.json. Refresh all indicator definitions, reporting cells and periods for a selected plan with uv run --no-project --python 3.13 --with-requirements python/uninfo-requirements.txt python python/13-fetch_uninfo_results.py --plan-id 1488. The included plan IDs are 1488, 1539, 2694, 1945, 2093 and 1517. Each successful export updates the index; request hashes and retrieval dates are retained in data/uninfo/results/<plan-id>-sources.json. Add --metadata-only to update SDG mappings while retaining the existing observation snapshot and its retrieval date. SDG groups can be sorted by goal number (with Non-SDG last) or by expenditure, highest first, including the Non-SDG category. Changing sort preserves the open group and the original goal numbers. System Chart categories also show their share of total system expenditure and can be sorted by chart order or expenditure. Category totals retain all source expenditure, including UNODC even though it has no separate directory entry.

Category percentages use total CEB system expenditure as the denominator, including Non-SDG and signed "Not specified" reconciliation differences. The latter remain separate from the Non-SDG entry; displayed category shares can therefore differ from 100% in total. Open UN combines accrual and budgetary expenditure in this export. These allocations describe reported expenditure, not mandates or measured impact.

To regenerate the snapshot and copy available organization logos, provide local Open UN and System Chart checkouts and their source commit identifiers:

node scripts/prepare-system-entities.mjs ../open ../un-system-chart-navigator <open-commit> <system-chart-commit>

This is an explicit preparation step with no database access or runtime writes. The script currently selects 2025. Official SDG artwork is stored locally in public/images/sdgs/01.jpg through 17.jpg, downloaded from https://sdgs.un.org/sites/default/files/goals/E_SDG_Icons-01.jpg (substitute each two-digit goal number). Copied organization logos live in public/images/system-entities/.

The site builds from data/ppb-2027.json. Page content comes from the 2027 proposed programme budget exports. Priority grouping assigns each entity to its largest spending priority in Open UN's 2025 financial reporting, summed across funding sources.

Beneficiary grouping uses data/oict-result-tags-2027.json. A result with two beneficiaries appears in both groups; group counts must not be summed as a unique total. Results without imported beneficiary tags remain in an Unclassified group.

Search and filters apply before grouping. Search matches result content, entity and subprogramme names, priority areas, beneficiaries and location names. Priority area, beneficiary, location and budget-structure filters combine with OR within each filter and AND across filters. Global coverage is separate from country tags. The toolbar toggles between priority-area and beneficiary grouping and preserves search and filters. Both views use readable cards. The budget filter follows the part, section, entity, subprogramme and component hierarchy; selecting a parent includes its descendant results.

Search suggestions offer matching categories alongside a free-text option. Enter keeps free-text search unless a suggestion is highlighted with the arrow keys. Selecting a category adds that filter, clears the query and preserves grouping. Removable filter chips remain visible when the filter panel is collapsed.

Result sidebars show entity, subprogramme and priority-area context cards, related results from the same subprogramme (or entity), and budget-document sources at the bottom. Overview pages, sidebars and hover previews share the same minimal result card.

Priority-area sidebars use the official 2025 annual report's opening Context and Our goals passages; effective functioning uses Our work and our people. The extracted text, printed page numbers, PDF spread pages, source URLs and inspected PDF hash are stored in data/priority-area-introductions-2025.json. PDF line breaks are normalized to spaces; the source wording and section headings are retained. The sidebars identify the report edition and link to the inspected UN-hosted PDF. Priority-area context cards open the same sidebar as the overview Learn more links, preserving the current grouping and returning to the source result when closed. These passages provide annual-report context and do not change financial priority assignments or budget results.

Entity and subprogramme overview text uses the objectives and strategies in the programme budget snapshot. Keep this official source text intact when refreshing the export; do not add separately written entity summaries.

Subprogramme numbers can recur in historical performance annexes with different names. The importer preserves those as distinct groups, with a name suffix on their IDs, so historical results do not inherit a different current subprogramme's expenditure or mandate mapping. Section 23's named advisory areas are imported as components beneath its sectoral and regional advisory-service groups. Combined generic component headings retain their separately printed descriptive title; subprogramme headings recover the full printed programme name rather than displaying a component label or an invented shortened title.

The current advisory-component snapshot was imported from ../programme-budget-data/data/processed/ppb2027/results-export-advisory-components. Its producer revision is 27a9144 (scoped commits made in an isolated clone). The extractor fixes are also committed in Programme Budget Data. The exact producer commits are preserved in the checked-in data/programme-budget-extraction-source.bundle, independently of temporary checkouts. Import that revision into the adjacent source repository with git -C ../programme-budget-data fetch ../results/data/programme-budget-extraction-source.bundle HEAD:refs/heads/codex/results-extraction-producer. The coherent source export is retained outside /tmp at the path above, with another copy of that source bundle beside it. Use the verified export for reimports until a new source export includes the advisory-component fix:

results_export=../programme-budget-data/data/processed/ppb2027/results-export-advisory-components
node scripts/import-programme-budget.mjs \
  "$results_export/portal-data" \
  "$results_export/entity-overlay-2027.json" \
  ../open/public/data/secretariat-overview-2025.json \
  "$results_export/chart-annotations-2027.json"

With the Programme Budget Data and Open UN checkouts alongside this one, prepare the 2027 results export in Programme Budget Data from committed extraction code:

cd ../programme-budget-data
uv run python scripts/build_results_export.py \
  --edition 2027 \
  --financial-input data/processed/financial/2027.json \
  --output data/processed/ppb2027/results-export-verified --replace
uv run python -m pipeline.verify.results_attribution \
  --published-data-dir data/processed/ppb2027/results-export-verified/portal-data
cd ../results

For a one-time replacement of a dedicated pre-manifest bundle, also pass --replace-legacy. If the old folder contains unrelated assets, choose a new output directory rather than deleting them. The builder reparses the selected official Word documents into isolated intermediates and leaves financial assets unchanged. It rejects source changes during the build. The importer verifies every bundle checksum and reads a consistent captured copy; development exports made from uncommitted extractor code are rejected. The snapshot retains the export manifest and source fingerprints under extraction.

Then import the verified bundle:

results_export=../programme-budget-data/data/processed/ppb2027/results-export-verified
node scripts/import-programme-budget.mjs \
  "$results_export/portal-data" \
  "$results_export/entity-overlay-2027.json" \
  ../open/public/data/secretariat-overview-2025.json \
  "$results_export/chart-annotations-2027.json"

The importer checks that the entity overlay matches the budget exports and records the input checksums. Chart annotations identify explicit missing values and percentages from the Word charts. Review any unmapped entities or strategies reported during the import. The original OICT dashboard exports are preserved in data/oict/ for reference. The results pages use the proposed programme budget snapshot.

After refreshing the budget snapshot, run node scripts/match-oict-results.mjs to rebuild the beneficiary and location links. The script matches on document, result type, and title, with reviewed exceptions for shortened and revised titles. Unmatched OICT entries are reported separately. Locations use the UNDP choropleth map and country names from Open UN. The bundled UNDP basemap is distributed under its MIT license. To rebuild the location lookup as well, pass the Open UN public/data/geographic-expenses-2025.json export and an ISO 3166-1 JSON file from the iso-codes package as the two arguments.

Checks and publishing

pnpm lint
pnpm typecheck
pnpm format:check
pnpm test
pnpm build
pnpm exec playwright install chromium
pnpm test:browser

The GitHub Pages workflow builds the static site on pushes to main.

About

results.un.org | UN Results Portal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages