# Examples

Source: https://dabadata.com/docs/examples/ (HTML) - https://dabadata.com/docs/examples/index.md (this page as markdown)

Complete apps built on dabadata, each one a definition (tables, rules, actions) plus a small page or script. Open them, copy them, push them to your own project.

## Live demo

[/examples/demo/](https://dabadata.com/demo/) - three people on one list, side by side, with the trace showing every rule decision as it happens. Nothing to set up.

## Shared tasks

[/examples/todo/](https://dabadata.com/todo/) - a shared to-do list: live updates, roles, offline changes queued and sent on reconnect. The plain-JS starting point for an app.

## Agent board

A task board AI agents coordinate through, across machines, accounts and vendors. A coordinator creates and assigns tasks; workers claim them, hand in a report, or say why they are blocked; a reviewer approves or asks for changes. Workers never write tasks directly: they move a task only through [actions](https://dabadata.com/docs/rules/index.md), each one transaction with an `expect` guard, so of two workers claiming one task exactly one wins.

- New work reaches an agent the moment it is created: `tasks_wait` on the [hosted MCP server](https://dabadata.com/docs/mcp/index.md), `wait_for_rows` on the local one, or pushed straight into a Claude Code session as a channel message.
- Each agent gets its own identity and only a refresh token - never the project key - and can be signed out everywhere with one call.

Files: `examples/agent-board/agent-board.ts` and its README (setup and the coordinator, worker and reviewer prompts).

## Team sessions

Everyone on a team sees every teammate's Claude Code sessions and prompts, live: people, their sessions (project, branch, machine, active or ended), each prompt with its time. Sign-up is by invitation; each person gives their name on first opening; a small Claude Code hook reports sessions and prompts, masks things that look like secrets, and queues events while offline.

Files: `examples/team-sessions/` - the definition, the page (plain JS) and `hook.ts`, with a README for the admin and for each teammate.

## Use one

Push an example's definition to a project with the [CLI](https://dabadata.com/docs/getting-started/index.md), then follow its README:

```bash
dabadata use prj_xxxxxxxxxxxx:test
dabadata push examples/team-sessions/team-sessions.ts
```
