> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 1.2 Introduction and Goals

> Understand Kcode Robot Suite's purpose, requirements, quality goals, and stakeholders.

## Kcode Robot Suite

| Information | Description |
| - | - |
| Main Goal | Compose independent robot-focused demos into one application without coupling domain code to the platform kernel. |
| Business Domain | Robot fleet operations, engagement, telepresence, and service-robot routing |
| Size | Small monorepo with one web app, five shared packages, and four plugins |
| Strategic Decision | <ul><li>Microkernel with plugins</li><li>Typed service interfaces with mock implementations</li><li>Shared design system</li></ul> |
| Technologies | <ul><li>TypeScript</li><li>Next.js 15 and React 19</li><li>pnpm workspaces</li><li>Recharts</li><li>Vitest</li></ul> |

## 1.2.1 Introduction

This document describes Kcode Robot Suite, a demo platform for robot-focused experiences. The host application in `apps/web` registers plugins from `config/plugins.ts`, shows them in a launcher, and renders each plugin's entry component on its own demo route.

The repository is a sandbox. All plugin data comes from mock services, and sign-in uses a development-only demo account.

## 1.2.2 Requirements

| ID | Requirement | Explanation |
| - | - | - |
| F1 | Provide a plugin platform | Plugins declare metadata, routes, permissions, settings, commands, and lifecycle hooks through one contract. |
| F1.1 | Validate plugin registration | The registry rejects invalid identifiers, duplicate plugins, and cross-plugin collisions. |
| F1.2 | Manage plugin lifecycle | The lifecycle manager allows only defined state transitions and serializes operations per plugin. |
| F1.3 | Isolate plugin configuration | Each plugin reads and writes only its own declared settings. |
| F2 | Host authenticated demos | A launcher lists registered plugins and opens each demo after sign-in. |
| F3 | Deliver four demos | Operational Dashboard, Kcode Engage, Talk To Me, and Where My Bot. |
| F4 | Share a visual language | Plugins use design-system primitives instead of a parallel visual language. |

> F: Functional Requirements

## 1.2.3 Architecture quality goals

Three quality goals drive the architecture decisions in this document.

| ID | Priority | Quality Goal | Description |
| - | - | - | - |
| QG-1 | 1 | Extensibility | A standard plugin is added with one package and one entry in `config/plugins.ts`, with no kernel, launcher, or existing-plugin change. |
| QG-2 | 2 | Isolation | The kernel never imports concrete plugins or domain terms. Plugins depend only on the SDK, design system, shared utilities, and services. |
| QG-3 | 3 | Replaceability | Mock implementations stay behind service interfaces so a real provider can replace them without changing plugin UI contracts. |

## 1.2.4 Stakeholders

| Role | Responsibility | Expectation |
| - | - | - |
| Plugin developer | Build a demo as a self-contained package. | A stable SDK contract and a short checklist for adding a plugin. |
| Platform maintainer | Maintain the kernel, SDK, services, and host app. | Clear package boundaries and contract tests that protect them. |
| Product owner | Decide which demos the suite shows. | A launcher that presents each demo's purpose, category, and status. |
| Demo audience | Explore the demos. | Interactive demos that run without external robot hardware. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.