Skip to content

Commit d409f83

Browse files
authored
Merge pull request #130 from objectstack-ai/copilot/load-plugins-and-start-service
2 parents c8ea288 + d91d453 commit d409f83

22 files changed

+6998
-18
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,29 @@ Stop writing boilerplate controllers.
5050

5151
ObjectOS is built as a modular Monorepo using **NestJS** and follows the **@objectstack/spec** protocol.
5252

53+
### Micro-Kernel Architecture
54+
55+
ObjectOS implements a **micro-kernel plugin architecture** where core functionality is minimal and all features are loaded as plugins:
56+
57+
```
58+
┌─────────────────────────────────────────────────────────┐
59+
│ @objectstack/runtime (Core) │
60+
│ • Plugin Lifecycle Manager (init/start/destroy) │
61+
│ • Service Registry (DI Container) │
62+
│ • Event Bus (Hook System) │
63+
│ • Dependency Resolver (Topological Sort) │
64+
└──────────────┬──────────────────────────────────────────┘
65+
66+
┌───────┴────────┬────────────┬──────────┐
67+
│ │ │ │
68+
┌────▼─────┐ ┌─────▼─────┐ ┌──▼───┐ ┌───▼────┐
69+
│ ObjectQL │ │ Driver │ │Server│ │ Custom │
70+
│ Plugin │ │ Plugin │ │Plugin│ │ Plugin │
71+
└──────────┘ └───────────┘ └──────┘ └────────┘
72+
```
73+
74+
See [@objectstack/runtime](packages/runtime) for details on the plugin system.
75+
5376
### Protocol Compliance
5477

5578
ObjectOS adheres to the [@objectstack/spec](https://github.com/objectstack-ai/spec) protocol, which defines:
@@ -62,6 +85,7 @@ This ensures interoperability across the ObjectStack ecosystem (ObjectQL, Object
6285

6386
| Package | Role | Description |
6487
| :--- | :--- | :--- |
88+
| **`@objectstack/runtime`** | **The Kernel** | Micro-kernel with plugin lifecycle and service registry. |
6589
| **`@objectos/kernel`** | **The Brain** | The core logic engine. Wraps ObjectQL, manages plugins, and handles the event bus. |
6690
| **`@objectos/server`** | **The Gateway** | NestJS application layer. Handles HTTP/WS traffic, Middlewares, and Guards. |
6791
| **`@objectos/plugin-auth`** | **Auth** | Authentication strategies (Local, OAuth2, Enterprise SSO). |

0 commit comments

Comments
 (0)