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

# Overview

## Packages

| Package                  | Description                                               |
| ------------------------ | --------------------------------------------------------- |
| `@zenbujs/core/runtime`  | Service base class and runtime.                           |
| `@zenbujs/core/services` | Built-in core services (Window, DB, RPC, HTTP, etc).      |
| `@zenbujs/core/config`   | `defineConfig`, `definePlugin`, `defineBuildConfig`.      |
| `@zenbujs/core/db`       | Database schema authoring (`createSchema`, `collection`). |
| `@zenbujs/core/advice`   | Advice types and helpers.                                 |
| `@zenbujs/core/react`    | React hooks for the renderer.                             |
| `create-zenbu-app`       | CLI scaffolding tool.                                     |

## Runtime

```typescript theme={null}
import { Service } from "@zenbujs/core/runtime"
```

## Config

```typescript theme={null}
import {
  defineConfig,
  definePlugin,
  defineBuildConfig,
} from "@zenbujs/core/config"
```

## Database

```typescript theme={null}
import { createSchema } from "@zenbujs/core/db"
import { z } from "zod"
```

## React hooks

```typescript theme={null}
import {
  useDb,
  useDbClient,
  useCollection,
  useRpc,
  useEvents,
  useViewArgs,
} from "@zenbujs/core/react"
```

## CLI

```bash theme={null}
# Create a new app
npx create-zenbu-app

# Dev server with hot reload
pnpm run dev

# Regenerate types
pnpm run link

# Generate a database migration
pnpm run db:generate

# Build for production
pnpm run build:source
pnpm run build:electron
```
