@radicaltools/mcp 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +140 -2
- package/dist/chunk-KI4NVSTU.js +1763 -0
- package/dist/elkLayout-WC6AXWOG.js +185 -0
- package/dist/hub-catalogue/adr/adr-api-versioning.radical +53 -0
- package/dist/hub-catalogue/adr/adr-auth-strategy.radical +53 -0
- package/dist/hub-catalogue/adr/adr-caching-strategy.radical +59 -0
- package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +40 -0
- package/dist/hub-catalogue/adr/adr-data-store.radical +47 -0
- package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +53 -0
- package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +53 -0
- package/dist/hub-catalogue/adr/adr-integration-style.radical +50 -0
- package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +38 -0
- package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +40 -0
- package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +39 -0
- package/dist/hub-catalogue/adr/adr-multi-region.radical +60 -0
- package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +41 -0
- package/dist/hub-catalogue/adr/adr-observability.radical +59 -0
- package/dist/hub-catalogue/adr/adr-realtime-transport.radical +38 -0
- package/dist/hub-catalogue/adr/adr-tech-stack.radical +45 -0
- package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +40 -0
- package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +1641 -0
- package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +1428 -0
- package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +1989 -0
- package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +1701 -0
- package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +1792 -0
- package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +1421 -0
- package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +1713 -0
- package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +34 -0
- package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +52 -0
- package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +36 -0
- package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +67 -0
- package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +62 -0
- package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +53 -0
- package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +64 -0
- package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +51 -0
- package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +43 -0
- package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +37 -0
- package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +46 -0
- package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +52 -0
- package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +53 -0
- package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +59 -0
- package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +34 -0
- package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +34 -0
- package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +59 -0
- package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +44 -0
- package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +43 -0
- package/dist/hub-catalogue/fitness-function/ff-mttr.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +66 -0
- package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +35 -0
- package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +66 -0
- package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +66 -0
- package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +43 -0
- package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +57 -0
- package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +88 -0
- package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +168 -0
- package/dist/hub-catalogue/pattern/pattern-bff.radical +179 -0
- package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +114 -0
- package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +219 -0
- package/dist/hub-catalogue/pattern/pattern-cqrs.radical +195 -0
- package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +200 -0
- package/dist/hub-catalogue/pattern/pattern-event-driven.radical +210 -0
- package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +211 -0
- package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +196 -0
- package/dist/hub-catalogue/pattern/pattern-microservices.radical +262 -0
- package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +213 -0
- package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +114 -0
- package/dist/hub-catalogue/pattern/pattern-saga.radical +208 -0
- package/dist/hub-catalogue/pattern/pattern-sidecar.radical +123 -0
- package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +227 -0
- package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +209 -0
- package/dist/hub-catalogue/requirement/req-accessibility.radical +48 -0
- package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +51 -0
- package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +45 -0
- package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +46 -0
- package/dist/hub-catalogue/requirement/req-alerting.radical +52 -0
- package/dist/hub-catalogue/requirement/req-api-response-time.radical +51 -0
- package/dist/hub-catalogue/requirement/req-api-standard.radical +45 -0
- package/dist/hub-catalogue/requirement/req-audit-logging.radical +43 -0
- package/dist/hub-catalogue/requirement/req-auth-response-time.radical +45 -0
- package/dist/hub-catalogue/requirement/req-auth.radical +43 -0
- package/dist/hub-catalogue/requirement/req-autoscaling.radical +62 -0
- package/dist/hub-catalogue/requirement/req-availability.radical +50 -0
- package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +46 -0
- package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +50 -0
- package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +64 -0
- package/dist/hub-catalogue/requirement/req-centralised-logging.radical +45 -0
- package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +43 -0
- package/dist/hub-catalogue/requirement/req-code-complexity.radical +43 -0
- package/dist/hub-catalogue/requirement/req-config-propagation.radical +45 -0
- package/dist/hub-catalogue/requirement/req-data-integrity.radical +35 -0
- package/dist/hub-catalogue/requirement/req-data-retention.radical +44 -0
- package/dist/hub-catalogue/requirement/req-db-query-response.radical +44 -0
- package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +59 -0
- package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +45 -0
- package/dist/hub-catalogue/requirement/req-encryption.radical +49 -0
- package/dist/hub-catalogue/requirement/req-error-rate.radical +45 -0
- package/dist/hub-catalogue/requirement/req-error-recovery.radical +34 -0
- package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +37 -0
- package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +55 -0
- package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +69 -0
- package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +44 -0
- package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +39 -0
- package/dist/hub-catalogue/requirement/req-health-checks.radical +43 -0
- package/dist/hub-catalogue/requirement/req-iac.radical +36 -0
- package/dist/hub-catalogue/requirement/req-idempotency.radical +47 -0
- package/dist/hub-catalogue/requirement/req-input-validation.radical +37 -0
- package/dist/hub-catalogue/requirement/req-least-privilege.radical +47 -0
- package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +38 -0
- package/dist/hub-catalogue/requirement/req-mfa.radical +36 -0
- package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +42 -0
- package/dist/hub-catalogue/requirement/req-onboarding-time.radical +42 -0
- package/dist/hub-catalogue/requirement/req-page-load-time.radical +59 -0
- package/dist/hub-catalogue/requirement/req-payout-latency.radical +46 -0
- package/dist/hub-catalogue/requirement/req-presence-latency.radical +46 -0
- package/dist/hub-catalogue/requirement/req-rate-limiting.radical +45 -0
- package/dist/hub-catalogue/requirement/req-report-generation.radical +44 -0
- package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +64 -0
- package/dist/hub-catalogue/requirement/req-resource-headroom.radical +53 -0
- package/dist/hub-catalogue/requirement/req-resource-isolation.radical +37 -0
- package/dist/hub-catalogue/requirement/req-search-response-time.radical +44 -0
- package/dist/hub-catalogue/requirement/req-secrets-management.radical +45 -0
- package/dist/hub-catalogue/requirement/req-task-success-rate.radical +42 -0
- package/dist/hub-catalogue/requirement/req-test-coverage.radical +42 -0
- package/dist/hub-catalogue/requirement/req-throughput.radical +55 -0
- package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +52 -0
- package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +39 -0
- package/dist/index.js +8382 -0
- package/package.json +48 -4
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-security-scan",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Dependency Vulnerability Scan",
|
|
6
|
+
"description": "Scans dependencies and container images for known vulnerabilities on every build and blocks the release on severe findings.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"operational",
|
|
9
|
+
"security",
|
|
10
|
+
"supply-chain",
|
|
11
|
+
"ci-cd"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "BLOCK_CVSS",
|
|
17
|
+
"label": "Block builds at CVSS ≥",
|
|
18
|
+
"hint": "7",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "7"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"hubRefs": [
|
|
24
|
+
"req-vulnerability-scanning",
|
|
25
|
+
"ff-license-compliance",
|
|
26
|
+
"ff-sast-scan"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"nodes": [
|
|
30
|
+
{
|
|
31
|
+
"id": "ff-security-scan-1",
|
|
32
|
+
"type": "fitness-fn",
|
|
33
|
+
"label": "Dependency Vulnerability Scan",
|
|
34
|
+
"description": "Runs an SCA scanner (e.g. Trivy, Grype, Snyk) against the lockfile, the resolved dependency tree and the final container image, matched against the NVD and vendor advisory feeds. Findings are diffed against the previous release so only new or upgraded severities block.",
|
|
35
|
+
"x": 0,
|
|
36
|
+
"y": 0,
|
|
37
|
+
"width": 180,
|
|
38
|
+
"height": 52,
|
|
39
|
+
"collapsed": false,
|
|
40
|
+
"category": "operational",
|
|
41
|
+
"threshold": "0 unresolved findings with CVSS ≥ {{BLOCK_CVSS}} without an approved, time-boxed exception"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"relations": []
|
|
45
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-startup-shutdown-check",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Startup & Shutdown Verification",
|
|
6
|
+
"description": "Automatically verifies every service becomes ready within its startup budget and, on SIGTERM, drains in-flight requests within its shutdown budget instead of being killed mid-request — checked on every deploy, not assumed.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"operational",
|
|
9
|
+
"disposability",
|
|
10
|
+
"kubernetes",
|
|
11
|
+
"deployment"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "STARTUP_SECONDS",
|
|
17
|
+
"label": "Max time to become ready (s)",
|
|
18
|
+
"hint": "10",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "10"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "DRAIN_TIMEOUT_SECONDS",
|
|
24
|
+
"label": "Graceful shutdown drain timeout (s)",
|
|
25
|
+
"hint": "30",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"defaultValue": "30"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"hubRefs": [
|
|
31
|
+
"req-fast-startup-graceful-shutdown",
|
|
32
|
+
"req-zero-downtime-deploy"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"nodes": [
|
|
36
|
+
{
|
|
37
|
+
"id": "ff-startup-shutdown-check-1",
|
|
38
|
+
"type": "fitness-fn",
|
|
39
|
+
"label": "Startup & Shutdown Verification",
|
|
40
|
+
"x": 0,
|
|
41
|
+
"y": 0,
|
|
42
|
+
"width": 260,
|
|
43
|
+
"height": 52,
|
|
44
|
+
"collapsed": false,
|
|
45
|
+
"description": "Automatically verifies every service becomes ready within its startup budget and, on SIGTERM, drains in-flight requests within its shutdown budget instead of being killed mid-request — checked on every deploy, not assumed.",
|
|
46
|
+
"category": "operational",
|
|
47
|
+
"threshold": "100% of services report ready within {{STARTUP_SECONDS}}s and complete graceful shutdown (zero dropped in-flight requests) within {{DRAIN_TIMEOUT_SECONDS}}s of SIGTERM",
|
|
48
|
+
"templateParams": [
|
|
49
|
+
{
|
|
50
|
+
"key": "STARTUP_SECONDS",
|
|
51
|
+
"label": "Max time to become ready (s)",
|
|
52
|
+
"hint": "10",
|
|
53
|
+
"type": "number",
|
|
54
|
+
"defaultValue": "10"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"key": "DRAIN_TIMEOUT_SECONDS",
|
|
58
|
+
"label": "Graceful shutdown drain timeout (s)",
|
|
59
|
+
"hint": "30",
|
|
60
|
+
"type": "number",
|
|
61
|
+
"defaultValue": "30"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-sync-convergence-test",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "CRDT Convergence Test",
|
|
6
|
+
"description": "Property-based test that replays the same set of concurrent operations across multiple replicas in randomised order, with simulated disconnects and reconnects, and asserts every replica ends up in byte-identical state.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"structural",
|
|
9
|
+
"crdt",
|
|
10
|
+
"correctness",
|
|
11
|
+
"testing"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "CONVERGENCE_RUNS",
|
|
17
|
+
"label": "Randomised property-test iterations per release",
|
|
18
|
+
"hint": "1000",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "1000"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"hubRefs": [
|
|
24
|
+
"pattern-crdt-sync",
|
|
25
|
+
"req-presence-latency",
|
|
26
|
+
"ff-chaos-resilience-test"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"nodes": [
|
|
30
|
+
{
|
|
31
|
+
"id": "ff-sync-convergence-test-1",
|
|
32
|
+
"type": "fitness-fn",
|
|
33
|
+
"label": "CRDT Convergence Test",
|
|
34
|
+
"description": "Generates a random batch of concurrent operations from simulated replicas and applies them to each replica in a different random order, including simulated network partitions and out-of-order delivery, then diffs the resulting document states.",
|
|
35
|
+
"x": 0,
|
|
36
|
+
"y": 0,
|
|
37
|
+
"width": 180,
|
|
38
|
+
"height": 52,
|
|
39
|
+
"collapsed": false,
|
|
40
|
+
"category": "structural",
|
|
41
|
+
"threshold": "100% of {{CONVERGENCE_RUNS}} randomised replay runs per release converge to identical state — any divergence fails the build"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"relations": []
|
|
45
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-test-coverage",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Test Coverage Gate",
|
|
6
|
+
"description": "Enforces a minimum test coverage on every change and prevents coverage from eroding over time.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"process",
|
|
9
|
+
"testing",
|
|
10
|
+
"quality",
|
|
11
|
+
"ci-cd"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "MIN_COVERAGE_PCT",
|
|
17
|
+
"label": "Minimum line coverage (%)",
|
|
18
|
+
"hint": "80",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "80"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"hubRefs": [
|
|
24
|
+
"req-test-coverage"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"nodes": [
|
|
28
|
+
{
|
|
29
|
+
"id": "ff-test-coverage-1",
|
|
30
|
+
"type": "fitness-fn",
|
|
31
|
+
"label": "Test Coverage Gate",
|
|
32
|
+
"description": "Collects line and branch coverage from the unit and integration test run, compares the project total with the threshold and the per-file coverage of changed files with the base branch. Pairs well with a mutation-testing sample to catch assertion-free tests.",
|
|
33
|
+
"x": 0,
|
|
34
|
+
"y": 0,
|
|
35
|
+
"width": 180,
|
|
36
|
+
"height": 52,
|
|
37
|
+
"collapsed": false,
|
|
38
|
+
"category": "process",
|
|
39
|
+
"threshold": "Total line coverage ≥ {{MIN_COVERAGE_PCT}}% and no decrease on changed files"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"relations": []
|
|
43
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-web-vitals",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Web Vitals Budget",
|
|
6
|
+
"description": "Performance budget for the web front end, checked in the pipeline with lab measurements and in production with real-user data.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"operational",
|
|
9
|
+
"performance",
|
|
10
|
+
"web",
|
|
11
|
+
"core-web-vitals"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "LCP_BUDGET_SECONDS",
|
|
17
|
+
"label": "LCP budget (s)",
|
|
18
|
+
"hint": "2.5",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "2.5"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "INP_BUDGET_MS",
|
|
24
|
+
"label": "INP budget (ms)",
|
|
25
|
+
"hint": "200",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"defaultValue": "200"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "JS_BUDGET_KB",
|
|
31
|
+
"label": "Initial JavaScript budget (kB, compressed)",
|
|
32
|
+
"hint": "300",
|
|
33
|
+
"type": "number",
|
|
34
|
+
"defaultValue": "300"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"hubRefs": [
|
|
38
|
+
"req-page-load-time"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"nodes": [
|
|
42
|
+
{
|
|
43
|
+
"id": "ff-web-vitals-1",
|
|
44
|
+
"type": "fitness-fn",
|
|
45
|
+
"label": "Web Vitals Budget",
|
|
46
|
+
"description": "Lab: Lighthouse CI on key pages with throttled network and CPU, asserting LCP, INP proxies and bundle size. Field: Core Web Vitals from the RUM library aggregated at the 75th percentile of page views over 28 days.",
|
|
47
|
+
"x": 0,
|
|
48
|
+
"y": 0,
|
|
49
|
+
"width": 180,
|
|
50
|
+
"height": 52,
|
|
51
|
+
"collapsed": false,
|
|
52
|
+
"category": "operational",
|
|
53
|
+
"threshold": "p75 LCP ≤ {{LCP_BUDGET_SECONDS}} s, p75 INP ≤ {{INP_BUDGET_MS}} ms, initial JS ≤ {{JS_BUDGET_KB}} kB"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"relations": []
|
|
57
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "pattern-anti-corruption-layer",
|
|
4
|
+
"category": "pattern",
|
|
5
|
+
"name": "Anti-Corruption Layer",
|
|
6
|
+
"description": "A translation layer sits between your clean domain model and a legacy or external system's model, so that system's concepts, quirks and technical debt never leak into your domain. The layer absorbs the cost of translation once, instead of every consumer redoing it.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"ddd",
|
|
9
|
+
"anti-corruption-layer",
|
|
10
|
+
"integration",
|
|
11
|
+
"legacy",
|
|
12
|
+
"hexagonal"
|
|
13
|
+
],
|
|
14
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
15
|
+
"hubRefs": [
|
|
16
|
+
"pattern-hexagonal",
|
|
17
|
+
"pattern-strangler-fig",
|
|
18
|
+
"adr-integration-style"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"nodes": [
|
|
22
|
+
{
|
|
23
|
+
"id": "platform",
|
|
24
|
+
"type": "system",
|
|
25
|
+
"label": "Modern Domain",
|
|
26
|
+
"description": "The current, clean domain model — protected from a legacy system's design decisions by a dedicated translation boundary.",
|
|
27
|
+
"x": 0,
|
|
28
|
+
"y": 0,
|
|
29
|
+
"width": 700,
|
|
30
|
+
"height": 340,
|
|
31
|
+
"collapsed": false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "domain-service",
|
|
35
|
+
"type": "container",
|
|
36
|
+
"label": "Domain Service",
|
|
37
|
+
"description": "Owns the clean domain model. Knows nothing about the legacy system's schema, terminology or quirks.",
|
|
38
|
+
"technology": "Java",
|
|
39
|
+
"parentId": "platform",
|
|
40
|
+
"width": 300,
|
|
41
|
+
"height": 200,
|
|
42
|
+
"collapsed": false,
|
|
43
|
+
"x": 30,
|
|
44
|
+
"y": 110
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "acl",
|
|
48
|
+
"type": "container",
|
|
49
|
+
"label": "Anti-Corruption Layer",
|
|
50
|
+
"description": "Translates between the legacy system's model/protocol and the clean domain model. Legacy quirks, deprecated fields and workarounds live here, not in the domain.",
|
|
51
|
+
"technology": "Java",
|
|
52
|
+
"parentId": "platform",
|
|
53
|
+
"width": 300,
|
|
54
|
+
"height": 200,
|
|
55
|
+
"collapsed": false,
|
|
56
|
+
"x": 370,
|
|
57
|
+
"y": 110
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "legacy-system",
|
|
61
|
+
"type": "system",
|
|
62
|
+
"label": "Legacy System",
|
|
63
|
+
"description": "A pre-existing system with its own data model, terminology and technical constraints that don't map cleanly onto the current domain.",
|
|
64
|
+
"external": true,
|
|
65
|
+
"x": 0,
|
|
66
|
+
"y": 460,
|
|
67
|
+
"width": 360,
|
|
68
|
+
"height": 260,
|
|
69
|
+
"collapsed": false
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"relations": [
|
|
73
|
+
{
|
|
74
|
+
"id": "domain-service--acl",
|
|
75
|
+
"sourceId": "domain-service",
|
|
76
|
+
"targetId": "acl",
|
|
77
|
+
"label": "Uses the domain's own clean interface",
|
|
78
|
+
"technology": "in-process / gRPC"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "acl--legacy-system",
|
|
82
|
+
"sourceId": "acl",
|
|
83
|
+
"targetId": "legacy-system",
|
|
84
|
+
"label": "Adapts to the legacy schema and protocol",
|
|
85
|
+
"technology": "SOAP / flat file"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "pattern-api-gateway",
|
|
4
|
+
"category": "pattern",
|
|
5
|
+
"name": "API Gateway",
|
|
6
|
+
"description": "A single entry point that terminates TLS, authenticates callers, enforces quotas and routes requests to backend services, so the services themselves stay free of edge concerns.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"api-gateway",
|
|
9
|
+
"edge",
|
|
10
|
+
"security",
|
|
11
|
+
"routing",
|
|
12
|
+
"microservices"
|
|
13
|
+
],
|
|
14
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
15
|
+
"hubRefs": [
|
|
16
|
+
"req-auth",
|
|
17
|
+
"req-rate-limiting",
|
|
18
|
+
"adr-auth-strategy",
|
|
19
|
+
"pattern-microservices",
|
|
20
|
+
"pattern-bff",
|
|
21
|
+
"pattern-rate-limiter"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"nodes": [
|
|
25
|
+
{
|
|
26
|
+
"id": "customer",
|
|
27
|
+
"type": "person",
|
|
28
|
+
"label": "Customer",
|
|
29
|
+
"description": "Uses the web and mobile apps.",
|
|
30
|
+
"x": 0,
|
|
31
|
+
"y": 0,
|
|
32
|
+
"width": 150,
|
|
33
|
+
"height": 170,
|
|
34
|
+
"collapsed": false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "partner",
|
|
38
|
+
"type": "system",
|
|
39
|
+
"label": "Partner Application",
|
|
40
|
+
"description": "Third-party system integrating over the public API.",
|
|
41
|
+
"external": true,
|
|
42
|
+
"x": 230,
|
|
43
|
+
"y": 0,
|
|
44
|
+
"width": 360,
|
|
45
|
+
"height": 260,
|
|
46
|
+
"collapsed": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "platform",
|
|
50
|
+
"type": "system",
|
|
51
|
+
"label": "Commerce Platform",
|
|
52
|
+
"description": "Backend behind the public API.",
|
|
53
|
+
"x": 0,
|
|
54
|
+
"y": 360,
|
|
55
|
+
"width": 1380,
|
|
56
|
+
"height": 340,
|
|
57
|
+
"collapsed": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "gateway",
|
|
61
|
+
"type": "container",
|
|
62
|
+
"label": "API Gateway",
|
|
63
|
+
"description": "Terminates TLS, validates access tokens, applies per-client rate limits, routes by path and version, and emits access logs and metrics.",
|
|
64
|
+
"technology": "Kong / Envoy / AWS API Gateway",
|
|
65
|
+
"parentId": "platform",
|
|
66
|
+
"x": 30,
|
|
67
|
+
"y": 110,
|
|
68
|
+
"width": 300,
|
|
69
|
+
"height": 200,
|
|
70
|
+
"collapsed": false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "users",
|
|
74
|
+
"type": "container",
|
|
75
|
+
"label": "User Service",
|
|
76
|
+
"description": "Accounts, profiles and preferences.",
|
|
77
|
+
"technology": "Node.js / NestJS",
|
|
78
|
+
"parentId": "platform",
|
|
79
|
+
"x": 370,
|
|
80
|
+
"y": 110,
|
|
81
|
+
"width": 300,
|
|
82
|
+
"height": 200,
|
|
83
|
+
"collapsed": false
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "orders",
|
|
87
|
+
"type": "container",
|
|
88
|
+
"label": "Order Service",
|
|
89
|
+
"description": "Order capture, payment and fulfilment status.",
|
|
90
|
+
"technology": "Java / Spring Boot",
|
|
91
|
+
"parentId": "platform",
|
|
92
|
+
"x": 710,
|
|
93
|
+
"y": 110,
|
|
94
|
+
"width": 300,
|
|
95
|
+
"height": 200,
|
|
96
|
+
"collapsed": false
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "catalog",
|
|
100
|
+
"type": "container",
|
|
101
|
+
"label": "Catalog Service",
|
|
102
|
+
"description": "Products, prices and availability.",
|
|
103
|
+
"technology": "Go",
|
|
104
|
+
"parentId": "platform",
|
|
105
|
+
"x": 1050,
|
|
106
|
+
"y": 110,
|
|
107
|
+
"width": 300,
|
|
108
|
+
"height": 200,
|
|
109
|
+
"collapsed": false
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "idp",
|
|
113
|
+
"type": "system",
|
|
114
|
+
"label": "Identity Provider",
|
|
115
|
+
"description": "Issues and signs OAuth 2.0 / OIDC tokens.",
|
|
116
|
+
"external": true,
|
|
117
|
+
"x": 0,
|
|
118
|
+
"y": 800,
|
|
119
|
+
"width": 360,
|
|
120
|
+
"height": 260,
|
|
121
|
+
"collapsed": false
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"relations": [
|
|
125
|
+
{
|
|
126
|
+
"id": "customer--gateway",
|
|
127
|
+
"sourceId": "customer",
|
|
128
|
+
"targetId": "gateway",
|
|
129
|
+
"label": "Calls public API",
|
|
130
|
+
"technology": "HTTPS / JSON"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "partner--gateway",
|
|
134
|
+
"sourceId": "partner",
|
|
135
|
+
"targetId": "gateway",
|
|
136
|
+
"label": "Calls partner API",
|
|
137
|
+
"technology": "HTTPS / JSON, client credentials"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "gateway--idp",
|
|
141
|
+
"sourceId": "gateway",
|
|
142
|
+
"targetId": "idp",
|
|
143
|
+
"label": "Fetches signing keys, introspects tokens",
|
|
144
|
+
"technology": "OIDC / JWKS"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "gateway--users",
|
|
148
|
+
"sourceId": "gateway",
|
|
149
|
+
"targetId": "users",
|
|
150
|
+
"label": "Routes /v1/users/**",
|
|
151
|
+
"technology": "HTTP"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "gateway--orders",
|
|
155
|
+
"sourceId": "gateway",
|
|
156
|
+
"targetId": "orders",
|
|
157
|
+
"label": "Routes /v1/orders/**",
|
|
158
|
+
"technology": "HTTP"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "gateway--catalog",
|
|
162
|
+
"sourceId": "gateway",
|
|
163
|
+
"targetId": "catalog",
|
|
164
|
+
"label": "Routes /v1/catalog/**",
|
|
165
|
+
"technology": "gRPC"
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|