Metadata-Version: 2.4
Name: craft-dashboard
Version: 0.2.0
Summary: Dashboard, insights, and issue triage for *craft applications and libraries.
Author-email: Callahan Kovacs <callahan.kovacs@canonical.com>
License-Expression: LGPL-3.0-only
Project-URL: Homepage, https://craft-dashboard.name
Project-URL: Repository, https://github.com/mr-cal/craft-dashboard
Project-URL: Issues, https://github.com/mr-cal/craft-dashboard/issues
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.115
Requires-Dist: uvicorn[standard]>=0.34
Requires-Dist: gunicorn>=23.0
Requires-Dist: sqlalchemy[asyncio]<2.1,>=2.0
Requires-Dist: asyncpg>=0.30
Requires-Dist: alembic>=1.14
Requires-Dist: pydantic>=2.8
Requires-Dist: pydantic-settings>=2.6
Requires-Dist: jinja2>=3.1
Requires-Dist: httpx>=0.28
Requires-Dist: tenacity>=0.29
Requires-Dist: pygithub>=2.3
Requires-Dist: launchpadlib>=2.0
Requires-Dist: click>=8.1
Requires-Dist: python-multipart>=0.0.18
Requires-Dist: slowapi>=0.1.9
Requires-Dist: pgvector>=0.3
Requires-Dist: rich>=13.0
Requires-Dist: packaging>=23.0
Dynamic: license-file

# craft-dashboard

**[craft-dashboard.name](https://craft-dashboard.name)** is a unified dashboard for
tracking work across Canonical's Starcraft tools (Snapcraft, Charmcraft, Rockcraft, and
core libraries).

Maintainers use it to monitor project health, catch aging pull requests, and flag
projects overdue for release. It runs LLM evaluations over incoming issues and PRs to
help prioritize triage, and tracks community engagement on Discourse.


## Local development

```bash
make setup
cp .env.example .env
podman compose up --build
```

The local app listens at `http://localhost:8000/`.

Useful targets:

```bash
make format
make lint
make test
```

## Local evaluations

To evaluate issues and PRs:

```bash
uvx --env-file .env craft-dashboard eval status
uvx --env-file .env craft-dashboard eval run --llm-backend local --concurrency 5
```

Minimum `.env` values:

```bash
DASHBOARD_URL=https://craft-dashboard.name

# ask @mr-cal for a token
EVAL_API_TOKEN=<token>

# Local OpenAI-compatible server:
LLM_BASE_URL=http://localhost:11434/v1
LLM_API_KEY=none
LLM_MODEL=qwen2.5:72b

# Or OpenRouter:
# LLM_BASE_URL=https://openrouter.ai/api/v1
# LLM_API_KEY=sk-or-v1-...
# LLM_MODEL=qwen/qwen3.8-27b

# LLM & worker tuning
# LLM_TIMEOUT=600.0
# LLM_CA_CERT=path/to/cert.pem
# CRAFT_DASHBOARD_MIRROR_DIR=~/.cache/craft-dashboard/mirrors
# CRAFT_DASHBOARD_GIT_CONCURRENCY=2
```

Requires a mid-tier model with reasonable coding and reasoning capabilities. Lightweight
models (e.g. 'lite', 'mini', 'nano', and 'haiku') produce poor and misleading evaluations.

Example models that produce good evaluations include Claude Sonnet 4+, Qwen 3.6+,
Deepseek v4 Pro, GPT 5.5+, and Gemini 3.8+ Flash.


## Documentation

* [Development](docs/development.md)
* [Operations](docs/operations.md)
* [Reference](docs/reference.md)
* [Architecture](docs/architecture.md)
