🏗️ Framework

Comprehensive architectural framework and development guidelines

On this page

Ontology & Core Roles

The fundamental component types that form the building blocks of any PeerMesh platform.

🔧

Module

Headless capability that owns contracts, exposes APIs/events, and optionally manages data domains

Characteristics:

•Headless capability
•Owns contracts
•Exposes APIs/events
•Optional data domains

Examples:

Vault EngineIdentity GraphFeed EnginePayments
🔌

Plugin

App-wide feature that introduces routes/flows, composes Modules, and hosts Widgets

Characteristics:

•App-wide feature
•Introduces routes/flows
•Composes Modules
•Hosts Widgets

Examples:

FeedProfileStorefrontPage Builder
🎛️

Widget

User-configurable, page-level component mounted in named slots

Characteristics:

•User-configurable
•Page-level component
•Mounted in named slots
•Interactive UI element

Examples:

GalleryWallet SummaryPoll Card

Foundation & Core

Basic framework elements

8 elements
01

Ontology & Typology

✓ stable

Core roles, configuration layer, and integration facets

Details
02

Intake Template - IDEA

✓ stable

Standardized template for capturing new component ideas

Details
03

Capability Families

✓ stable

Groupings of related capabilities and contracts

Details
04

Provider Cards

✓ stable

Standardized provider information and comparison format

Details
05

Capability Matrix

✓ stable

Matrix showing capability coverage across providers

Details
06

Resolver Policy

✓ stable

Policies for resolving capability requests to providers

Details
07

Conformance Kit

✓ stable

Testing and validation tools for component conformance

Details
08

Surfaces Glossary

✓ stable

Definitions of all interop surfaces and integration points

Details

Process & Standards

Development processes and standards

8 elements
09

Workflow Playbook

✓ stable

Standard workflows for component development and integration

Details
10

Prompts for Agents

✓ stable

AI agent prompts for automated component tasks

Details
11

Agent SOP

✓ stable

Standard operating procedures for AI agents

Details
12

Document Conventions

✓ stable

Standards for documentation format and structure

Details
13

Flags Registry

✓ stable

Registry of all capability flags and their meanings

Details
14

Error Taxonomy

✓ stable

Standardized error codes and handling patterns

Details
15

Canonical Receipt

✓ stable

Standard format for transaction and operation receipts

Details
16

Checklists

✓ stable

Quality assurance and validation checklists

Details

Advanced & Governance

Advanced features and governance

9 elements
17

Source of Truth Registry

✓ stable

Registry defining authoritative data sources

Details
18

Event Envelope and Naming

✓ stable

Standards for event structure and naming conventions

Details
19

Route and Slot Conventions

✓ stable

Conventions for UI routing and widget slot naming

Details
20

Permissions Registry

✓ stable

Registry of all permissions and access control patterns

Details
21

Provider Scorecard

✓ stable

Standardized scoring system for provider evaluation

Details
22

Stage Gates (AF/SM)

✓ stable

Quality gates based on Artifact Fidelity and Solution Maturity

Details
23

Data Export Packaging

✓ stable

Standards for data export formats and packaging

Details
24

Tenant and Environment Policy

✓ stable

Policies for multi-tenant deployments and environments

Details
25

Governance and Change Control

✓ stable

Framework governance and change management processes

Details

Interoperability Surfaces

The standardized interfaces through which PeerMesh components communicate and integrate.

🖼️

UI

User interface integration points

Elements:

routesslotsembeds
🔗

API

Application programming interfaces

Elements:

RPCRESTGraphQLMCP
⚡

Events

Event-driven communication

Elements:

pub/sub topicsevent kinds
🗃️

Data

Data layer integration

Elements:

modelsmigrationsindexingretentionPII
🆔

Identity

Identity and authentication

Elements:

DIDs/VCsexternal keys
🛡️

Policy

Security and governance

Elements:

permissionsleast-privilegemoderation
🌐

Federation

Cross-platform communication

Elements:

ATProtoActivityPubNostrHolochain
⚙️

Operations

Operational concerns

Elements:

SLOsobservabilityfailure modesrate limits

Design Guidelines

Core principles and rules that guide component development and ensure architectural consistency.

Granularity Heuristics

📏

Write contracts as business verbs (e.g., `asset.mint`) not low-level operations

📏

Keep families coherent (5–10 verbs). Split by lifecycle and trust boundary

📏

Use flags to express optional features (don't fork contracts)

Guardrails

🛡️

Widgets never talk to externals directly

🛡️

Identity linkages always traverse the Identity Graph

🛡️

Data enters via the Data Layer; avoid side channels

🛡️

Prefer Events for cross-component communication

Rules of Thumb

💡

If it renders routes → Plugin

💡

If it's user-placeable UI → Widget

💡

If it's headless/shared infrastructure → Module

💡

If it touches an external thing → add an Integration attribute to whichever roles apply