Sign in

    editor

    Readonly MoonBit code viewer harness inspired by Monaco and CodeMirror.

    editor
    moonbit
    readonly
    syntax-highlighting
    Download zip
    Version
    0.3.0
    License
    Apache-2.0
    Last updated
    2 months ago
    Downloads
    2K

    #Readonly MoonBit Viewer

    The source checkout has two main parts. The published Mooncakes package contains the reusable viewer; the reference shell is repository-only:

    • viewer: the reusable MoonBit readonly viewer. It is Monaco-shaped in API and behavior where that helps embedders, but it stays MoonBit-owned and does not import Monaco, VS Code, or CodeMirror code.
    • internal/shell: the reference app/backend used to see the viewer working against a real workspace. It demonstrates one host composition and must use the viewer through public APIs; it is not an external import surface.

    Monaco/VS Code is the primary design reference. CodeMirror is a secondary reference when its simpler state/view split is useful. Both submodules are reference-only.

    #Installation

    moon add moonbit-community/editor@0.2.1

    #Repository Development

    npm install just check just build just dev ROOT=. PORT=5173

    Open http://127.0.0.1:5173/. The dev server is the internal native backend shell: it serves web/dist and talks to the browser workbench over the readonly remote protocol WebSocket.

    #Validation

    just check just test just build just test-browser

    Current architecture lives in docs/architecture.md. Browser harness behavior lives in docs/harness.md.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io