How joaojotta/jotta-text works
Jotta Text is a Lite XL-based editor for code, Markdown, and web projects, with desktop and browser editions. The main workflow is to open a file or folder, edit it with language-aware tools, then preview or export the result; workspace recovery and visual tools support that work. The browser edition has a visible app/files/preview/worker structure, and GitHub sync is an optional trial. Desktop Lua subsystems are identified from the tree and README capabilities; their internal call relationships were not sampled, so the graph avoids asserting them.
Main entry points: init.lua Jotta Text editor · app.mjs Browser editor app · web_preview.lua Desktop web preview · worker.mjs Browser worker
Components 20
Editing and language tools
- Jotta Text editor
profile/init.lua - Language support
profile/litefront/language_detection.lua - Completion context
profile/litefront/completion_context.lua - Prettier integration
profile/plugins/litefront_prettier.lua
Preview and authoring
- Markdown tools
profile/litefront/markdown.lua - Desktop web preview
profile/litefront/web_preview.lua - Preview server
tools/preview.mjs - Markdown PDF export
tools/markdown-pdf.mjs
Workspace and interface
- Workspace recovery
profile/litefront/session.lua - File explorer
profile/litefront/browser.lua - Document outline
profile/litefront/outline.lua - Appearance settings
profile/litefront/settings.lua
Browser and integrations
- Browser editor app
web/app.mjs - Browser workspace files
web/files.mjs - Browser HTML preview
web/preview.mjs - Browser worker
web/worker.mjs - Format and outline
web/worker-core.mjs - GitHub trial service
tools/github-trial.mjs - GitHub setup and sync
tools/github-setup.mjs
Other components
- Editor user
Connections 20
- Editor user → Jotta Text editor: opens and edits
README.md - Editor user → Browser editor app: opens browser edition
README.md - Browser editor app → Browser workspace files: imports files
web/app.mjs - Browser editor app → Browser HTML preview: builds preview
web/app.mjs - Browser editor app → Browser worker: dispatches requests
web/app.mjs - Browser worker → Format and outline: runs requests
web/worker.mjs - Browser editor app → Browser workspace files: reads workspace
web/app.mjs - Jotta Text editor → Language support: uses language detection
- Jotta Text editor → Completion context: offers completion
- Jotta Text editor → Prettier integration: offers formatting
- Jotta Text editor → Markdown tools: authors Markdown
- Jotta Text editor → Desktop web preview: opens live preview
- Desktop web preview → Preview server: starts preview
- Jotta Text editor → Markdown PDF export: exports PDF
- Jotta Text editor → Workspace recovery: restores workspace
- Jotta Text editor → File explorer: opens projects
- Jotta Text editor → Document outline: shows outline
- Jotta Text editor → Appearance settings: configures appearance
- Editor user → GitHub trial service: starts optional sync
- GitHub trial service → GitHub setup and sync: delegates setup actions
tools/github-trial.mjs