# devarajankp/mlstudio architecture

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

- Interactive diagram: https://gitdiagram.com/devarajankp/mlstudio
- Repository: https://github.com/devarajankp/mlstudio

## Overview

Malayalam Studio is a browser and Windows Malayalam word processor. Users enter text through Manglish transliteration or keyboard layouts, edit and format paginated documents, then open or save them in supported formats. The web app also offers dictionary lookup and Unicode/legacy conversion; the Windows shell adds system-wide typing. The graph covers documented capabilities, but several branches are linked only where the README or source index supports the relationship; unsampled implementation details are not inferred.

Main entry points: [`src/App.tsx`](https://github.com/devarajankp/mlstudio/blob/main/src/App.tsx) (Writer), [`src/export/files.ts`](https://github.com/devarajankp/mlstudio/blob/main/src/export/files.ts) (File Handling), [`src/components/EditorPage.tsx`](https://github.com/devarajankp/mlstudio/blob/main/src/components/EditorPage.tsx) (Editor Page), [`src/components/ConverterStudio.tsx`](https://github.com/devarajankp/mlstudio/blob/main/src/components/ConverterStudio.tsx) (Converter Studio)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_writer["Writer<br/>[App.tsx]"]
end

subgraph group_input["Typing and Conversion"]
  node_layoutkeys["Keyboard Layouts<br/>[keyboardLayouts.ts]"]
  node_translit["Manglish Transliterator"]
  node_legacy["Legacy Text Conversion<br/>[legacy.ts]"]
  node_isfoc["ISFOC Conversion<br/>[isfoc.ts]"]
  node_converter["Converter Studio"]
  node_dictionary["Dictionary Panel"]
  node_dictdata["Dictionary Lookup<br/>[dictionary.ts]"]
end

subgraph group_editing["Document Editing"]
  node_ribbon["Ribbon<br/>[Ribbon.tsx]"]
  node_editorpage["Editor Page<br/>[EditorPage.tsx]"]
  node_dialogs["Dialogs<br/>[Dialogs.tsx]"]
  node_objects["Document Objects<br/>[objects.ts]"]
  node_docmeta["Document Metadata<br/>[docmeta.ts]"]
  node_docops["Document Operations<br/>[docTools.ts]"]
end

subgraph group_output["Files and Fonts"]
  node_files["File Handling<br/>[files.ts]"]
  node_docx["DOCX Export<br/>[docx.ts]"]
  node_odt["ODT Export<br/>[odt.ts]"]
  node_pdf["PDF Export<br/>[pdf.ts]"]
  node_fonts["Font Catalog<br/>[fonts.ts]"]
  node_customfonts["Custom Fonts<br/>[customFonts.ts]"]
end

subgraph group_desktop["Windows Desktop"]
  node_desktopmain["Desktop Shell<br/>[main.js]"]
  node_engine["Typing Engine<br/>[core.ts]"]
  node_winapi["Windows Keyboard Hook<br/>[winapi.js]"]
end

node_user(("Writer"))
node_google["Google Input Tools"]

node_user -->|"uses"| node_writer
node_writer -->|"renders"| node_ribbon
node_writer -->|"renders"| node_editorpage
node_writer -->|"opens"| node_dialogs
node_writer -->|"shows"| node_converter
node_writer -->|"shows"| node_dictionary
node_writer -->|"opens files"| node_files
node_writer -->|"converts text"| node_docops
node_editorpage -->|"uses"| node_layoutkeys
node_editorpage -->|"uses"| node_translit
node_editorpage -->|"uses"| node_docops
node_editorpage -->|"frames"| node_objects
node_editorpage -->|"opens"| node_dialogs
node_converter -->|"converts"| node_isfoc
node_converter -->|"converts"| node_legacy
node_converter -->|"uses"| node_layoutkeys
node_dictionary -->|"looks up"| node_dictdata
node_dictionary -->|"uses"| node_translit
node_translit -.->|"requests suggestions"| node_google
node_legacy -->|"converts through"| node_isfoc
node_docops -->|"converts runs"| node_legacy
node_ribbon -->|"invokes save"| node_files
node_files -->|"exports"| node_docx
node_files -->|"exports"| node_odt
node_files -->|"exports"| node_pdf
node_files -->|"uses metadata"| node_docmeta
node_files -->|"uses fonts"| node_fonts
node_writer -->|"loads fonts"| node_customfonts
node_customfonts -->|"registers fonts"| node_fonts
node_desktopmain -->|"uses hook"| node_winapi
node_desktopmain -.->|"uses engine"| node_engine
node_user -->|"types system-wide"| node_desktopmain

click node_writer "https://github.com/devarajankp/mlstudio/blob/main/src/App.tsx"
click node_ribbon "https://github.com/devarajankp/mlstudio/blob/main/src/components/Ribbon.tsx"
click node_editorpage "https://github.com/devarajankp/mlstudio/blob/main/src/components/EditorPage.tsx"
click node_dialogs "https://github.com/devarajankp/mlstudio/blob/main/src/components/Dialogs.tsx"
click node_objects "https://github.com/devarajankp/mlstudio/blob/main/src/editor/objects.ts"
click node_docmeta "https://github.com/devarajankp/mlstudio/blob/main/src/lib/docmeta.ts"
click node_docops "https://github.com/devarajankp/mlstudio/blob/main/src/editor/docTools.ts"
click node_layoutkeys "https://github.com/devarajankp/mlstudio/blob/main/src/utils/keyboardLayouts.ts"
click node_translit "https://github.com/devarajankp/mlstudio/blob/main/src/utils/manglishTransliterator.ts"
click node_legacy "https://github.com/devarajankp/mlstudio/blob/main/src/lib/legacy.ts"
click node_isfoc "https://github.com/devarajankp/mlstudio/blob/main/src/lib/isfoc.ts"
click node_converter "https://github.com/devarajankp/mlstudio/blob/main/src/components/ConverterStudio.tsx"
click node_dictionary "https://github.com/devarajankp/mlstudio/blob/main/src/components/DictionaryPanel.tsx"
click node_dictdata "https://github.com/devarajankp/mlstudio/blob/main/src/lib/dictionary.ts"
click node_files "https://github.com/devarajankp/mlstudio/blob/main/src/export/files.ts"
click node_docx "https://github.com/devarajankp/mlstudio/blob/main/src/export/docx.ts"
click node_odt "https://github.com/devarajankp/mlstudio/blob/main/src/export/odt.ts"
click node_pdf "https://github.com/devarajankp/mlstudio/blob/main/src/export/pdf.ts"
click node_fonts "https://github.com/devarajankp/mlstudio/blob/main/src/lib/fonts.ts"
click node_customfonts "https://github.com/devarajankp/mlstudio/blob/main/src/lib/customFonts.ts"
click node_desktopmain "https://github.com/devarajankp/mlstudio/blob/main/desktop/main.js"
click node_engine "https://github.com/devarajankp/mlstudio/blob/main/desktop/engine/core.ts"
click node_winapi "https://github.com/devarajankp/mlstudio/blob/main/desktop/winapi.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_writer toneBlue
class node_layoutkeys,node_translit,node_legacy,node_isfoc,node_converter,node_dictionary,node_dictdata toneAmber
class node_ribbon,node_editorpage,node_dialogs,node_objects,node_docmeta,node_docops toneMint
class node_files,node_docx,node_odt,node_pdf,node_fonts,node_customfonts toneRose
class node_desktopmain,node_engine,node_winapi,node_user,node_google toneIndigo
```

## Components

### Application

- [Writer](https://github.com/devarajankp/mlstudio/blob/main/src/App.tsx): `src/App.tsx`

### Typing and Conversion

- [Keyboard Layouts](https://github.com/devarajankp/mlstudio/blob/main/src/utils/keyboardLayouts.ts): `src/utils/keyboardLayouts.ts`
- [Manglish Transliterator](https://github.com/devarajankp/mlstudio/blob/main/src/utils/manglishTransliterator.ts): `src/utils/manglishTransliterator.ts`
- [Legacy Text Conversion](https://github.com/devarajankp/mlstudio/blob/main/src/lib/legacy.ts): `src/lib/legacy.ts`
- [ISFOC Conversion](https://github.com/devarajankp/mlstudio/blob/main/src/lib/isfoc.ts): `src/lib/isfoc.ts`
- [Converter Studio](https://github.com/devarajankp/mlstudio/blob/main/src/components/ConverterStudio.tsx): `src/components/ConverterStudio.tsx`
- [Dictionary Panel](https://github.com/devarajankp/mlstudio/blob/main/src/components/DictionaryPanel.tsx): `src/components/DictionaryPanel.tsx`
- [Dictionary Lookup](https://github.com/devarajankp/mlstudio/blob/main/src/lib/dictionary.ts): `src/lib/dictionary.ts`

### Document Editing

- [Ribbon](https://github.com/devarajankp/mlstudio/blob/main/src/components/Ribbon.tsx): `src/components/Ribbon.tsx`
- [Editor Page](https://github.com/devarajankp/mlstudio/blob/main/src/components/EditorPage.tsx): `src/components/EditorPage.tsx`
- [Dialogs](https://github.com/devarajankp/mlstudio/blob/main/src/components/Dialogs.tsx): `src/components/Dialogs.tsx`
- [Document Objects](https://github.com/devarajankp/mlstudio/blob/main/src/editor/objects.ts): `src/editor/objects.ts`
- [Document Metadata](https://github.com/devarajankp/mlstudio/blob/main/src/lib/docmeta.ts): `src/lib/docmeta.ts`
- [Document Operations](https://github.com/devarajankp/mlstudio/blob/main/src/editor/docTools.ts): `src/editor/docTools.ts`

### Files and Fonts

- [File Handling](https://github.com/devarajankp/mlstudio/blob/main/src/export/files.ts): `src/export/files.ts`
- [DOCX Export](https://github.com/devarajankp/mlstudio/blob/main/src/export/docx.ts): `src/export/docx.ts`
- [ODT Export](https://github.com/devarajankp/mlstudio/blob/main/src/export/odt.ts): `src/export/odt.ts`
- [PDF Export](https://github.com/devarajankp/mlstudio/blob/main/src/export/pdf.ts): `src/export/pdf.ts`
- [Font Catalog](https://github.com/devarajankp/mlstudio/blob/main/src/lib/fonts.ts): `src/lib/fonts.ts`
- [Custom Fonts](https://github.com/devarajankp/mlstudio/blob/main/src/lib/customFonts.ts): `src/lib/customFonts.ts`

### Windows Desktop

- [Desktop Shell](https://github.com/devarajankp/mlstudio/blob/main/desktop/main.js): `desktop/main.js`
- [Typing Engine](https://github.com/devarajankp/mlstudio/blob/main/desktop/engine/core.ts): `desktop/engine/core.ts`
- [Windows Keyboard Hook](https://github.com/devarajankp/mlstudio/blob/main/desktop/winapi.js): `desktop/winapi.js`

### Other components

- **Writer**
- **Google Input Tools**

## Connections

- Writer → Writer: uses (evidence: `README.md`)
- Writer → Ribbon: renders (evidence: `src/App.tsx`)
- Writer → Editor Page: renders (evidence: `src/App.tsx`)
- Writer → Dialogs: opens (evidence: `src/App.tsx`)
- Writer → Converter Studio: shows (evidence: `src/App.tsx`)
- Writer → Dictionary Panel: shows (evidence: `src/App.tsx`)
- Writer → File Handling: opens files (evidence: `src/App.tsx`)
- Writer → Document Operations: converts text (evidence: `src/App.tsx`)
- Editor Page → Keyboard Layouts: uses (evidence: `src/components/EditorPage.tsx`)
- Editor Page → Manglish Transliterator: uses (evidence: `src/components/EditorPage.tsx`)
- Editor Page → Document Operations: uses (evidence: `src/components/EditorPage.tsx`)
- Editor Page → Document Objects: frames (evidence: `src/components/EditorPage.tsx`)
- Editor Page → Dialogs: opens (evidence: `src/components/EditorPage.tsx`)
- Converter Studio → ISFOC Conversion: converts (evidence: `src/components/ConverterStudio.tsx`)
- Converter Studio → Legacy Text Conversion: converts (evidence: `src/components/ConverterStudio.tsx`)
- Converter Studio → Keyboard Layouts: uses (evidence: `src/components/ConverterStudio.tsx`)
- Dictionary Panel → Dictionary Lookup: looks up (evidence: `src/components/DictionaryPanel.tsx`)
- Dictionary Panel → Manglish Transliterator: uses (evidence: `src/components/DictionaryPanel.tsx`)
- Manglish Transliterator → Google Input Tools: requests suggestions (evidence: `src/utils/manglishTransliterator.ts`)
- Legacy Text Conversion → ISFOC Conversion: converts through (evidence: `src/lib/legacy.ts`)
- Document Operations → Legacy Text Conversion: converts runs (evidence: `src/editor/docTools.ts`)
- Ribbon → File Handling: invokes save (evidence: `src/components/Ribbon.tsx`)
- File Handling → DOCX Export: exports (evidence: `src/export/files.ts`)
- File Handling → ODT Export: exports (evidence: `src/export/files.ts`)
- File Handling → PDF Export: exports (evidence: `src/export/files.ts`)
- File Handling → Document Metadata: uses metadata (evidence: `src/export/files.ts`)
- File Handling → Font Catalog: uses fonts (evidence: `src/export/files.ts`)
- Writer → Custom Fonts: loads fonts (evidence: `src/App.tsx`)
- Custom Fonts → Font Catalog: registers fonts (evidence: `src/lib/customFonts.ts`)
- Desktop Shell → Windows Keyboard Hook: uses hook (evidence: `desktop/main.js`)
- Desktop Shell → Typing Engine: uses engine
- Writer → Desktop Shell: types system-wide (evidence: `README.md`)
