Sign in

    moonbase-desktop

    Moonbase desktop shell: Proton command contract and HTML document

    moonbase
    proton
    desktop
    ui
    Download zip
    Author
    Version
    0.0.1
    License
    Apache-2.0
    Last updated
    5 hours ago
    Downloads
    1

    #moonbase-desktop

    The desktop shell. It defines the Proton command moonbase.version with moonbit-community/proton_contract and the HTML document a Proton window loads. The document contains <div id="app"></div>, which is where apps/web mounts.

    The native window is moonbit-community/proton. That package links the CEF runtime, and moon build runs its prebuild only when the CEF SDK is installed (proton_cli cef setup). This module does not import moonbit-community/proton yet, so CI can check and build the shell without that SDK. The next step is a native main that calls @proton.html(document()).identifier("dev.moonrockz.moonbase").run_or_abort().

    VersionReply

    pub struct VersionReply {
    version : String
    }

    Reply payload for the moonbase.version Proton command.

    document

    fn document() -> String

    The HTML document a Proton window loads. The web UI mounts into app.

    version_command

    The Proton command the desktop shell exposes for the shared version.

    version_reply

    fn version_reply() -> VersionReply

    The reply the desktop shell sends for moonbase.version.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io