[WIP] Extract reusable MDZip workspace functionality into monorepo#1
Draft
kylemwhite with Copilot wants to merge 1 commit into
Draft
[WIP] Extract reusable MDZip workspace functionality into monorepo#1kylemwhite with Copilot wants to merge 1 commit into
kylemwhite with Copilot wants to merge 1 commit into
Conversation
Copilot stopped work on behalf of
kylemwhite due to an error
June 2, 2026 16:31
This was referenced Jun 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
Extract Reusable MDZip Workspace Functionality from
mdzip-vscodeObjective
Extract the reusable MDZip workspace functionality from
mdzip-vscodeinto a new monorepo:The goal is to separate:
MDZip viewing logic
MDZip editing logic
UI framework implementations
Host-specific integrations
into independent layers that can be reused throughout the MDZip ecosystem.
Target architecture:
Future applications such as a standalone MDZip desktop application should be able to consume
@mdzip/editor-ngdirectly.Future hosts should be able to consume
@mdzip/editorwithout depending on Angular.Scope
The current
mdzip-vscodeimplementation provides both viewing and editing capabilities.The extracted libraries must preserve both responsibilities.
The resulting architecture should support:
Viewing MDZip archives
Navigating MDZip archives
Inspecting archive contents
Rendering Markdown content
Viewing assets
Viewing manifests
Editing Markdown content
Managing assets
Managing manifests
Saving archives
This effort is not limited to editing functionality.
The goal is to create the canonical MDZip workspace library.
Existing Source
Use:
as the source of truth.
Do not rewrite functionality unless necessary.
The objective is extraction and reuse.
Repository Structure
Repository:
Recommended structure:
Published packages:
Future framework implementations may be added later:
Do not create React or Vue implementations at this time.
The architecture should simply allow them to be added later without modifying the core package.
Architecture
Layer 1
Already exists.
Responsibilities:
MDZip archive reading
MDZip archive writing
Manifest support
Validation
Packaging
Extraction
Do not duplicate functionality already provided by
mdzip-core-js.Layer 2
Framework-independent MDZip workspace library.
This is the primary deliverable of this effort.
Responsibilities:
Archive state management
Document management
Archive navigation
Archive inspection
Rendering coordination
Editing workflows
Asset management
Manifest management
Validation orchestration
Host abstractions
Must contain:
No Angular dependencies
No VS Code dependencies
No Electron dependencies
Layer 3
Angular implementation of the workspace UI.
Responsibilities:
Angular components
Angular services
Workspace UI
Viewer UI
Preview UI
Navigation UI
Asset browser UI
Manifest editor UI
Must depend on:
Must contain:
Create Package: @mdzip/editor
Purpose
Provide a framework-independent MDZip workspace engine built on top of
mdzip-core-js.This package should support both viewing and editing scenarios.
This package should eventually be reusable by:
VS Code
Angular applications
Electron applications
Browser applications
Future React implementations
Future Vue implementations
Archive State
Maintain state for:
manifest
markdown files
assets
archive metadata
Track:
dirty state
modified files
created files
deleted files
Document Management
Support:
loading documents
switching documents
tracking changes
saving changes
Support:
document mode archives
project mode archives
Archive Navigation
Support:
archive structure
file navigation
project navigation
entry point discovery
Archive Inspection
Support:
read-only archive access
manifest inspection
asset inspection
metadata inspection
The package must be useful even when no editing is performed.
Rendering Coordination
Provide rendering-related abstractions and state management.
The package should support hosts that render Markdown content but should not be tightly coupled to a specific rendering implementation.
Asset Management
Support:
asset discovery
asset metadata
image references
asset insertion
Expose APIs only.
Do not create UI.
Manifest Management
Support:
manifest loading
manifest editing
manifest validation
Validation
Support:
entry point validation
manifest validation
archive consistency checks
Reuse existing MDZ...