Open National Data Exchange (OpenNDX) is an open-source data exchange platform by Lanka Software Foundation. A data consumer sends one query, and OpenNDX checks the consumer's access, gets the data owner's consent where required, fetches the data from the organizations that hold it, and returns one merged answer.
- Data consumers: applications that need data held by other organizations. They send one GraphQL query instead of integrating with each organization.
- Data providers: organizations that hold the data. OpenNDX queries each provider over GraphQL, so a provider whose system has only a REST API puts a GraphQL adapter in front of it, as one of the sample providers does.
- Data owners: the people the data is about. They approve, reject or revoke consent in the Consent Portal.
- Operators and members: the organization that runs an exchange, and the member organizations that register their providers' schemas and their consumers' applications with the
ondxCLI or the management API.
- One query, many providers. The Orchestration Engine splits a GraphQL query into one sub-query per provider, runs them in parallel and merges the results.
- Field-level access control. Each field can require an access grant, the data owner's consent, both or neither, and every request is checked field by field (policy model).
- Consent that data owners control. Owners approve, reject or revoke each request in the Consent Portal, and approved consent expires (consent lifecycle).
- Audited exceptions. An administrator can let an application read a field without consent, with a legal basis and an expiry. The Orchestration Engine flags each such read in its audit events (consent bypass).
- Managed from a CLI or an API. Members, schemas, applications and their access are registered with the
ondxCLI or the Portal Backend API. - Ready to deploy. Every release publishes container images, the Helm chart that installs them on Kubernetes, and
ondxbinaries.
OpenNDX is in initial development, before version 1.0, so a release can include breaking changes. Commit titles mark them with !, and the notes for each release list the pull requests it includes.
flowchart LR
Consumer[Data consumer app] -->|GraphQL| OE[Orchestration Engine]
OE -->|access decision| PDP[Policy Decision Point]
OE -->|consent| CE[Consent Engine]
OE -->|sub-queries| PR[Data providers]
Citizen --> CP[Consent Portal]
CP --> CE
Operator[Operators and member staff] --> CLI[ondx CLI]
CLI --> PB[Portal Backend]
PB -->|field policies, access grants| PDP
| Component | Role | Docs |
|---|---|---|
| Orchestration Engine (OE) | Federated GraphQL gateway for data requests | cmd/oe |
| Policy Decision Point (PDP) | Field policies, access grants, access decisions | cmd/pdp |
| Consent Engine (CE) | Consent lifecycle: request, approve, reject, expire, revoke | cmd/ce |
| Portal Backend (PB) | Management API for members, schemas, applications | cmd/pb |
ondx CLI |
Operator command line for the Portal Backend | cmd/ondx |
| Consent Portal | Citizen app to approve or revoke consent | portals/apps/consent |
Consumers, citizens and operators sign in through the identity provider, ThunderID, whose tokens the services check. The architecture page has the full picture: the identity provider and audit records, the databases, the local ports, the dependencies and the standards.
- A consumer gets a token from the identity provider and sends a GraphQL query to the Orchestration Engine.
- The Orchestration Engine checks the token, then asks the Policy Decision Point whether the consumer may read each field, and which fields need the data owner's consent.
- If consent is needed, the Consent Engine records a pending request. The consumer receives a consent link, the citizen approves it in the Consent Portal, and the consumer repeats the query.
- The Orchestration Engine fetches the data from the providers in parallel and returns the merged result.
Providers, schemas, applications and their access are set up beforehand through the Portal Backend, using ondx or the management API. Details: Orchestration Engine.
You need Docker with Compose.
git clone https://github.com/openndx/openndx-core.git
cd openndx-core
docker compose up --buildThis starts PostgreSQL, ThunderID, the Policy Decision Point, Consent Engine, Orchestration Engine, Portal Backend and the Consent Portal. Every setting has a local default, so no .env is needed; to override any, copy .env.example to .env. The local secrets all default to 1234; never reuse them outside local development. Audit records are dropped until an OpenTelemetry endpoint is set; Viewing audit records shows how to send them to a local OpenObserve.
The end-to-end walkthrough takes it from there: mock providers, registering members and schemas with ondx, granting an application access, citizen consent, and a query that returns data.
The Helm chart installs the four services and the Consent Portal on Kubernetes, from the container images that each release publishes as ghcr.io/openndx/<service>. Each release publishes the chart too, at the same version, as oci://ghcr.io/openndx/charts/openndx. PostgreSQL, ThunderID, the data providers and the OpenTelemetry endpoint that receives audit records run outside the chart; its README lists what each needs. The releases page lists each release's images, and the ondx CLI installs with Homebrew, an install script or go install.
The documentation index lists every guide and reference, grouped by what you want to do. If you're new, start with the end-to-end walkthrough.
- Ask questions and discuss ideas in GitHub Discussions.
- Report bugs and suggest improvements with the issue forms.
- Report security vulnerabilities as described in SECURITY.md, not in public issues.
To build, test or run the services from source, see CONTRIBUTING.md. It covers the prerequisites on each operating system, every make target, the ways to run the platform and how to submit a pull request. Participation is governed by the Code of Conduct.
Copyright (c) 2025 Lanka Software Foundation. Licensed under the Apache License 2.0.