# arimaone/arimark architecture

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

- Interactive diagram: https://gitdiagram.com/arimaone/arimark
- Repository: https://github.com/arimaone/arimark

## Overview

Arimark is a Vue 3 Markdown editor that turns raw Markdown into an interactive Milkdown canvas with title and tag blocks, then emits updated Markdown and metadata events. Its main flow is demonstrated by the playground: it supplies document state to the public component, which delegates editing and frontmatter conversion to the editor. The README also documents slash commands, keyboard shortcuts, read-only mode, styling, and responsive indicators. Source excerpts show the editor and serialization details; other capabilities are represented at the component level where implementation details were not sampled.

Main entry points: [`src/ArimarkEditor.vue`](https://github.com/arimaone/arimark/blob/main/src/ArimarkEditor.vue) (Crepe editor), [`playground/App.vue`](https://github.com/arimaone/arimark/blob/main/playground/App.vue) (Demo workspace), [`src/index.js`](https://github.com/arimaone/arimark/blob/main/src/index.js) (Package entry), [`src/Arimark.vue`](https://github.com/arimaone/arimark/blob/main/src/Arimark.vue) (Arimark component)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_demo["Playground"]
  node_playground["Demo workspace<br/>[App.vue]"]
end

subgraph group_api["Vue Component API"]
  node_entry["Package entry<br/>[index.js]"]
  node_component["Arimark component<br/>[Arimark.vue]"]
end

subgraph group_editing["Document Editing"]
  node_editor["Crepe editor<br/>[ArimarkEditor.vue]"]
end

subgraph group_format["Markdown Format"]
  node_frontmatter["Metadata conversion<br/>[frontmatter.js]"]
end

node_user(("Editor user"))
node_milkdown["Milkdown Crepe"]

node_user -->|"edits demo"| node_playground
node_playground -->|"imports component"| node_entry
node_entry -->|"exports"| node_component
node_component -->|"renders"| node_editor
node_editor -->|"configures editor"| node_milkdown
node_editor -->|"converts metadata"| node_frontmatter

click node_playground "https://github.com/arimaone/arimark/blob/main/playground/App.vue"
click node_entry "https://github.com/arimaone/arimark/blob/main/src/index.js"
click node_component "https://github.com/arimaone/arimark/blob/main/src/Arimark.vue"
click node_editor "https://github.com/arimaone/arimark/blob/main/src/ArimarkEditor.vue"
click node_frontmatter "https://github.com/arimaone/arimark/blob/main/src/frontmatter.js"

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_playground,node_user toneBlue
class node_entry,node_component toneAmber
class node_editor toneMint
class node_frontmatter toneRose
class node_milkdown toneIndigo
```

## Components

### Playground

- [Demo workspace](https://github.com/arimaone/arimark/blob/main/playground/App.vue): `playground/App.vue`

### Vue Component API

- [Package entry](https://github.com/arimaone/arimark/blob/main/src/index.js): `src/index.js`
- [Arimark component](https://github.com/arimaone/arimark/blob/main/src/Arimark.vue): `src/Arimark.vue`

### Document Editing

- [Crepe editor](https://github.com/arimaone/arimark/blob/main/src/ArimarkEditor.vue): `src/ArimarkEditor.vue`

### Markdown Format

- [Metadata conversion](https://github.com/arimaone/arimark/blob/main/src/frontmatter.js): `src/frontmatter.js`

### Other components

- **Editor user**
- **Milkdown Crepe**

## Connections

- Editor user → Demo workspace: edits demo (evidence: `playground/App.vue`)
- Demo workspace → Package entry: imports component (evidence: `playground/App.vue`)
- Package entry → Arimark component: exports (evidence: `src/index.js`)
- Arimark component → Crepe editor: renders (evidence: `src/Arimark.vue`)
- Crepe editor → Milkdown Crepe: configures editor (evidence: `src/ArimarkEditor.vue`)
- Crepe editor → Metadata conversion: converts metadata (evidence: `src/ArimarkEditor.vue`)
