How variondrakon/osss works
OSSS is a C++ file-image backup and restore program with an experimental local HTTP interface and browser UI. The visible main workflow asks for a source directory and creates an image; the model code also exposes recursive file collection, metadata and hashing, image encoding, and restoration. The README describes the project and LLVM requirements but does not document product behavior. Web serving is implemented but its invocation from main is commented out; several UI/API paths are likewise incomplete. The graph follows shown calls and documented capabilities, and omits uncertain wiring where excerpts are insufficient.
Main entry points: FileUtility.cpp Image encoder · main.cpp Backup CLI · WebUtility.cpp HTTP routes · main.js Browser UI
Components 14
Application entry
- Backup CLI
MVC/main.cpp
File image
- Directory collector
MVC/Model/FileUtility.cpp - Image encoder
MVC/Model/FileUtility.cpp - Image restore
MVC/Model/FileUtility.cpp - Image format metadata
MVC/Model/Headers/FileUtility.h
File metadata
- File metadata
MVC/Model/Headers/FileUtility.h - Local file properties
MVC/Model/FileUtility.cpp - SHA-256 hashing
MVC/Model/HashUtility.cpp - Hash provider API
MVC/Model/Headers/HashUtility.h
Web interface
- HTTP server
MVC/Model/WebUtility.cpp - HTTP routes
MVC/Model/WebUtility.cpp - Browser UI
Web.UI/Script.UI/main.js
Other components
- Backup operator
- Browser user
Connections 13
- Backup operator → Backup CLI: enters folder
MVC/main.cpp - Backup CLI → Directory collector: creates image
MVC/main.cpp - Directory collector → Image encoder: collects files
MVC/Model/FileUtility.cpp - Image encoder → Local file properties: reads properties
MVC/Model/FileUtility.cpp - Image encoder → SHA-256 hashing: calculates hashes
- SHA-256 hashing → Hash provider API: implements
MVC/Model/HashUtility.cpp - Image encoder → Image format metadata: writes image data
MVC/Model/FileUtility.cpp - Image restore → Image format metadata: reads image data
MVC/Model/FileUtility.cpp - Backup CLI → HTTP server: can start
- HTTP server → HTTP routes: dispatches events
MVC/Model/WebUtility.cpp - HTTP routes → Browser UI: serves static UI
- Browser user → Browser UI: uses
Web.UI/Script.UI/main.js - Browser UI → HTTP routes: requests /api/data