# djcass44/jmp architecture

> Architecture diagram of the GitHub repository djcass44/jmp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/djcass44/jmp
- Repository: https://github.com/djcass44/jmp

## Overview

JMP is a browser-navigation API for managing named jump points and resolving a typed query to a saved address. The main workflow is a browser request to the jump API, which searches the user-visible jump set and returns a destination or similar matches; successful jumps are recorded. Separate capabilities cover jump and group administration, metadata and icons, user/group visibility, and WebSocket updates. The README establishes the browser workflow; sampled controller and repository excerpts show some calls. Unsampled subsystem links are omitted or marked unverified.

Main entry points: [`src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt`](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt) (Jump API), [`src/main/kotlin/dev/castive/jmp/repo/JumpRepoCustomImpl.kt`](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/JumpRepoCustomImpl.kt) (Visible jump lookup), [`src/main/kotlin/dev/castive/jmp/tasks/GroupsTask.kt`](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/tasks/GroupsTask.kt) (Group refresh task), [`src/main/kotlin/dev/castive/jmp/service/OwnerService.kt`](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/OwnerService.kt) (Jump ownership)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API workflows"]
  node_jump_api["Jump API<br/>[JumpControl.kt]"]
  node_group_api["Group API<br/>[GroupControl.kt]"]
  node_user_api["User API<br/>[UserControl.kt]"]
  node_similar_api["Similar API<br/>[SimilarControl.kt]"]
  node_provider_api["Provider API<br/>[ProviderControl.kt]"]
end

subgraph group_jumps["Jump domain"]
  node_jump_search["Jump search<br/>[SearchService.kt]"]
  node_similarity["Similarity matching"]
  node_jump_access["Visible jump lookup"]
  node_jump_repo[("Jump records<br/>[JumpRepo.kt]")]
  node_alias_repo[("Jump aliases<br/>[AliasRepo.kt]")]
  node_jump_entity["Jump model<br/>[Jump.kt]"]
  node_alias_entity["Alias model<br/>[Alias.kt]"]
  node_jump_dto["Jump response<br/>[JumpDTO.kt]"]
  node_event_repo[("Jump events<br/>[JumpEventRepo.kt]")]
  node_event_api["Event API"]
end

subgraph group_groups["Groups and users"]
  node_group_repo[("Group queries")]
  node_user_repo[("User queries")]
  node_groups_task["Group refresh task<br/>[GroupsTask.kt]"]
  node_owner_service["Jump ownership<br/>[OwnerService.kt]"]
end

subgraph group_realtime["Metadata and updates"]
  node_metadata_api["Metadata API<br/>[MetadataControl.kt]"]
  node_metadata_service["Metadata service<br/>[MetadataService.kt]"]
  node_metadata_props["Metadata settings"]
  node_socket["WebSocket updates<br/>[SocketHandler.kt]"]
  node_fsa["Socket message format<br/>[FSA.kt]"]
end

node_browser(("Browser user"))

node_browser -->|"queries"| node_jump_api
node_jump_api -->|"searches"| node_jump_search
node_jump_search -.->|"retrieves matches"| node_jump_access
node_jump_access -->|"queries jumps"| node_jump_repo
node_jump_access -->|"reads aliases"| node_alias_repo
node_jump_access -->|"matches terms"| node_similarity
node_jump_api -->|"records successful jumps"| node_event_repo
node_jump_api -->|"updates title and icon"| node_metadata_service
node_jump_api -->|"formats jump"| node_owner_service
node_owner_service -->|"loads aliases"| node_alias_repo
node_owner_service -->|"reads icon settings"| node_metadata_props
node_jump_api -->|"broadcasts changes"| node_socket
node_group_api -->|"refreshes membership"| node_groups_task
node_group_api -->|"broadcasts changes"| node_socket
node_groups_task -->|"loads and saves groups"| node_group_repo
node_groups_task -->|"loads users"| node_user_repo
node_socket -->|"sends messages"| node_fsa
node_metadata_api -.->|"delegates metadata"| node_metadata_service
node_similar_api -.->|"requests matches"| node_similarity
node_event_api -.->|"reads events"| node_event_repo
node_user_api -.->|"uses user data"| node_user_repo
node_provider_api -.->|"uses providers"| node_user_repo

click node_jump_api "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt"
click node_group_api "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/GroupControl.kt"
click node_user_api "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/UserControl.kt"
click node_similar_api "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/SimilarControl.kt"
click node_provider_api "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/ProviderControl.kt"
click node_jump_search "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/SearchService.kt"
click node_similarity "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/SimilarityService.kt"
click node_jump_access "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/JumpRepoCustomImpl.kt"
click node_jump_repo "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/JumpRepo.kt"
click node_alias_repo "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/AliasRepo.kt"
click node_jump_entity "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/entity/Jump.kt"
click node_alias_entity "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/entity/Alias.kt"
click node_jump_dto "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/data/dto/JumpDTO.kt"
click node_event_repo "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/JumpEventRepo.kt"
click node_event_api "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/JumpEventControl.kt"
click node_group_repo "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/GroupRepoCustomImpl.kt"
click node_user_repo "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/UserRepoCustomImpl.kt"
click node_groups_task "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/tasks/GroupsTask.kt"
click node_owner_service "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/OwnerService.kt"
click node_metadata_api "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/MetadataControl.kt"
click node_metadata_service "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/MetadataService.kt"
click node_metadata_props "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/prop/AppMetadataProps.kt"
click node_socket "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/component/SocketHandler.kt"
click node_fsa "https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/data/FSA.kt"

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_jump_api,node_group_api,node_user_api,node_similar_api,node_provider_api,node_browser toneBlue
class node_jump_search,node_similarity,node_jump_access,node_jump_repo,node_alias_repo,node_jump_entity,node_alias_entity,node_jump_dto,node_event_repo,node_event_api toneAmber
class node_group_repo,node_user_repo,node_groups_task,node_owner_service toneMint
class node_metadata_api,node_metadata_service,node_metadata_props,node_socket,node_fsa toneRose
```

## Components

### API workflows

- [Jump API](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt): `src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt`
- [Group API](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/GroupControl.kt): `src/main/kotlin/dev/castive/jmp/rest/GroupControl.kt`
- [User API](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/UserControl.kt): `src/main/kotlin/dev/castive/jmp/rest/UserControl.kt`
- [Similar API](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/SimilarControl.kt): `src/main/kotlin/dev/castive/jmp/rest/SimilarControl.kt`
- [Provider API](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/ProviderControl.kt): `src/main/kotlin/dev/castive/jmp/rest/ProviderControl.kt`

### Jump domain

- [Jump search](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/SearchService.kt): `src/main/kotlin/dev/castive/jmp/service/SearchService.kt`
- [Similarity matching](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/SimilarityService.kt): `src/main/kotlin/dev/castive/jmp/service/SimilarityService.kt`
- [Visible jump lookup](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/JumpRepoCustomImpl.kt): `src/main/kotlin/dev/castive/jmp/repo/JumpRepoCustomImpl.kt`
- [Jump records](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/JumpRepo.kt): `src/main/kotlin/dev/castive/jmp/repo/JumpRepo.kt`
- [Jump aliases](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/AliasRepo.kt): `src/main/kotlin/dev/castive/jmp/repo/AliasRepo.kt`
- [Jump model](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/entity/Jump.kt): `src/main/kotlin/dev/castive/jmp/entity/Jump.kt`
- [Alias model](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/entity/Alias.kt): `src/main/kotlin/dev/castive/jmp/entity/Alias.kt`
- [Jump response](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/data/dto/JumpDTO.kt): `src/main/kotlin/dev/castive/jmp/data/dto/JumpDTO.kt`
- [Jump events](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/JumpEventRepo.kt): `src/main/kotlin/dev/castive/jmp/repo/JumpEventRepo.kt`
- [Event API](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/JumpEventControl.kt): `src/main/kotlin/dev/castive/jmp/rest/JumpEventControl.kt`

### Groups and users

- [Group queries](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/GroupRepoCustomImpl.kt): `src/main/kotlin/dev/castive/jmp/repo/GroupRepoCustomImpl.kt`
- [User queries](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/repo/UserRepoCustomImpl.kt): `src/main/kotlin/dev/castive/jmp/repo/UserRepoCustomImpl.kt`
- [Group refresh task](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/tasks/GroupsTask.kt): `src/main/kotlin/dev/castive/jmp/tasks/GroupsTask.kt`
- [Jump ownership](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/OwnerService.kt): `src/main/kotlin/dev/castive/jmp/service/OwnerService.kt`

### Metadata and updates

- [Metadata API](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/rest/MetadataControl.kt): `src/main/kotlin/dev/castive/jmp/rest/MetadataControl.kt`
- [Metadata service](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/service/MetadataService.kt): `src/main/kotlin/dev/castive/jmp/service/MetadataService.kt`
- [Metadata settings](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/prop/AppMetadataProps.kt): `src/main/kotlin/dev/castive/jmp/prop/AppMetadataProps.kt`
- [WebSocket updates](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/component/SocketHandler.kt): `src/main/kotlin/dev/castive/jmp/component/SocketHandler.kt`
- [Socket message format](https://github.com/djcass44/jmp/blob/master/src/main/kotlin/dev/castive/jmp/data/FSA.kt): `src/main/kotlin/dev/castive/jmp/data/FSA.kt`

### Other components

- **Browser user**

## Connections

- Browser user → Jump API: queries
- Jump API → Jump search: searches (evidence: `src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt`)
- Jump search → Visible jump lookup: retrieves matches
- Visible jump lookup → Jump records: queries jumps (evidence: `src/main/kotlin/dev/castive/jmp/repo/JumpRepoCustomImpl.kt`)
- Visible jump lookup → Jump aliases: reads aliases (evidence: `src/main/kotlin/dev/castive/jmp/repo/JumpRepoCustomImpl.kt`)
- Visible jump lookup → Similarity matching: matches terms (evidence: `src/main/kotlin/dev/castive/jmp/repo/JumpRepoCustomImpl.kt`)
- Jump API → Jump events: records successful jumps (evidence: `src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt`)
- Jump API → Metadata service: updates title and icon (evidence: `src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt`)
- Jump API → Jump ownership: formats jump (evidence: `src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt`)
- Jump ownership → Jump aliases: loads aliases (evidence: `src/main/kotlin/dev/castive/jmp/service/OwnerService.kt`)
- Jump ownership → Metadata settings: reads icon settings (evidence: `src/main/kotlin/dev/castive/jmp/service/OwnerService.kt`)
- Jump API → WebSocket updates: broadcasts changes (evidence: `src/main/kotlin/dev/castive/jmp/rest/JumpControl.kt`)
- Group API → Group refresh task: refreshes membership (evidence: `src/main/kotlin/dev/castive/jmp/rest/GroupControl.kt`)
- Group API → WebSocket updates: broadcasts changes (evidence: `src/main/kotlin/dev/castive/jmp/rest/GroupControl.kt`)
- Group refresh task → Group queries: loads and saves groups (evidence: `src/main/kotlin/dev/castive/jmp/tasks/GroupsTask.kt`)
- Group refresh task → User queries: loads users (evidence: `src/main/kotlin/dev/castive/jmp/tasks/GroupsTask.kt`)
- WebSocket updates → Socket message format: sends messages (evidence: `src/main/kotlin/dev/castive/jmp/component/SocketHandler.kt`)
- Metadata API → Metadata service: delegates metadata
- Similar API → Similarity matching: requests matches
- Event API → Jump events: reads events
- User API → User queries: uses user data
- Provider API → User queries: uses providers
