What Is DPG?
Network-aware backend for federated trust networks
Vocabulary
Core terms: network, domain, instance, item, action, event.
Architecture
Four-layer runtime: contract, instance, storage, APIs.
Network Schema
Authoring guide for network.json contracts.
API Reference
Routes, auth paths, items, actions, network fetch.
UI
Schema-driven React frontend, components and customization.
Hosting
Local, single-instance, and multi-instance deployment.
DPG is a network-aware backend model for publishing, validating, discovering, and interacting with items across many instances.
The core model is:
- a network defines the shared contract
- a domain defines a business role inside that network
- an instance serves one or more domains
- an item is a schema-typed record
- an action is an interaction between items
- an event is the structured result of that action
Why DPG Exists
Section titled “Why DPG Exists”DPG is useful when:
- one domain can have many independent instances
- clients should not need to hardcode every peer instance
- schemas need to be explicit and versioned
- actions between domains must be validated consistently
- networks need a portable onboarding path for new actors
What This Repository Contains
Section titled “What This Repository Contains”apps/api: the Fastify runtime that serves items, actions, events, and network-aware fetchesapps/docs: this documentation siteexamples/schemas: complete example network schemas such asyellow_dotandblue_dotexamples/api: example request payloadspackages/config: environment and runtime config helperspackages/database: database schema helpers and partition utilitiespackages/schemas: request schemas, network schema parsing, and schema registry helperspackages/auth: auth integration
Read This In Order
Section titled “Read This In Order”- Vocabulary
- Architecture
- Getting Started
- Environment
- Network Schema Authoring Guide
- API Overview
- the hosting guide that matches your deployment model
Documentation Goals
Section titled “Documentation Goals”This documentation is meant to help:
- network authors creating a new schema contract
- instance operators deploying one or more DPG backends
- product teams building UI and workflows on top of DPG
The structure is intentional:
- concepts first
- runnable setup second
- schema design third
- API behavior fourth
- internals fifth
- service integrations last