# Local app architecture

Target runtime:

```text
browser / local harness -> detour app container -> /data/detour.sqlite
```

MVP container contract:

- bind to `127.0.0.1:3787`
- persist user data under `/data`
- start without environment variables
- use SQLite for local storage
- export bundles as Markdown and JSON
- expose a local MCP endpoint for harnesses
- keep SQL, file, and test capabilities opt-in and narrowly scoped
- require no external service for normal use

Temporary hosted share links are a later, account-based feature for selected
export snapshots. Local URLs do not share a developer's live container.

Canonical source: `docs/local-app-architecture.md`.
