AutoPublish is an offline DOCX publication formatter for editors, academic teams, and publishers. It uses a local FastAPI engine for deterministic parsing/classification and a React/Vite operator console for review and export. No manuscript content is sent to a cloud service.
Requirements: Python 3.10+ and Node.js 18+.
cd backend
python -m pip install -r requirements.txt
python main.pyIn a second terminal:
cd frontend
npm install
npm run devOpen the Vite URL shown in the terminal. The backend listens on http://127.0.0.1:8000.
- Click Run guided demo on the Overview screen.
- Review the detected structure map and confidence values.
- Open the style panel and switch between Academic Modern and Classic Press.
- Open Diagnostics to show the local validation log.
- Click Export .docx and open the generated Word file.
The real import flow accepts .docx files by drag-and-drop or file picker. Ctrl/Cmd+O opens import and Ctrl/Cmd+E exports the current run.
backend/parser.py: extracts Word paragraphs, tables, inline properties, and metadata.backend/classifier.py: explainable feature-based structural classification.backend/formatter.py: deterministic publication styles and valid Word-compatible output.backend/main.py: local REST API for analyze, sample, preset, and format operations.frontend/src/App.tsx: dashboard, workbench, preview, history, diagnostics, and export UX.
The formatter preserves source text and only changes document structure and presentation. The backend includes sample generation and tests in backend/test_backend.py.