NextWeb4 GitHub avatar

official-document-ai-assistant

NextWeb4

一个基于Electron的桌面工作台,用于本地公文校审、格式修复与规范导出,并可选集成Ollama进行AI分析。

Stars

163

7 天增长

+55

Fork 数

0

开放 Issue

0

开源协议

NOASSERTION

最近更新

2026-07-25

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

将基于规则的检查与本地AI结合,数据默认仅保存在本地,专门支持中文公文工作流程。

适合谁使用

  • 从事政府或企业公文处理的人员
  • 需要规范公文格式的技术写作者
  • 需要本地文档处理工具的开发者
  • 需要离线文档格式合规检查的用户

典型使用场景

  • 对公文进行排版和间距检查
  • 修复格式问题并应用模板
  • 预览后导出合规的.docx文件
  • 运行本地AI分析以提升文档质量

项目优势

  • 优先保护数据隐私,默认本地存储
  • 基于规则的校审,支持自定义模板
  • 支持多种中文文档格式(.doc、.docx、.wps)
  • 可选集成Ollama,提供AI辅助分析

使用前须知

  • 开发环境需安装Node.js和Python
  • 转换旧版.doc/.wps文件需用户自行安装LibreOffice
  • 不包含第三方字体,用户需自行合法获取

README 快速开始

HaoXiang Document Assistant

Local official-document review, formatting repair, preview, and compliant .docx export in an Electron desktop workspace.

The application combines an Electron 39 + React 19 + TypeScript interface with a Python 3.12+ FastAPI backend. It imports Word-family documents, converts them into a structured DocumentModel, applies YAML-backed review and repair rules, previews A4 output, and exports a new Word document. Chinese and English application interfaces are included, and project data stays on the local device by default.

Capabilities

  • Import .docx, .doc, and .wps documents and select the intended official-document type.
  • Review typography, paragraph spacing, margins, headings, tables, page fields, and other rule-backed formatting details.
  • Apply selected repairs through the document modifier instead of editing the source file in place.
  • Use official, custom, user, or uploaded .docx/.dotx templates as formatting sources.
  • Preview pages in an A4-oriented workspace and export the reviewed result as .docx.
  • Optionally request AI-assisted analysis. Offline builds expose local Ollama only; online-mode packages can use explicitly configured provider endpoints.
  • Use the Word VBA bridge for format checking, repair, and template actions while the local backend is running.
  • Switch the application UI between Chinese and English; the preference is stored locally.

Automated checks help find and repair formatting issues, but they do not replace human review, organizational policy, or an authoritative interpretation of an official-document standard.

Architecture

Electron / React UI
        |
        | local HTTP
        v
FastAPI on 127.0.0.1:8765
        |
        v
parser -> DocumentModel -> RuleEngine / Modifier -> generator -> .docx
              |                    |
              |                    +-- rules/official/*.yaml
              +-- templates and uploaded formatting bases
PathResponsibility
backend/api/routes/Document, review, optimization, template, settings, AI, and Office bridge endpoints
backend/core/document/Conversion, parsing, structured models, modification, validation, template application, and Word generation
backend/core/rules/Rule loading, merge precedence, checking, fixing, and runtime rule management
`backend/cor

项目描述

Local official-document review, formatting repair, and compliant export desktop assistant.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

lopopolo
精选
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI 与机器学习AI 智能体
2,390
slvDev
精选
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI 与机器学习大语言模型
1,960
littledivy
精选
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI 与机器学习
1,482