--- title: CoreDoc Directory Structure version: 1.0.0 date: 2026-10-25 author: Momentry Core Team status: Active --- # CoreDoc Directory Structure ## Overview This document provides a complete mapping of all CoreDoc directories and files. --- ## Primary Locations ### 1. DocServer Source Code ``` /Users/accusys/momentry_core/src/bin/docserver/ └── main.rs # HTTP server implementation ├── Lines: ~150 ├── Framework: axum ├── Features: │ ├── HTTP Basic Auth │ ├── Static file serving │ ├── WASM module serving │ └── CORS support └── Dependencies: ├── axum ├── tower-http └── base64 ``` --- ### 2. Documentation Content Directories #### 2.1 Legacy WASM System ``` /Users/accusys/momentry_core/docs_v1.0/doc_wasm/ ├── index.html # Main UI (432 lines) │ ├── Sidebar navigation │ ├── Content viewer │ └── WASM integration ├── logout.html # Logout page (2,115 bytes) ├── test.html # Test page (288 bytes) ├── README.md # Status documentation (1,977 bytes) │ └── Status: DEPRECATED ├── modules/ # Documentation modules │ ├── 000_Welcome.md # Welcome page │ ├── 001_Auth_v1.3.5.md # Authentication API │ ├── 002_Health_v1.3.5.md # Health check API │ ├── 011_Register_v1.3.5.md # Register API │ ├── 012_Lookup_v1.3.5.md # Lookup API │ ├── ... (total 68 files) │ └── _template.md # Module template └── pkg/ # WASM compilation output ├── doc_wasm_bg.wasm # Legacy WASM (223KB) ├── doc_wasm.js # Legacy JS bindings (7.4KB) ├── md_wasm_bg.wasm # Current WASM (291KB) └── md_wasm.js # Current JS bindings (7.2KB) ``` #### 2.2 New Modular System ``` /Users/accusys/momentry_core/docs_v1.0/ ├── API_WORKSPACE/ # API Documentation │ ├── modules/ # API module files │ │ ├── 001_Auth_API.md │ │ ├── 002_Health_API.md │ │ ├── ... (organized by API) │ │ └── README.md │ ├── README.md # API docs overview │ └── Makefile # Build automation ├── CLI_WORKSPACE/ # CLI Documentation │ ├── modules/ # CLI module files │ │ ├── 101_Register_CLI.md │ │ ├── 102_Lookup_CLI.md │ │ ├── ... (organized by CLI command) │ │ └── README.md │ └── README.md # CLI docs overview └── README.md # Main documentation index ``` --- ### 3. WASM Source Code ``` /Users/accusys/momentry_core/md_wasm/ ├── Cargo.toml # Rust project configuration │ ├── name: md_wasm │ ├── version: 0.1.0 │ ├── edition: 2021 │ └── crate-type: ["cdylib"] ├── src/ │ └── lib.rs # WASM library source │ ├── Lines: ~20 │ ├── Function: render(md: &str) -> String │ └── Dependencies: │ ├── wasm-bindgen │ └── pulldown-cmark └── target/ └── wasm32-unknown-unknown/ └── release/ ├── md_wasm.wasm # Compiled WASM binary └── md_wasm.d # Dependency info ``` **WASM Source Code**: ```rust use wasm_bindgen::prelude::*; #[wasm_bindgen] pub fn render(md: &str) -> String { let mut opts = pulldown_cmark::Options::empty(); opts.insert(pulldown_cmark::Options::ENABLE_TABLES); let parser = pulldown_cmark::Parser::new_ext(md, opts); let mut html = String::new(); pulldown_cmark::html::push_html(&mut html, parser); html = html.replace("