MCPcopy Index your code
hub / github.com/Chleba/tui-slides

github.com/Chleba/tui-slides @v0.1.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.4 ↗ · + Follow
114 symbols 216 edges 15 files 11 documented · 10%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tui-slides

Terminal Presentation tool with modern TUI capable to render images in terminal and with many more widgets.

Install via cargo

cargo install tui-slides

AUR

paru -S tui-slides

Usage

To create new presentation You have to create a folder with JSON file where you can create Your presentation slides. Example file is here.

Run

To start tui-slides we just call it with argument -j where we specify path to JSON file with slides data.

tui-slides -j="./path_to_slides/slides.json"

JSON: root

Main section of slide config is box_size. Here we set fixed size of content box.

"box_size": { "width": 50, "height": 50 }

JSON: slides

slides property is defining content. Slide content have it's type, content, rect, data, max & color. There are few types at the moment but in the future there should be support for every widget in Ratatui library. Supported widgets ATM: - Image - Block - Paragraph - Line - Bigtext - Sparkline - Code Highlight

Extension points exported contracts — how you extend this code

Component (Interface)
`Component` is a trait that represents a visual and interactive element of the user interface. Implementors of this trai [2 …
src/components.rs

Core symbols most depended-on inside this repo

get_slide_content_string
called by 8
src/slide_builder.rs
parse_style
called by 5
src/config.rs
get_slide_content_color
called by 5
src/slide_builder.rs
parse_color
called by 4
src/config.rs
exit
called by 4
src/tui.rs
store_images
called by 4
src/components/slides.rs
draw
called by 4
src/components/title.rs
process_color_string
called by 3
src/config.rs

Shape

Function 47
Method 47
Class 14
Enum 5
Interface 1

Languages

Rust100%

Modules by API surface

src/config.rs28 symbols
src/tui.rs19 symbols
src/components/slides.rs16 symbols
src/slide_builder.rs11 symbols
src/components.rs8 symbols
src/enums.rs7 symbols
src/utils.rs6 symbols
src/layout.rs5 symbols
src/components/title.rs5 symbols
src/app.rs3 symbols
src/main.rs2 symbols
src/mode.rs1 symbols

For agents

$ claude mcp add tui-slides \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact