[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107988":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},107988,"Weave-Office","Jamailar\u002FWeave-Office","Jamailar","One app for every document. Built for AI agents. An open-source desktop office suite written in Rust: documents, spreadsheets, slides, PDF, Markdown, code and rich text, opened, edited and saved in one row of file tabs. The same binary is a command line that AI agents call directly.",null,"Rust",192,30,90,4,0,1,29,66,67.57,"MIT License",false,"main",[],"2026-11-05 07:02:33","2026-11-23 17:13:21","\u003Cp align=\"center\">\n  \u003Cb>English\u003C\u002Fb> · \u003Ca href=\"README.zh-CN.md\">简体中文\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fsocial\u002Fsocial-preview.en.png\" alt=\"Weave Office: one app for every document, built for AI agents\" width=\"100%\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">Weave Office\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cb>One app for every document. Built for AI agents.\u003C\u002Fb>\u003Cbr>\n  An open-source desktop office suite written in Rust: documents, spreadsheets, slides, PDF, Markdown, code and rich text,\u003Cbr>\n  opened, edited and saved in one row of file tabs. The same binary is a command line that AI agents call directly.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg alt=\"Rust 1.95\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-1.95-orange?logo=rust\">\n  \u003Cimg alt=\"Platform: macOS\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-macOS-lightgrey?logo=apple\">\n  \u003Cimg alt=\"UI: egui\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FUI-egui-4b8bbe\">\n  \u003Cimg alt=\"AI-friendly CLI\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAI--friendly-CLI%20%2B%20JSON-7c5cff\">\n  \u003Ca href=\"LICENSE\">\u003Cimg alt=\"License: MIT\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue\">\u003C\u002Fa>\n  \u003Cimg alt=\"Status: in development\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstatus-in%20development-yellow\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#features\">Features\u003C\u002Fa> ·\n  \u003Ca href=\"#command-line-for-ai-agents-and-scripts\">Command line\u003C\u002Fa> ·\n  \u003Ca href=\"#build-from-source\">Build\u003C\u002Fa> ·\n  \u003Ca href=\"#project-layout\">Layout\u003C\u002Fa> ·\n  \u003Ca href=\"#documentation\">Docs\u003C\u002Fa>\n\u003C\u002Fp>\n\n> [!NOTE]\n> Weave Office is under active development and is not yet a day-to-day replacement for a mature office suite. Fidelity on complex documents, input methods and some advanced workflows are still being polished. See the [acceptance log](docs\u002Facceptance.md) (Chinese) for current status and known issues.\n\n## Why Weave Office\n\nTwo things set it apart: it is **all-in-one**, and it is **AI-friendly**.\n\nMost of us bounce between a word processor, a spreadsheet, a slide tool, a PDF reader, a Markdown notes app and a code editor every day, each with its own window, menus, settings and save logic. Weave Office puts them into **one real application**:\n\n- **One row of file tabs.** A contract, a quote, a pitch deck, a PDF invoice, your notes and a config file sit side by side, and you can open several of the same kind. Switch away and back, and the caret, selection, scroll position, zoom, undo history and unsaved changes are all still there.\n- **One set of shared systems.** New, open, save, save as, close, quit, recent files, autosave, printing and dialogs are handled by one host, not by four apps each doing it their own way.\n- **AI can call it directly.** The app binary is also a command line. An AI agent can read, change and export documents by path without opening a window, and gets JSON back (see [Command line](#command-line-for-ai-agents-and-scripts)).\n- **One shared foundation.** Fonts, text shaping, rasterization, PDF output and metafile parsing exist once, so the download is smaller and the editors behave consistently.\n\n## Features\n\n### Formats at a glance\n\n| Kind | Opens | New files saved as | Editor |\n|---|---|---|---|\n| Documents | `.docx` `.docm` `.doc` `.odt` `.rtf` | `.docx` | WordCraft engine |\n| Spreadsheets | `.xlsx` `.xlsm` `.xls` `.ods` `.csv` | `.xlsx` | GridCraft engine |\n| Presentations | `.pptx` `.pptm` `.ppt` `.odp` | `.pptx` | DeckCraft engine |\n| PDF | `.pdf` | `.pdf` | PdfCraft engine |\n| Markdown | `.md` `.markdown` `.mdx` and more | `.md` | Built in (`crates\u002Ftext-editor`) |\n| Plain text and code | 20+ languages, plus unknown extensions whose content is text | `.txt` `.json` `.yaml` `.toml` `.xml` `.sql` `.sh` `.py` `.js` `.ts` `.css` `.go` `.rs` | Built in (`crates\u002Ftext-editor`) |\n| Rich text (HTML) | `.html` `.htm` `.xhtml` | `.html` | Built in (`crates\u002Frich-editor`), in development |\n\nThe **＋** button on the tab bar opens the New panel, grouped into Office documents (documents, presentations, spreadsheets, PDF), Text & web (Markdown, plain text, rich text) and Code & data (JSON, YAML, TOML, XML, SQL, Shell, Python, JavaScript, TypeScript, CSS, Go, Rust). Every format in it can be edited and saved back in the same format.\n\n### Four office editors in one: documents, spreadsheets, slides, PDF\n\n- **Documents:** paragraph and character formatting, styles, tables, images, headers and footers, page breaks; WMF\u002FEMF pictures; PDF export and printing.\n- **Spreadsheets:** multiple sheets, formulas, number formats, borders and merged cells; mixed Latin and CJK text aligned on a shared baseline; PDF export (with embedded CJK fonts) and CSV.\n- **Presentations:** slides, shapes, text boxes, images and layouts; slideshow and export.\n- **PDF:** a real editor, not just a viewer. Edit existing text and images, add text and images, annotate (notes, text boxes, markup, shapes and replies), fill in text, and insert, delete, reorder, rotate, crop, extract and split pages. See [PDF capabilities](docs\u002Fpdf-capabilities.md) (Chinese).\n\nAll four run in a single process and share one host:\n\n- **Unified ribbon:** the host draws the ribbon's tab row for every editor; each editor draws only its own commands, so switching file types feels the same.\n- **Unified fonts:** open fonts ship once and system fonts are scanned once; all editors share one set of UI fonts, so switching tabs no longer reloads fonts.\n- **Autosave and crash recovery:** the host periodically writes unsaved changes to a recovery folder; after an unexpected quit, relaunch and get them back.\n- **Unified files and dialogs:** open, save and folder pickers use the native OS panels; confirmations, errors, settings and printing are Weave's own. While a dialog is open, tabs can't be switched or closed by accident, and files opened from outside wait in a queue.\n- **Split view:** show open documents side by side, one above another, or in nested panes within one window; drag the divider to resize. Use the Split menu next to the tab bar, the tab's right-click menu (Open to the Right \u002F Open Below), or ⌘⌥→ \u002F ⌘⌥↓ (Ctrl+Alt on Windows and Linux); ⌘⌥W closes the focused pane without closing its document.\n- **Native on macOS:** real traffic-light window buttons, rounded corners and shadow, with file tabs placed in the title bar; app menu, shortcuts, opening from Finder and the system quit flow are wired in.\n\n### Markdown with Obsidian-style live preview\n\n- **Live preview:** headings, bold, links and more render in place; markers such as `#`, `**` and `[]()` appear only on the line you are editing. Markdown tables render with borders, aligned columns and wrapped cells; click a table to edit its source. Source and reading views too.\n- **Notes features:** task checkboxes, `[[wikilinks]]`, backlinks, tags and outline.\n- **Sidebar:** file tree, full-text search, outline, tags and backlinks.\n- **Command palette** (⇧⌘P) and **quick open** (⌥⌘O).\n- **Insert tools:** images, footnotes, callouts, math and properties (front matter).\n- **Focus mode** and **typewriter scrolling**.\n- PDF export and printing go through the document engine's Markdown import.\n\n### Code and plain-text editor\n\n- **Syntax highlighting:** Rust, JavaScript, TypeScript, Python, Go, C\u002FC++, C#, Java, Kotlin, Swift, PHP, Ruby, Lua, Shell, PowerShell, SQL, Dockerfile, Makefile, JSON, YAML, TOML, INI, HTML, CSS and more.\n- **Editing tools:** line numbers, find and replace, search in folder, go to line, line commands (move, duplicate, delete, join), sort, de-duplicate, change case, trim trailing whitespace, convert indentation, and **JSON formatting**.\n- **Keeps your encoding:** files are written back in their original encoding (including GBK, UTF-16 and BOMs) and line endings; a file you didn't change is saved byte for byte. Files with an unknown extension but text content open as plain text.\n\n### Rich-text editor (in development)\n\nA WYSIWYG HTML editor for laying out articles, in the spirit of WeChat article editors such as 135 Editor:\n\n- **Open any HTML file** and switch between the **design view** (the laid-out page) and the **source view** (highlighted HTML). Both always agree.\n- **Edit in the design view:** click to place the caret, drag or Shift-click to select, double-click for a word, triple-click for a paragraph, with input-method support. Copy carries HTML and plain text; paste keeps inline styles and drops scripts.\n- **Home tab:** paragraph style, size, bold, italic, underline, strikethrough, text and highlight colors, clear formatting, alignment, line spacing and first-line indent.\n- **Faithful:** unknown tags, comments, `\u003Chead>`, `\u003Cscript>` and `\u003Cstyle>` are kept as is; an untouched file is written back unchanged; undo, saving and the source view all work on the same text.\n- Its own HTML parser and CSS-subset layout, with no new third-party dependencies.\n- Roadmap: component library, one-click recoloring and images → copy to WeChat → polish.\n\n### Command line for AI agents and scripts\n\n**This is the second pillar of Weave Office: it is AI-friendly.** The same executable is a command line. When the first argument is a verb, no window opens; it reads and writes documents directly on the four editors' engines. It is designed so AI agents can operate on office files reliably.\n\n```sh\nweave-office create quote.xlsx\nweave-office set quote.xlsx \u002FSheet1\u002FB2 value=1280\nweave-office add contract.docx \u002Fbody --type paragraph text=\"Both parties agree…\"\nweave-office view pitch.pptx outline\nweave-office export contract.docx contract.pdf\nweave-office help agent      # prints the full guide written for AI agents\n```\n\n- Verbs: `create` `info` `view` `get` `set` `add` `remove` `commands` `run` `batch` `export` `help`.\n- Address content by path: `\u002Fbody\u002Fp[3]`, `\u002FSheet1\u002FA1:C10`, `\u002Fslide[2]\u002Fshape[1]`, `\u002Fpage[4]`.\n- `--json` returns one envelope, `{\"ok\":…,\"data\"|\"error\":…}`; errors carry a code, a suggested fix and the closest matching commands.\n- `batch` writes only if every step succeeds. Saves go to a temporary file that is then renamed over the original, so a file is either the complete new version or untouched.\n\nFull reference: [docs\u002Fcli.md](docs\u002Fcli.md) (Chinese); the agent guide is [crates\u002Fcli\u002FAGENT.md](crates\u002Fcli\u002FAGENT.md).\n\n## Build from source\n\nYou need Rust 1.95.0 (pinned in `rust-toolchain.toml`) and Python 3. Large build inputs such as fonts and translations live on an external volume; point `WEAVE_DEV_VOLUME` at its mount point:\n\n```sh\nexport WEAVE_DEV_VOLUME=\u002FVolumes\u002FMyDrive\n\npython3 scripts\u002Fprepare-fonts.py\npython3 scripts\u002Fprepare-document-fonts.py\npython3 scripts\u002Fprepare-i18n.py\npython3 scripts\u002Fcargo.py run --locked --offline\n```\n\nBuild output goes to `$WEAVE_DEV_VOLUME\u002FDevCache\u002FWeaveOffice\u002Ftarget`. To try just the command line, no font preparation is needed:\n\n```sh\ncargo run -p weave-cli --example weave -- help\ncargo test -p weave-cli\n```\n\nFor a macOS `.app` see the [packaging notes](packaging\u002FREADME.md); for font inputs see [fonts](docs\u002Ffonts.md).\n\n## Project layout\n\n```\nsrc\u002F                  Host: window, file tabs, ribbon, dialogs, autosave and recovery, editor adapters\ncrates\u002F\n  workspace\u002F          File kinds, tabs, dirty state and save ordering\n  ribbon\u002F             The unified ribbon drawn by the host\n  font-assets\u002F        Shared open fonts\n  system-fonts\u002F       One system font scan for every editor\n  pdf-backend\u002F        PDF engine adapter\n  text-editor\u002F        Markdown and code editor\n  rich-editor\u002F        Rich-text (HTML) editor\n  cli\u002F                The command line, weave-office \u003Cverb>\nvendor\u002F               Pinned snapshots of the four upstream editors\nintegration\u002F          Early integration experiments, kept for reference\npackaging\u002F scripts\u002F   Packaging and build scripts\ntests\u002F                Host regression tests\n```\n\n## Documentation\n\nMost project docs are currently in Chinese.\n\n- [Product goals and plan](PLAN.md)\n- [Acceptance log](docs\u002Facceptance.md): automated tests, hands-on checks and remaining work\n- [Command line](docs\u002Fcli.md) · [PDF capabilities](docs\u002Fpdf-capabilities.md) · [Fonts](docs\u002Ffonts.md) · [UI languages](docs\u002Fi18n.md)\n- [Upstream projects, pinned versions and hand-off notes](vendor\u002FREADME.md)\n- [App icon](assets\u002Fapp-icon\u002FREADME.md) · [Packaging](packaging\u002FREADME.md)\n\n## Acknowledgements and license\n\nWeave Office is released under the [MIT License](LICENSE).\n\nThe four office editors are built on [WordCraft](https:\u002F\u002Fgithub.com\u002Fstorytold\u002Fwordcraft), [GridCraft](https:\u002F\u002Fgithub.com\u002Fstorytold\u002Fgridcraft), [DeckCraft](https:\u002F\u002Fgithub.com\u002Fstorytold\u002Fdeckcraft) and [PdfCraft](https:\u002F\u002Fgithub.com\u002Fstorytold\u002Fpdfcraft), vendored as pinned snapshots under `vendor\u002F`. The upstream source is licensed MIT OR Apache-2.0, and each upstream's LICENSE, NOTICE and asset attributions are kept in its directory; Weave Office uses its own name and icon. The command line's design draws on ideas from [OfficeCLI](https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FOfficeCLI) and contains none of its code.\n\nThanks to the [LINUX DO](https:\u002F\u002Flinux.do) community for its support and feedback.\n","Weave Office 是一款面向 AI 代理设计的开源桌面办公套件，用 Rust 编写，支持在单应用中统一处理文档、表格、幻灯片、PDF、Markdown、代码及富文本文件。其核心特点是采用单行标签页管理多格式文件，共享编辑状态（光标位置、撤销历史、缩放等），并提供可被 AI 代理直接调用的命令行接口（支持 JSON 输入\u002F输出）。适用于需要高频切换文档类型、自动化文档处理或集成 AI 工作流的开发者与技术型办公用户。",2,"2026-11-24 04:33:12","CREATED_QUERY"]