How databasediisc/deemak works
Project type and purpose
• This is a Rust-based interactive explorer called “deemak” that can be run in two modes:
• Terminal (CLI) version, driven by commands (echo, ls, go, read, whereami, help)
• Web version, using an HTTP server to serve a single-page UI (static/index.html + index.css) and backend logic
• It lets users navigate a virtual file world (“sekai” folder) with text files and JSON metadata.
File structure
• Top level:
• Cargo.toml / Cargo.lock: Rust project definition
• src/: contains core application code
• static/: contains web frontend assets
• sekai/: the data store (files/JSON) that represents the world
• In src/:
• main.rs: entry point for CLI
• server.rs: entry point for web server mode
• lib.rs: core library, shared by CLI and server
• commands/: implementations of individual commands (ls, go, read, etc.)
• menu/: code for interactive menus (about, menu options)
• utils/: helper modules for locating root, reading info JSON, etc.
• log.rs, screen.rs, keys.rs: platform-specific I/O and logging
README for additional insights
• Two run commands:
• cargo run for terminal
• cargo run web for web
• Browser interface available at http://localhost:8000
Elements
• CLI → Core Library → Utils → Data Store
• Browser → HTTP Server → Core Library → Utils → Data Store
• HTTP Server → Static Assets → Browser
• Server/Library in another
• Data store in a third
• Static assets in a fourth
Details
• Utils modules: find_root, info_reader
• That server.rs will parse URL paths and invoke the commands API
• Port 8000 for HTTP communication
• Clearly separates frontend (CLI vs. web) from backend logic
• Shows reuse of the Core Library across both modes
• Captures how data flows through utils into the sekai file store
This will give any stakeholder or new engineer an at-a-glance understanding of “deemak”’s architecture.