DenView
A real-time multi-agent office visualizer. Run a task with multiple AI agents and watch them work in an animated office — each agent is a fox character at their own desk, switching between screens and idle activities as their status changes.
Table of Contents
Overview
DenView has three parts:
- Python SDK — instrument your agent code with a few async calls to report task and work state.
- FastAPI server — stores tasks, agents, and work items; serves a state API for the frontend.
- Next.js UI — admin dashboard (tasks, API keys) and an embeddable office view per task.
Each task gets a shareable iframe URL (/view/<task_id>?token=<view_token>) that can be embedded anywhere without authentication.
Architecture
your agent code
|
| Python SDK (httpx, async)
v
FastAPI server <--> SQLite (SQLModel)
|
| proxied via Next.js route handlers
v
Next.js UI
|- /login, /register
|- /dashboard
|- /tasks (table + embedded office view)
|- /api-keys
|- /view/[task_id] (embeddable, no auth — view token only)
Auth model
- Admin UI: JWT in httpOnly cookie (
/login) - SDK calls:
X-API-Keyheader - Embedded view:
?token=<view_token>query param (per-task, read-only)
Office view
- Polls
/tasks/<id>/stateevery 3 seconds - Each agent has a randomized screen (code, chat, charts, files, terminal, kanban, ...) that rotates every 3–6 seconds while working
- Idle agents cycle through short animations (sleep, stretch, doodle, ...) every 1–2 seconds
- Agents going away (coffee, sofa, window) fade out of their desk
Installation
From PyPI (recommended)
Requirements: Python 3.11+
pip install denview
denview serve --port 8000
On first boot the server creates an admin user with password admin. Change it immediately.
The UI is bundled separately. Run it via Docker (recommended) or clone the repo and run pnpm dev.
Docker (quickstart)
docker compose up
Backend on http://localhost:8004, frontend on http://localhost:3009.
From source
Requirements: Python 3.11+, Node.js 22+, pnpm
git clone https://github.com/your-org/denview
cd denview
# backend
uv sync
denview serve --port 8000
# frontend (separate terminal)
cd ui
pnpm install
pnpm dev
Set the backend URL in ui/.env.local:
BACKEND_URL=http://localhost:8000
Usage
1. Create an API key
Log in at http://localhost:3009, go to API Keys, and create a key.
2. Instrument your agents
pip install denview
from denview.sdk import DenView
dv = DenView(
api_key="your-api-key",
backend_url="http://localhost:8004",
frontend_url="http://localhost:3009",
)
task = await dv.start_task(
name="My Task",
description="Optional description",
agents=[
{"name": "Alice", "role": "Researcher", "color": "#d95f12"},
{"name": "Bob", "role": "Coder", "color": "#3b82f6"},
],
)
print(task.embed_url) # shareable iframe URL
agent = await task.agent(name="Alice")
# set a markdown note — visible when clicking the agent in the office view
await agent.set_note("""
## Alice — Researcher
Scanning papers and summarizing findings.
- 12 papers in queue
- Flagging contradictions
""")
async with agent.working("refactoring auth module"):
await do_work() # marks work failed automatically on exception
await task.finish()
await dv.aclose()
3. Resume an existing task
task = await dv.get_task(task_id=42)
print(task.embed_url)
print(task.data.status)
4. Embed the office view
<iframe src="<task.embed_url>" width="100%" height="500"></iframe>
The embed URL works without login — authenticated by the per-task view_token.
CLI reference
denview serve [--host HOST] [--port PORT] [--reload]
| flag | default | description |
|---|---|---|
--host |
0.0.0.0 |
bind address |
--port |
8000 |
port |
--reload |
false |
auto-reload on file change (dev only) |
Metadata
Release files for denview 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| denview-0.1.2.tar.gz | 61.7 kB | Without provenance | Details for denview-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| denview-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for denview-0.1.2-py3-none-any.whl |
Total release size: 86.4 kB
Release files / denview-0.1.2.tar.gz
| Download URL | denview-0.1.2.tar.gz |
|---|---|
| Size | 61.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
882197e2d25f04c8ee97a662e0965f55923c3d86728d236dfcc033b6e3468a5a
|
|
BLAKE2b-256 checksum How to use checksums |
900ccd4bd12bcd3fa5eb02702322ea48ec09bcef61c15ba72c55468f0c38e0e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.10
|
Release files / denview-0.1.2-py3-none-any.whl
| Download URL | denview-0.1.2-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dbfbb336794d649d95e1625dff0cd3741a93d8d6850e108be840bb59c5bc48a
|
|
BLAKE2b-256 checksum How to use checksums |
c4d048fce21328300fef1a8d446b85682dfa85f662ce7360bab01fe085e4ed4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.10
|
Security for denview 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.