1.5.1 Strategy summary
| Quality goal | Strategy | Where to read more |
|---|---|---|
| Extensibility | A stable plugin contract (KcodePlugin) and a single composition point, config/plugins.ts. | Plugin contract |
| Isolation | A domain-agnostic kernel that never imports plugins. Package boundaries enforce the direction of dependencies. | Building block view |
| Replaceability | Typed service interfaces with mock implementations behind them. | Crosscutting concepts |
1.5.2 Key decisions
1.5.3 Organization of the code
| Path | Responsibility |
|---|---|
apps/web | Next.js host and composition root. |
packages/plugin-sdk | Stable contracts a plugin consumes. |
packages/kernel | Registry, lifecycle, permissions, events, and configuration. |
packages/design-system | Shared visual primitives, patterns, and charts. |
packages/services | Replaceable platform services such as demo authentication, logging, and notifications. |
packages/shared | Small utilities such as isNonEmptyString and immutableCopy. |
plugins/* | One self-contained demo per directory. |
config/plugins.ts | The list of registered plugins. |
