How napnapnapnap/nextdropexporter works
1. Repository boundary
- This is a World of Warcraft addon named NextDropExporter, not a standalone app.
- Its runtime boundary is the WoW 3.3.5a client: the addon reads character/game state from the game API, stores local addon settings, and emits a compact export string for an external website.
2. Addon entry and load order
- NextDropExporter.toc is the root manifest that defines what Lua modules and libraries load into the WoW client.
- The code is split into a small core layer, a set of feature collectors, and a UI layer. That separation is the main architectural boundary in the repo.
3. Core layer
- Core/NdCore.lua appears to be the central bootstrap and shared runtime object.
- Core/NdLoading.lua likely manages initialization/loading flow so modules only run when the game state is ready.
- Core/NdFunctions.lua and Core/Compat.lua provide shared helpers and compatibility fixes for the older WotLK API.
- Core/NdAddonSettings.lua handles addon-level configuration defaults and persistence hooks.
4. State and persistence
- The addon uses AceDB-3.0 for saved settings/state.
- This means the architecture likely has a local persisted configuration store for user preferences, UI behavior, and possibly cached character metadata.
- Persistence is client-side only; the export payload is generated from live game data plus local addon state.
5. Feature collectors
- The Features/ directory is the domain-data layer.
- Achievements.lua, Companions.lua, Professions.lua, and Talents.lua collect specific character information from the WoW API.
- Exporter.lua is the aggregation/serialization boundary that combines those feature outputs into the final export payload.
6. Data categories captured
- Per the README, the addon collects:
- achievements and criteria progress
- professions
- collections/companions
- talents
- stats, reputation, and armory-related character data
- In architecture terms, the addon is a character snapshot exporter: it gathers several independent slices of the character profile and normalizes them into one compact payload.
7. Export pipeline
- The likely flow is: WoW API data → feature modules → exporter aggregator → compression/encoding → copyable string in UI.
- The presence of LibCompress, LibDeflate, and LibBase64 indicates the export string is not raw JSON/text; it is compacted and encoded for transport.
- LibParse suggests there is also a parsing/formatting component, likely used to structure or decode textual game data before export.
8. User interface layer
- UI/UI_MainFrame.lua is the main window shell and tab container.
- UI/UI_Export.lua is the export tab where the final string is shown for copying.
- UI/UI_MyCharacters.lua and UI/UI_CharacterStatus.lua appear to present character list/status information.
- UI/UI_Utils.lua contains reusable UI helpers and formatting utilities.
- The UI is a thin presentation layer over the core/export logic; it should not own the data collection itself.
9. User interaction model
- The addon exposes slash commands /nd, /nextdrop, and debug toggles /nddebug, /nextdropdebug.
- This means the primary interaction path is in-game command-driven, with an optional minimap/button integration via LibDBIcon-1.0.
- The interface is designed for a manual “open UI → copy export string” workflow rather than background syncing.
10. Library dependencies and their architectural role
- LibStub and CallbackHandler-1.0 support addon library registration/event patterns.
- AceDB-3.0 handles saved variables.
- LibDBIcon-1.0 adds a minimap launcher.
- LibCompress, LibDeflate, and LibBase64 provide the encoding stack for compact export strings.
- These libraries materially affect the architecture because they replace custom persistence, callback, and compression code.
11. External consumer
- The exported string is intended for http://findmy.nextdrop.ovh/, which is outside this repository.
- So the repo’s output boundary is a single portable payload consumed by an external decoder/importer, not a direct API integration.
12. What to diagram
- The most accurate architecture diagram would show:
- WoW client runtime as the host
- core bootstrap/loading and settings modules
- feature collectors as parallel data sources
- exporter as the aggregation/encoding stage
- UI as the presentation/copy surface
- AceDB and compression/base64 libraries as supporting infrastructure
- external website as the downstream consumer of the export string
Main entry points: NextDropExporter.toc Addon TOC · Exporter.lua Exporter · NdCore.lua Core · NdLoading.lua Loading
Components 25
Runtime
WoW client and downstream consumer
- WoW Client · World of Warcraft 3.3.5a host environment that provides game state and addon APIs
- NextDrop Site · External website that consumes the exported payload
Core
Bootstrap, loading, shared helpers, and settings
- Addon TOC · Root manifest that defines addon load order
NextDropExporter/NextDropExporter.toc - Core · Central addon runtime object and startup coordination
NextDropExporter/Core/NdCore.lua - Loading · Initialization gating and load sequencing
NextDropExporter/Core/NdLoading.lua - Helpers · Common addon helper functions
NextDropExporter/Core/NdFunctions.lua - Compat · Compatibility fixes for older WotLK API behavior
NextDropExporter/Core/Compat.lua - Settings · Addon defaults and saved-variable integration
NextDropExporter/Core/NdAddonSettings.lua
Features
Character data collectors and export aggregation
- Achievements · Collects achievement and criteria progress
NextDropExporter/Features/Achievements.lua - Companions · Collects pets and companion collection data
NextDropExporter/Features/Companions.lua - Professions · Collects profession and crafting data
NextDropExporter/Features/Professions.lua - Talents · Collects talent and specialization data
NextDropExporter/Features/Talents.lua - Exporter · Combines feature snapshots into the final compact payload
NextDropExporter/Features/Exporter.lua
UI
Main window and presentation layer
- Main Frame · Primary window and tab container
NextDropExporter/UI/UI_MainFrame.lua - Export Tab · Displays the export string for copy/paste
NextDropExporter/UI/UI_Export.lua - Characters · Shows character list and status overview
NextDropExporter/UI/UI_MyCharacters.lua - Status · Shows character readiness and state details
NextDropExporter/UI/UI_CharacterStatus.lua - UI Utils · Reusable UI formatting and widget helpers
NextDropExporter/UI/UI_Utils.lua
Libraries
Embedded third-party support libraries
- AceDB · Persistent addon database layer
NextDropExporter/Libs/AceDB-3.0/AceDB-3.0.lua - CallbackHandler · Callback and event dispatch support
NextDropExporter/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua - Compress · Compression stage for export payloads
NextDropExporter/Libs/LibCompress/LibCompress.lua - Deflate · Deflate compression and packing support
NextDropExporter/Libs/LibDeflate/LibDeflate.lua - Base64 · Base64 transport encoding for export strings
NextDropExporter/Libs/LibBase64-1.0/LibBase64-1.0.lua - Parse · Text parsing and formatting support for game data
NextDropExporter/Libs/LibParse/LibParse.lua - LibStub · Shared library registration and lookup
NextDropExporter/Libs/LibStub/LibStub.lua
Connections 38
- WoW Client → Addon TOC: loads · Client loads addon manifest and module list
- Addon TOC → Core: bootstraps · Manifest loads core runtime first
- Addon TOC → AceDB: includes · Manifest includes saved-variable library
- Addon TOC → CallbackHandler: includes · Manifest includes callback support library
- Addon TOC → Compress: includes · Manifest includes compression support library
- Addon TOC → Deflate: includes · Manifest includes deflate support library
- Addon TOC → Base64: includes · Manifest includes base64 support library
- Addon TOC → Parse: includes · Manifest includes parsing support library
- Core → Loading: starts · Core hands off to loading gate
- Core → Helpers: uses · Core shares common helpers
- Core → Compat: uses · Core applies compatibility shims
- Core → Settings: initializes · Core sets up addon settings storage
- Settings → AceDB: persists · Settings layer is backed by AceDB
- Loading → Achievements: enables · Loading gate activates data collectors when ready
- Loading → Companions: enables · Loading gate activates data collectors when ready
- Loading → Professions: enables · Loading gate activates data collectors when ready
- Loading → Talents: enables · Loading gate activates data collectors when ready
- Achievements → Exporter: feeds · Collector contributes snapshot data to exporter
- Companions → Exporter: feeds · Collector contributes snapshot data to exporter
- Professions → Exporter: feeds · Collector contributes snapshot data to exporter
- Talents → Exporter: feeds · Collector contributes snapshot data to exporter
- Exporter → Compress: compresses · Exporter compresses the assembled payload
- Exporter → Deflate: deflates · Exporter uses deflate packing in encoding pipeline
- Exporter → Base64: encodes · Exporter converts payload to copyable transport string
- Exporter → Parse: formats · Exporter may parse or normalize structured text inputs
- Main Frame → Export Tab: hosts · Main window contains export tab
- Main Frame → Characters: hosts · Main window contains character tab
- Main Frame → Status: hosts · Main window contains status tab
- Main Frame → UI Utils: uses · UI shell shares widget and formatting helpers
- Export Tab → Exporter: shows · Export tab displays generated payload
- Characters → Settings: reads · Character view uses stored preferences and state
- Status → Core: reads · Status view reads shared addon runtime state
- WoW Client → Core: runtime · Addon executes inside the WoW client runtime
- Exporter → NextDrop Site: delivers · Export string is consumed by the external website
- Addon TOC → Main Frame: loads · Manifest loads UI layer modules
- Addon TOC → Helpers: loads · Manifest loads shared helpers
- Addon TOC → UI Utils: loads · Manifest loads UI utilities
- LibStub → AceDB: supports · Shared library loader underpins embedded libraries