# 738/inko architecture

> Architecture diagram of the GitHub repository 738/inko, 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/738/inko
- Repository: https://github.com/738/inko

## Overview

Inko.js is a small JavaScript library for converting between English keystrokes and Korean text using the standard two-set keyboard layout. A caller creates an Inko instance, optionally configures double-consonant behavior, and calls either conversion method; the methods preserve non-Korean text. The excerpt shows the conversion helpers used internally. Other distribution formats and declarations are not separate runtime subsystems.

Main entry points: [`index.js`](https://github.com/738/inko/blob/master/index.js) (English to Korean)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Library caller"))
node_inko["Inko instance<br/>[index.js]"]
node_en2ko["English to Korean<br/>[index.js]"]
node_ko2en["Korean to English<br/>[index.js]"]
node_compose["Hangul composition<br/>[index.js]"]
node_decompose["Hangul decomposition<br/>[index.js]"]
node_is_hangul["Hangul detection<br/>[index.js]"]

node_caller -->|"creates instance"| node_inko
node_caller -->|"converts text"| node_en2ko
node_caller -->|"converts text"| node_ko2en
node_caller -->|"configures options"| node_inko
node_en2ko -->|"composes syllables"| node_compose
node_ko2en -->|"decomposes Hangul"| node_decompose

click node_inko "https://github.com/738/inko/blob/master/index.js"
click node_en2ko "https://github.com/738/inko/blob/master/index.js"
click node_ko2en "https://github.com/738/inko/blob/master/index.js"
click node_compose "https://github.com/738/inko/blob/master/index.js"
click node_decompose "https://github.com/738/inko/blob/master/index.js"
click node_is_hangul "https://github.com/738/inko/blob/master/index.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_caller toneIndigo
class node_inko,node_en2ko,node_ko2en,node_compose,node_decompose,node_is_hangul toneTeal
```

## Components

### Other components

- **Library caller**
- [Inko instance](https://github.com/738/inko/blob/master/index.js): `index.js`
- [English to Korean](https://github.com/738/inko/blob/master/index.js): `index.js`
- [Korean to English](https://github.com/738/inko/blob/master/index.js): `index.js`
- [Hangul composition](https://github.com/738/inko/blob/master/index.js): `index.js`
- [Hangul decomposition](https://github.com/738/inko/blob/master/index.js): `index.js`
- [Hangul detection](https://github.com/738/inko/blob/master/index.js): `index.js`

## Connections

- Library caller → Inko instance: creates instance (evidence: `README.md`)
- Library caller → English to Korean: converts text (evidence: `README.md`)
- Library caller → Korean to English: converts text (evidence: `README.md`)
- Library caller → Inko instance: configures options (evidence: `README.md`)
- English to Korean → Hangul composition: composes syllables (evidence: `index.js`)
- Korean to English → Hangul decomposition: decomposes Hangul (evidence: `index.js`)
