How ashtarcommunications/verbatim works
1. Repository shape
Verbatim is not one app but a small product suite. The repo contains the main desktop Word-based application, a separate cross-platform timer, a documentation site, and a large amount of packaging/release material for Windows and macOS.
2. Primary runtime: Microsoft Word + VBA
The core desktop product lives under desktop/ and is implemented as Word templates and VBA modules (.dotm, .xltm, .bas, .cls, .frm). It only runs in “full” desktop Office with VBA support. The Word document/template itself is the host process; the code executes inside Word rather than as an external app.
3. Desktop entrypoints and shell
The main orchestration points are ThisDocument.doccls, Startup.bas, Ribbon.bas, UI.bas, and Globals.bas. These wire Word lifecycle events, ribbon commands, startup behavior, shared state, and user-facing controls into the rest of the VBA modules.
4. Desktop feature modules
The VBA code is organized by feature area: formatting and evidence handling (Formatting, Flow, Shrink, Condense), paperless debate workflow (Paperless, QuickCards, Caselist, View, VirtualTub), integrations (Search, OCR, HTTP, JSONTools, Plugins), and local environment helpers (Filesystem, Registry, Settings, Troubleshooting, License, Audio).
5. Forms/UI boundary
User interaction happens through VBA forms such as settings, tutorial/help, login, progress, stats, caselist, quick cards, setup wizard, and troubleshooters. These forms are the UI layer over the document-processing logic and are embedded in the Word template.
6. Data flow inside the desktop app
The typical flow is: Word events or ribbon actions trigger VBA modules; those modules read/write documents, folders, and settings; some operations call out to external helpers for search, OCR, or plugin actions; results are then surfaced back in Word through forms or document edits. The document/tub/caselist structure is the main domain boundary.
7. External helpers and bundled tools
desktop/plugins/ contains standalone executables and scripts such as cite/import helpers and navigation utilities, plus bundled third-party tools like Everything search and OCR capture binaries. These are treated as optional adjuncts to the Word macros, not part of the core VBA runtime.
8. Platform-specific packaging
desktop/install/ and desktop/release/ show that desktop distribution is built separately per platform. Windows uses NSIS installers and helper EXEs; macOS uses .pkg, .app, and AppleScript-based assets. The repo includes generated installer outputs and platform bundles alongside source.
9. Setup validation
desktop/setup/Verbatim Setup Check is a separate .NET 6 Windows application used during installation/verification. It acts as a prerequisite checker/diagnostic companion for the desktop suite rather than part of the Word macro runtime.
10. Multiple desktop variants
The repo keeps more than one Word-template variant: the main desktop/src, an older/alternate desktop/flow/src, and reduced desktop/mini templates. They share the same overall architecture but ship different feature sets and startup templates.
11. Timer subsystem
timer/ is an independent cross-platform debate timer built with Tauri. Its front end is a web bundle (dist/), while the backend is Rust under src-tauri/. It is packaged separately into desktop installers for macOS, Windows, and Linux.
12. Documentation subsystem
docs/ is a Docusaurus site for the product manuals and guides. It is a separate Node-based documentation deployment and does not participate in the runtime of the desktop app or timer.
13. Build/release boundary
A lot of the tree is generated output: release folders, installers, packaged apps, and build artifacts. For an architecture diagram, it helps to separate source subsystems from distribution artifacts, because the repo intentionally stores both the code and the shipped bundles for multiple platforms.
Main entry points: ThisDocument.doccls Entry shell · Paperless.bas Paperless · 6.0.0/Debate.dotm Released bundles · desktop/Debate.dotm Debate template
Components 24
Desktop suite
Word/VBA product, variants, plugins, and packaging assets.
- Debate template · Main Word template that hosts the desktop application runtime.
desktop/Debate.dotm - Startup template · Companion template used to launch and initialize the desktop suite.
desktop/DebateStartup.dotm - Entry shell · Lifecycle and command orchestration for the VBA application.
desktop/src/ThisDocument.doccls - Startup · Initialization, loading, and startup behavior.
desktop/src/Startup.bas - Ribbon · Ribbon actions and user command wiring.
desktop/src/Ribbon.bas - UI layer · Representative embedded forms and dialog surface over the document workflow.
desktop/src/UI.bas - Globals · Application-wide state and constants shared across VBA modules.
desktop/src/Globals.bas - Paperless · Core paperless debate workflow around tubs, documents, and caselists.
desktop/src/Paperless.bas - Formatting · Formatting, shrinking, and condensation operations on documents.
desktop/src/Formatting.bas - Flow · Speech and document flow management around debate preparation.
desktop/src/Flow.bas - Quick cards · Quick-card authoring and navigation features.
desktop/src/QuickCards.bas - Caselist · Case list browsing and selection workflow.
desktop/src/Caselist.bas - View · Document and tub viewing helpers within the Word workspace.
desktop/src/View.bas - Virtual tub · Virtual tub organization and navigation boundary.
desktop/src/VirtualTub.bas - Integrations · Search, OCR, HTTP, JSON, and plugin integration boundary.
desktop/src/Search.bas - Environment · Filesystem, registry, settings, license, audio, and troubleshooting helpers.
desktop/src/Filesystem.bas - Forms · Embedded forms for setup, help, progress, stats, login, and troubleshooting.
desktop/src/frmSettings.frm - Plugins · Optional standalone tools and helper executables used by the macros.
desktop/plugins/VerbatimPlugins.exe - Mini templates · Smaller template variants with a reduced feature set.
desktop/mini/DebateMini.dotm - Flow variant · Older or alternate Word-template implementation under the flow subtree.
desktop/flow/Debate.xltm
Setup check
Standalone .NET prerequisite checker used during installation.
- Setup check · Windows desktop companion that validates installation prerequisites.
desktop/setup/Verbatim Setup Check/Verbatim Setup Check.vbproj
Timer app
Independent cross-platform timer built with Tauri.
- Timer app · Independent cross-platform debate timer application.
timer/src-tauri/src/main.rs
Docs site
Separate documentation website for manuals and guides.
- Docs site · Separate documentation website for manuals and guides.
docs/docusaurus.config.js
Releases
Versioned installers and shipped bundles across platforms.
- Released bundles · Versioned installers and shipped artifacts across desktop, timer, and setup check.
desktop/release/6.0.0/Debate.dotm
Connections 25
- Debate template → Entry shell: hosts · The Word template is the runtime host for the VBA entry shell.
- Startup template → Entry shell: boots · Startup template feeds initialization into the shared entry shell.
- Entry shell → Startup: initializes · Lifecycle events delegate to startup logic.
- Entry shell → Ribbon: commands · Ribbon commands are wired through the entry layer.
- Entry shell → UI layer: opens · Entry logic launches forms and dialogs.
- Entry shell → Globals: shares state · Global state is accessed by the orchestration layer.
- Entry shell → Paperless: routes to · Top-level actions enter the paperless debate workflow.
- Startup → Environment: configures · Startup uses environment helpers for settings, filesystem, and registry state.
- Paperless → Formatting: uses · Paperless workflow depends on formatting and document-shaping logic.
- Paperless → Caselist: tracks · Caselist management is part of the paperless boundary.
- Paperless → Quick cards: surfaces · Quick-card workflows sit on top of the core debate workflow.
- Paperless → View: views · Document and tub viewing are part of the workflow surface.
- Paperless → Virtual tub: organizes · Virtual tub structure is a core domain boundary.
- Flow → Paperless: coordinates · Flow coordinates debate document movement and workflow transitions.
- Quick cards → UI layer: uses · Quick-card features are surfaced through the UI layer.
- Caselist → UI layer: uses · Caselist browsing is exposed through the UI layer.
- Formatting → Integrations: calls out · Formatting and evidence routines can invoke external helpers.
- Integrations → Plugins: executes · Integrations reach bundled plugins and helper executables.
- Environment → Forms: surfaces · Settings, troubleshooting, and related helpers are shown through forms.
- Setup check → Released bundles: shipped with · The setup checker is included in desktop release bundles.
- Timer app → Released bundles: packaged as · The timer is built and distributed separately in multiple installer formats.
- Docs site → Released bundles: documents · Documentation explains the product suite and shipped tools.
- Plugins → Released bundles: bundled in · Plugins and helper executables are included in release artifacts.
- Debate template → Mini templates: variant of · Reduced templates derive from the main desktop Word runtime.
- Debate template → Flow variant: variant of · Alternate flow templates share the same Word/VBA architecture.