# cmetanka1337/app-intents-demo architecture

> Architecture diagram of the GitHub repository cmetanka1337/app-intents-demo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cmetanka1337/app-intents-demo
- Repository: https://github.com/cmetanka1337/app-intents-demo

## Overview

This is a SwiftUI task-and-project planner with a primary in-app workflow for browsing Today, projects, and search results, then viewing or editing task details. App Intents extend that workflow to Siri and Shortcuts for finding, creating, completing, postponing, summarizing, and opening planner data, with interactive result snippets. The app’s store abstraction is backed by SwiftData. Source excerpts and the index establish the main UI, persistence, search, entity, and navigation relationships; several intent and feature implementations are unsampled, so those links are shown only where indexed references support them or marked unverified.

Main entry points: [`app-intents-demo/Intents/Actions`](https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Intents/Actions) (Intent actions), [`app-intents-demo/ContentView.swift`](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/ContentView.swift) (Planner tabs), [`app-intents-demo/Data/SwiftDataPlannerStore.swift`](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Data/SwiftDataPlannerStore.swift) (SwiftData store), [`app-intents-demo/Features/Search/SearchView.swift`](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Features/Search/SearchView.swift) (Search feature)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Planner UI"]
  node_app["App composition<br/>[AppRootView.swift]"]
  node_tabs["Planner tabs<br/>[ContentView.swift]"]
  node_today["Today feature"]
  node_projects["Projects feature"]
  node_search["Search feature<br/>[SearchView.swift]"]
  node_taskdetail["Task editing"]
end

subgraph group_domain["Planner Data"]
  node_storeapi["Planner store API<br/>[PlannerStore.swift]"]
  node_swiftdata["SwiftData store"]
  node_models[("Task and project models")]
  node_domainrules["Filters and drafts"]
end

subgraph group_intents["App Intents"]
  node_appintents["Intent actions"]
  node_entities["Intent entities<br/>[TaskEntity.swift]"]
  node_queries["Entity queries"]
  node_intentservice["Intent store access"]
  node_snippets["Result snippets"]
  node_shortcuts["Planner shortcuts"]
  node_spotlight["Spotlight indexing"]
end

subgraph group_navigation["Navigation"]
  node_router["Route state"]
  node_navbridge["Intent navigation bridge"]
end

node_user(("Planner user"))
node_siri(("Siri and Shortcuts"))

node_user -->|"uses"| node_app
node_app -->|"hosts"| node_tabs
node_tabs -->|"shows"| node_today
node_tabs -->|"shows"| node_projects
node_tabs -->|"shows"| node_search
node_tabs -->|"routes to"| node_taskdetail
node_search -->|"searches"| node_storeapi
node_search -->|"reads query"| node_router
node_taskdetail -->|"edits tasks"| node_storeapi
node_storeapi -->|"implemented by"| node_swiftdata
node_swiftdata -->|"reads and writes"| node_models
node_swiftdata -->|"applies filters"| node_domainrules
node_siri -->|"invokes"| node_appintents
node_appintents -.->|"accesses planner"| node_intentservice
node_appintents -->|"returns entities"| node_entities
node_entities -->|"queries through"| node_queries
node_queries -->|"uses store access"| node_intentservice
node_intentservice -->|"creates store"| node_swiftdata
node_appintents -->|"presents results"| node_snippets
node_snippets -->|"offers actions"| node_appintents
node_siri -.->|"runs shortcuts"| node_shortcuts
node_appintents -.->|"indexes tasks"| node_spotlight
node_appintents -.->|"requests navigation"| node_navbridge
node_navbridge -->|"routes in app"| node_router
node_router -->|"selects destination"| node_tabs

click node_app "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/App/AppRootView.swift"
click node_tabs "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/ContentView.swift"
click node_today "https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Features/Today"
click node_projects "https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Features/Projects"
click node_search "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Features/Search/SearchView.swift"
click node_taskdetail "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/SharedUI/TaskEditorView.swift"
click node_storeapi "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Data/PlannerStore.swift"
click node_swiftdata "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Data/SwiftDataPlannerStore.swift"
click node_models "https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Models"
click node_domainrules "https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Domain"
click node_appintents "https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Intents/Actions"
click node_entities "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Entities/TaskEntity.swift"
click node_queries "https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Intents/Queries"
click node_intentservice "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Services/IntentPlannerService.swift"
click node_snippets "https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Intents/Snippets"
click node_shortcuts "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Shortcuts/PlannerShortcuts.swift"
click node_spotlight "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Services/SpotlightTaskIndexer.swift"
click node_router "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Navigation/PlannerRouter.swift"
click node_navbridge "https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Services/IntentNavigationBridge.swift"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_tabs,node_today,node_projects,node_search,node_taskdetail,node_user toneBlue
class node_storeapi,node_swiftdata,node_models,node_domainrules toneAmber
class node_appintents,node_entities,node_queries,node_intentservice,node_snippets,node_shortcuts,node_spotlight toneMint
class node_router,node_navbridge toneRose
class node_siri toneIndigo
```

## Components

### Planner UI

- [App composition](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/App/AppRootView.swift): `app-intents-demo/App/AppRootView.swift`
- [Planner tabs](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/ContentView.swift): `app-intents-demo/ContentView.swift`
- [Today feature](https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Features/Today): `app-intents-demo/Features/Today`
- [Projects feature](https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Features/Projects): `app-intents-demo/Features/Projects`
- [Search feature](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Features/Search/SearchView.swift): `app-intents-demo/Features/Search/SearchView.swift`
- [Task editing](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/SharedUI/TaskEditorView.swift): `app-intents-demo/SharedUI/TaskEditorView.swift`

### Planner Data

- [Planner store API](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Data/PlannerStore.swift): `app-intents-demo/Data/PlannerStore.swift`
- [SwiftData store](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Data/SwiftDataPlannerStore.swift): `app-intents-demo/Data/SwiftDataPlannerStore.swift`
- [Task and project models](https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Models): `app-intents-demo/Models`
- [Filters and drafts](https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Domain): `app-intents-demo/Domain`

### App Intents

- [Intent actions](https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Intents/Actions): `app-intents-demo/Intents/Actions`
- [Intent entities](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Entities/TaskEntity.swift): `app-intents-demo/Intents/Entities/TaskEntity.swift`
- [Entity queries](https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Intents/Queries): `app-intents-demo/Intents/Queries`
- [Intent store access](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Services/IntentPlannerService.swift): `app-intents-demo/Intents/Services/IntentPlannerService.swift`
- [Result snippets](https://github.com/cmetanka1337/app-intents-demo/tree/main/app-intents-demo/Intents/Snippets): `app-intents-demo/Intents/Snippets`
- [Planner shortcuts](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Shortcuts/PlannerShortcuts.swift): `app-intents-demo/Intents/Shortcuts/PlannerShortcuts.swift`
- [Spotlight indexing](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Services/SpotlightTaskIndexer.swift): `app-intents-demo/Intents/Services/SpotlightTaskIndexer.swift`

### Navigation

- [Route state](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Navigation/PlannerRouter.swift): `app-intents-demo/Navigation/PlannerRouter.swift`
- [Intent navigation bridge](https://github.com/cmetanka1337/app-intents-demo/blob/main/app-intents-demo/Intents/Services/IntentNavigationBridge.swift): `app-intents-demo/Intents/Services/IntentNavigationBridge.swift`

### Other components

- **Planner user**
- **Siri and Shortcuts**

## Connections

- Planner user → App composition: uses
- App composition → Planner tabs: hosts (evidence: `app-intents-demo/App/AppRootView.swift`)
- Planner tabs → Today feature: shows (evidence: `app-intents-demo/ContentView.swift`)
- Planner tabs → Projects feature: shows (evidence: `app-intents-demo/ContentView.swift`)
- Planner tabs → Search feature: shows (evidence: `app-intents-demo/ContentView.swift`)
- Planner tabs → Task editing: routes to (evidence: `app-intents-demo/ContentView.swift`)
- Search feature → Planner store API: searches (evidence: `app-intents-demo/Features/Search/SearchView.swift`)
- Search feature → Route state: reads query (evidence: `app-intents-demo/Features/Search/SearchView.swift`)
- Task editing → Planner store API: edits tasks (evidence: `app-intents-demo/SharedUI/TaskEditorView.swift`)
- Planner store API → SwiftData store: implemented by (evidence: `app-intents-demo/App/AppDependencies.swift`)
- SwiftData store → Task and project models: reads and writes (evidence: `app-intents-demo/Data/SwiftDataPlannerStore.swift`)
- SwiftData store → Filters and drafts: applies filters (evidence: `app-intents-demo/Data/SwiftDataPlannerStore.swift`)
- Siri and Shortcuts → Intent actions: invokes (evidence: `app-intents-demo/Intents/Actions/FindTasksIntent.swift`)
- Intent actions → Intent store access: accesses planner (evidence: `app-intents-demo/Intents/Actions/ShowTodayTasksIntent.swift`)
- Intent actions → Intent entities: returns entities (evidence: `app-intents-demo/Intents/Actions/FindTasksIntent.swift`)
- Intent entities → Entity queries: queries through (evidence: `app-intents-demo/Intents/Entities/TaskEntity.swift`)
- Entity queries → Intent store access: uses store access (evidence: `app-intents-demo/Intents/Queries/TaskQuery.swift`)
- Intent store access → SwiftData store: creates store (evidence: `app-intents-demo/Intents/Services/IntentPlannerService.swift`)
- Intent actions → Result snippets: presents results (evidence: `app-intents-demo/Intents/Actions/FindTasksIntent.swift`)
- Result snippets → Intent actions: offers actions (evidence: `app-intents-demo/Intents/Snippets/FindTasksSnippetView.swift`)
- Siri and Shortcuts → Planner shortcuts: runs shortcuts
- Intent actions → Spotlight indexing: indexes tasks
- Intent actions → Intent navigation bridge: requests navigation
- Intent navigation bridge → Route state: routes in app (evidence: `app-intents-demo/ContentView.swift`)
- Route state → Planner tabs: selects destination (evidence: `app-intents-demo/ContentView.swift`)
