# fapputa/abyss-ide architecture

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

## Overview

Vanilla_CLI is a terminal toolkit whose main product is Abyss, a cross-platform text editor with compilation, file-oriented views, memory editing, and binary analysis/debugging. The principal workflow is to open a file, edit and save it, then optionally build/run it or switch to a specialized view. The README also describes standalone CLI commands and lsc utilities. Relationships use README statements and SOURCE INDEX references; several feature implementations are unsampled, so those links are limited to documented behavior.

Main entry points: [`editor.c`](https://github.com/fapputa/abyss-ide/blob/main/editor.c) (Abyss editor), [`disview.c`](https://github.com/fapputa/abyss-ide/blob/main/disview.c) (Analysis interface), [`disasm.c`](https://github.com/fapputa/abyss-ide/blob/main/disasm.c) (Disassembly analysis), [`pane.c`](https://github.com/fapputa/abyss-ide/blob/main/pane.c) (Editor panes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Abyss Editor"]
  node_abyss["Abyss editor<br/>[editor.c]"]
  node_pane["Editor panes<br/>[pane.c]"]
  node_buildrun["Build and run<br/>[run.c]"]
end

subgraph group_views["File Views"]
  node_filetree["File tree<br/>[filetree.c]"]
  node_table["Table view<br/>[table.c]"]
  node_documents["Document view<br/>[doc.c]"]
  node_images["Image view<br/>[image.c]"]
  node_image_decode["Image decoding<br/>[imgdecode.c]"]
  node_hex["Hex view<br/>[hex.c]"]
  node_fileinfo["File inspector<br/>[fileinfo.c]"]
  node_memview["Memory editor<br/>[memview.c]"]
  node_memscan["Process memory scan<br/>[memscan.c]"]
end

subgraph group_analysis["Binary Analysis"]
  node_disview["Analysis interface<br/>[disview.c]"]
  node_disasm["Disassembly analysis<br/>[disasm.c]"]
  node_elfload["ELF loader<br/>[elfload.c]"]
  node_peload["PE support<br/>[peload.c]"]
  node_debug_linux["Linux debugger<br/>[dbg.c]"]
  node_debug_windows["Windows debugger<br/>[dbg_win.c]"]
  node_breakpoints["Breakpoint model<br/>[dbg_bp.h]"]
end

subgraph group_utilities["CLI Utilities"]
  node_lsc["lsc utility<br/>[lsc.c]"]
  node_lsc_config["lsc configuration<br/>[lsc-config.c]"]
  node_clip["Clipboard command"]
  node_compil["Compiler command"]
  node_redem["WiFi reset command"]
  node_tree["Tree command"]
end

subgraph group_core["Editing Core"]
  node_buffer["Gap buffer<br/>[gap_buf.c]"]
  node_lineindex["Line indexing<br/>[line_idx.c]"]
  node_undo["Undo and redo<br/>[undo.c]"]
  node_syntax["Syntax highlighting<br/>[syntax.c]"]
  node_highlight["Smart highlighting<br/>[highlight.c]"]
  node_beautify["Formatting<br/>[beautify.c]"]
  node_shared["Editor interfaces<br/>[abyss.h]"]
end

node_user(("Terminal user"))
node_cmd_user(("CLI command user"))

node_user -->|"opens file"| node_abyss
node_abyss -.->|"manages panes"| node_pane
node_abyss -->|"uses interfaces"| node_shared
node_pane -->|"uses interfaces"| node_shared
node_abyss -->|"builds and runs"| node_buildrun
node_abyss -->|"opens navigator"| node_filetree
node_abyss -->|"opens table view"| node_table
node_abyss -->|"opens document view"| node_documents
node_abyss -->|"opens image view"| node_images
node_images -->|"decodes images"| node_image_decode
node_abyss -->|"opens hex view"| node_hex
node_abyss -->|"inspects files"| node_fileinfo
node_abyss -->|"opens memory editor"| node_memview
node_memview -->|"scans process memory"| node_memscan
node_abyss -->|"opens F9 analysis"| node_disview
node_disview -->|"requests analysis"| node_disasm
node_disasm -->|"analyzes loaded file"| node_elfload
node_disasm -->|"uses PE support"| node_peload
node_disview -->|"controls debugger"| node_debug_linux
node_debug_linux -->|"uses breakpoint model"| node_breakpoints
node_debug_windows -->|"uses breakpoint model"| node_breakpoints
node_abyss -->|"edits text"| node_buffer
node_abyss -->|"indexes lines"| node_lineindex
node_abyss -->|"supports undo"| node_undo
node_abyss -->|"highlights syntax"| node_syntax
node_abyss -->|"offers smart highlight"| node_highlight
node_abyss -->|"formats text"| node_beautify
node_cmd_user -->|"runs command"| node_clip
node_cmd_user -->|"runs command"| node_compil
node_cmd_user -->|"runs command"| node_redem
node_cmd_user -->|"runs command"| node_tree
node_user -->|"uses utility"| node_lsc
node_user -->|"uses configuration tool"| node_lsc_config

click node_abyss "https://github.com/fapputa/abyss-ide/blob/main/editor.c"
click node_pane "https://github.com/fapputa/abyss-ide/blob/main/pane.c"
click node_buildrun "https://github.com/fapputa/abyss-ide/blob/main/run.c"
click node_buffer "https://github.com/fapputa/abyss-ide/blob/main/gap_buf.c"
click node_lineindex "https://github.com/fapputa/abyss-ide/blob/main/line_idx.c"
click node_undo "https://github.com/fapputa/abyss-ide/blob/main/undo.c"
click node_syntax "https://github.com/fapputa/abyss-ide/blob/main/syntax.c"
click node_highlight "https://github.com/fapputa/abyss-ide/blob/main/highlight.c"
click node_beautify "https://github.com/fapputa/abyss-ide/blob/main/beautify.c"
click node_shared "https://github.com/fapputa/abyss-ide/blob/main/abyss.h"
click node_filetree "https://github.com/fapputa/abyss-ide/blob/main/filetree.c"
click node_table "https://github.com/fapputa/abyss-ide/blob/main/table.c"
click node_documents "https://github.com/fapputa/abyss-ide/blob/main/doc.c"
click node_images "https://github.com/fapputa/abyss-ide/blob/main/image.c"
click node_image_decode "https://github.com/fapputa/abyss-ide/blob/main/imgdecode.c"
click node_hex "https://github.com/fapputa/abyss-ide/blob/main/hex.c"
click node_fileinfo "https://github.com/fapputa/abyss-ide/blob/main/fileinfo.c"
click node_memview "https://github.com/fapputa/abyss-ide/blob/main/memview.c"
click node_memscan "https://github.com/fapputa/abyss-ide/blob/main/memscan.c"
click node_disview "https://github.com/fapputa/abyss-ide/blob/main/disview.c"
click node_disasm "https://github.com/fapputa/abyss-ide/blob/main/disasm.c"
click node_elfload "https://github.com/fapputa/abyss-ide/blob/main/elfload.c"
click node_peload "https://github.com/fapputa/abyss-ide/blob/main/peload.c"
click node_debug_linux "https://github.com/fapputa/abyss-ide/blob/main/dbg.c"
click node_debug_windows "https://github.com/fapputa/abyss-ide/blob/main/dbg_win.c"
click node_breakpoints "https://github.com/fapputa/abyss-ide/blob/main/dbg_bp.h"
click node_lsc "https://github.com/fapputa/abyss-ide/blob/main/lsc.c"
click node_lsc_config "https://github.com/fapputa/abyss-ide/blob/main/lsc-config.c"
click node_clip "https://github.com/fapputa/abyss-ide/blob/main/cmd/clip"
click node_compil "https://github.com/fapputa/abyss-ide/blob/main/cmd/compil"
click node_redem "https://github.com/fapputa/abyss-ide/blob/main/cmd/redem"
click node_tree "https://github.com/fapputa/abyss-ide/blob/main/cmd/tree"

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_abyss,node_pane,node_buildrun,node_user,node_cmd_user toneBlue
class node_filetree,node_table,node_documents,node_images,node_image_decode,node_hex,node_fileinfo,node_memview,node_memscan toneAmber
class node_disview,node_disasm,node_elfload,node_peload,node_debug_linux,node_debug_windows,node_breakpoints toneMint
class node_lsc,node_lsc_config,node_clip,node_compil,node_redem,node_tree toneRose
class node_buffer,node_lineindex,node_undo,node_syntax,node_highlight,node_beautify,node_shared toneIndigo
```

## Components

### Abyss Editor

- [Abyss editor](https://github.com/fapputa/abyss-ide/blob/main/editor.c): `editor.c`
- [Editor panes](https://github.com/fapputa/abyss-ide/blob/main/pane.c): `pane.c`
- [Build and run](https://github.com/fapputa/abyss-ide/blob/main/run.c): `run.c`

### File Views

- [File tree](https://github.com/fapputa/abyss-ide/blob/main/filetree.c): `filetree.c`
- [Table view](https://github.com/fapputa/abyss-ide/blob/main/table.c): `table.c`
- [Document view](https://github.com/fapputa/abyss-ide/blob/main/doc.c): `doc.c`
- [Image view](https://github.com/fapputa/abyss-ide/blob/main/image.c): `image.c`
- [Image decoding](https://github.com/fapputa/abyss-ide/blob/main/imgdecode.c): `imgdecode.c`
- [Hex view](https://github.com/fapputa/abyss-ide/blob/main/hex.c): `hex.c`
- [File inspector](https://github.com/fapputa/abyss-ide/blob/main/fileinfo.c): `fileinfo.c`
- [Memory editor](https://github.com/fapputa/abyss-ide/blob/main/memview.c): `memview.c`
- [Process memory scan](https://github.com/fapputa/abyss-ide/blob/main/memscan.c): `memscan.c`

### Binary Analysis

- [Analysis interface](https://github.com/fapputa/abyss-ide/blob/main/disview.c): `disview.c`
- [Disassembly analysis](https://github.com/fapputa/abyss-ide/blob/main/disasm.c): `disasm.c`
- [ELF loader](https://github.com/fapputa/abyss-ide/blob/main/elfload.c): `elfload.c`
- [PE support](https://github.com/fapputa/abyss-ide/blob/main/peload.c): `peload.c`
- [Linux debugger](https://github.com/fapputa/abyss-ide/blob/main/dbg.c): `dbg.c`
- [Windows debugger](https://github.com/fapputa/abyss-ide/blob/main/dbg_win.c): `dbg_win.c`
- [Breakpoint model](https://github.com/fapputa/abyss-ide/blob/main/dbg_bp.h): `dbg_bp.h`

### CLI Utilities

- [lsc utility](https://github.com/fapputa/abyss-ide/blob/main/lsc.c): `lsc.c`
- [lsc configuration](https://github.com/fapputa/abyss-ide/blob/main/lsc-config.c): `lsc-config.c`
- [Clipboard command](https://github.com/fapputa/abyss-ide/blob/main/cmd/clip): `cmd/clip`
- [Compiler command](https://github.com/fapputa/abyss-ide/blob/main/cmd/compil): `cmd/compil`
- [WiFi reset command](https://github.com/fapputa/abyss-ide/blob/main/cmd/redem): `cmd/redem`
- [Tree command](https://github.com/fapputa/abyss-ide/blob/main/cmd/tree): `cmd/tree`

### Editing Core

- [Gap buffer](https://github.com/fapputa/abyss-ide/blob/main/gap_buf.c): `gap_buf.c`
- [Line indexing](https://github.com/fapputa/abyss-ide/blob/main/line_idx.c): `line_idx.c`
- [Undo and redo](https://github.com/fapputa/abyss-ide/blob/main/undo.c): `undo.c`
- [Syntax highlighting](https://github.com/fapputa/abyss-ide/blob/main/syntax.c): `syntax.c`
- [Smart highlighting](https://github.com/fapputa/abyss-ide/blob/main/highlight.c): `highlight.c`
- [Formatting](https://github.com/fapputa/abyss-ide/blob/main/beautify.c): `beautify.c`
- [Editor interfaces](https://github.com/fapputa/abyss-ide/blob/main/abyss.h): `abyss.h`

### Other components

- **Terminal user**
- **CLI command user**

## Connections

- Terminal user → Abyss editor: opens file (evidence: `README.md`)
- Abyss editor → Editor panes: manages panes
- Abyss editor → Editor interfaces: uses interfaces (evidence: `editor.c`)
- Editor panes → Editor interfaces: uses interfaces (evidence: `pane.c`)
- Abyss editor → Build and run: builds and runs (evidence: `README.md`)
- Abyss editor → File tree: opens navigator (evidence: `README.md`)
- Abyss editor → Table view: opens table view (evidence: `README.md`)
- Abyss editor → Document view: opens document view (evidence: `README.md`)
- Abyss editor → Image view: opens image view (evidence: `README.md`)
- Image view → Image decoding: decodes images (evidence: `image.c`)
- Abyss editor → Hex view: opens hex view (evidence: `README.md`)
- Abyss editor → File inspector: inspects files (evidence: `README.md`)
- Abyss editor → Memory editor: opens memory editor (evidence: `README.md`)
- Memory editor → Process memory scan: scans process memory (evidence: `memview.c`)
- Abyss editor → Analysis interface: opens F9 analysis (evidence: `README.md`)
- Analysis interface → Disassembly analysis: requests analysis
- Disassembly analysis → ELF loader: analyzes loaded file (evidence: `disasm.c`)
- Disassembly analysis → PE support: uses PE support (evidence: `disasm.c`)
- Analysis interface → Linux debugger: controls debugger
- Linux debugger → Breakpoint model: uses breakpoint model (evidence: `dbg_bp.h`)
- Windows debugger → Breakpoint model: uses breakpoint model (evidence: `dbg_bp.h`)
- Abyss editor → Gap buffer: edits text (evidence: `README.md`)
- Abyss editor → Line indexing: indexes lines (evidence: `README.md`)
- Abyss editor → Undo and redo: supports undo (evidence: `README.md`)
- Abyss editor → Syntax highlighting: highlights syntax (evidence: `README.md`)
- Abyss editor → Smart highlighting: offers smart highlight (evidence: `README.md`)
- Abyss editor → Formatting: formats text (evidence: `README.md`)
- CLI command user → Clipboard command: runs command (evidence: `README.md`)
- CLI command user → Compiler command: runs command (evidence: `README.md`)
- CLI command user → WiFi reset command: runs command (evidence: `README.md`)
- CLI command user → Tree command: runs command (evidence: `README.md`)
- Terminal user → lsc utility: uses utility (evidence: `README.md`)
- Terminal user → lsc configuration: uses configuration tool (evidence: `README.md`)
