Sign in

    typstbit

    MoonBit application core of Typst.bit: commands, outline, multi-file projects, diagnostics, packages and theme models, plus a native CLI/MCP

    typst
    moonbit
    wasm
    editor
    workbench
    Download zip
    Version
    0.1.1
    License
    MIT
    Last updated
    21 days ago
    Downloads
    6

    #Typst.bit MoonBit core

    The MoonBit application core of Typst.bit, an offline-first Typst document workbench. Published on mooncakes.io as V1GreenSummer/typstbit.

    Packages:

    • app: pure application models and logic — command catalog and UI structure, palette filtering, outline parsing, multi-file project model, diagnostics mapping, package-spec scanning and theme planning (unit tested).
    • core: wasm-gc exports of the above for the browser host (core.wasm).
    • typst_binding: typed host binding for the compiler ABI (wasm host imports for the browser, native stubs for the CLI).
    • native_cli: native Typst.bit CLI and MCP server; links against the Rust typst-abi static library (built from the main repository, see tools/build-native-cli.sh).
    • web_wasm: the legacy MoUI canvas shell and the DOM workbench assets (JavaScript, plugins, styles) served by GitHub Pages.

    License: MIT.

    #MoUI scaffold notes

    #Typstbit

    Generated by moui CLI 0.1.3 for the module (now published as V1GreenSummer/typstbit) (template counter).

    This is a standalone MoUI app. Prefer this project over cloning the full MoUI monorepo unless you are changing the framework.

    #Versions

    • CLI: 0.1.3
    • Default/framework dependency: wzzc-dev/moui@0.1.9
    • These versions are independent: upgrading the CLI does not change the project dependency until you edit moon.mod / regenerate.

    #Platforms

    • web
    • linux

    #First run (~10 minutes)

    moon update moui doctor moon run linux_skia --target native moon build web_wasm --target wasm-gc # serve web_wasm/ (static HTTP) and open index.html in a WebGPU browser

    #Next steps

    moon update moui doctor moon check web_wasm --target wasm-gc moon run linux_skia --target native

    #Project maintenance

    • Add a platform later: moui add platform <name> [--bundle-id ID]
    • Package inventory: moui package / moui package --json
    • Safe doctor remediations: moui doctor --fix