[Open-source] A permanent open-source enterprise-level online document editing and free collaboration solution
![[Open-source] A permanent open-source enterprise-level online document editing and free collaboration solution](https://yy123.ink/api/img/1796367994713-wbgvmn.png)
1. Project Overview
VerveDocs - Jade Imperial Cloud Document
A suite of enterprise-level online document editing solutions based on Vue 3 + TypeScript, supporting online editing and collaboration of various document formats such as Word, Excel, and PPT.
2. Open Source License
Licensed under MIT
3. Screenshots
4. Feature Overview
Online document editing and free collaboration product
Permanently open source · Can be privately deployed · Can be developed again
VerveDocs is a suite of open-source online document editing and collaboration solutions; provides out-of-the-box online document editors (compatible with Word), lightweight document editors, online spreadsheet editors (compatible with Excel), and online presentation editors (compatible with PowerPoint).
Online document
Online document editor (compatible with Microsoft Word format)
Lightweight Lite
Lightweight online document editor (compatible with Microsoft Word format)
Online table
Online spreadsheet editor, (compatible with Microsoft Excel format)
Online Demo
Online presentation editor (compatible with Microsoft PowerPoint format)
Features
-
Multi-format support: Word documents, Excel spreadsheets, PPT presentations -
Rich text editing: text formatting, tables, images, lists, headers and footers, watermarks, etc. -
Real-time collaboration: multi-person online collaborative editing -
Plugin system: extensible functional plugin mechanism -
TypeScript support: complete type definitions -
Responsive design: adaptable to multiple screen sizes
Core engine capabilities
Pagination mode
Pagination rendering and paper settings, supporting zoom, margins, headers and footers, and page numbers.
Text editing
Font, font size, bold/italic/underline, color, highlight, title, and list.
Tables and images
Insert/delete rows and columns, merge and split cells, image floating/encirclement and export.
Controls and forms
Text box, selection, date, checkbox/radio, etc. controls, supporting value retrieval and batch assignment.
Events and listening
Through eventBus subscribing to content changes, selection styles, mouse events, and save events.
Plugin Extension
Providing use(plugin) extensibility, injectable chart renderers, etc. advanced functions.
Why choose open source?
Self-control
Core capabilities completely open source, support internal network deployment, facilitate security audit and in-depth customization.
Engineering API
API documentation and type definitions facing secondary development, facilitating landing in complex businesses.
5. Tech Stack
Tech Stack
-
Vue 3 - Progressive JavaScript framework -
TypeScript - JavaScript super set -
Element Plus - Vue 3 UI component library -
ECharts - Data visualization chart library -
Vite - Next-generation front-end build tool -
docx - Word document generation library -
exceljs - Excel file processing library -
pptxgenjs - PPT generation library
Project Structure
vervedocs/├── vervedocs-core/ # Core editor library├── vervedocs-docx/ # Word document editor complete UI├── vervedocs-docx-lite/ # Word document editor lightweight version├── vervedocs-excel/ # Excel spreadsheet editor├── vervedocs-ppt/ # PPT presentation editor├── vervedocs-collaboration-server/ # Collaboration server└── vervedocs-libs/ # Editor extension library├── docx-editor-ai/ # AI auxiliary function├── docx-editor-chart/ # Chart plugin├── docx-editor-collaboration/ # Collaboration function├── docx-editor-commands/ # Command system├── docx-editor-comment/ # Annotation function├── docx-editor-history/ # History record├── docx-editor-keymap/ # Shortcut key mapping├── docx-editor-schema/ # Document mode definition├── docx-editor-state/ # State Management├── docx-editor-transform/ # Document conversion└── docx-editor-view/ # View layer
Module Introduction
@vervedoc/core
Core Editor Library, providing basic rich text editing functionality.
npm install @vervedoc/core
Main features:
-
Rich Text Editing (Bold, Italic, Underline, Strikethrough, Highlight, etc.) -
Table Operations (Insert, Merge, Split, Border Settings) -
Image Processing (Insert, Resize, Drag and Drop) -
List Functionality (Ordered, Unordered, Multi-level Lists) -
Page Layout (Header, Footer, Page Number, Watermark, Margin) -
Control System (Text Control, Date Control, Dropdown Selection) -
History Record (Undo/Redo) -
Search and Replace
@vervedoc/docx
Word Document Editor Full Version, providing a complete UI interface and interaction.
npm install @vervedoc/docx
@vervedoc/excel
Excel Spreadsheet Editor, supporting online spreadsheet editing.
npm install @vervedoc/excel
@vervedoc/ppt
PPT Presentation Editor, supporting online presentation creation.
npm install @vervedoc/ppt
Quick Start
Install Dependencies
# Install Core Librarynpm install @vervedoc/core# Install Word Editornpm install @vervedoc/docx# Install Excel Editornpm install @vervedoc/excel# Install PPT Editornpm install @vervedoc/ppt
Usage Examples
Word Document Editor
import DocxEditor from '@vervedoc/core'const container = document.getElementById('editor') as HTMLDivElementconst editor = new DocxEditor(container, {main: [{ value: 'Welcome to VerveDocs!' }]})// Using Command APIeditor.command.executeBold() // Boldeditor.command.executeUndo() // Undo
Development guide
Environment Requirements
-
Node.js >= 16.0.0 -
npm >= 7.0.0
Local development
# Clone the projectgit clone https://gitee.com/wanghe520/docx-editor.git# Install dependenciescd vervedocs-corenpm install# Start the Development Servernpm run dev# Build production versionnpm run build# Type Checkingnpm run type:check
Build all modules
# Build Core Librarycd vervedocs-core && npm run build# Build Word Editorcd vervedocs-docx && npm run lib# Build Excel Editorcd vervedocs-excel && npm run build# Build PPT Editorcd vervedocs-ppt && npm run build
Browser Compatibility
-
Chrome 80+ -
Firefox 75+ -
Safari 13.1+ -
Edge 80+
6. Source Code Repository
Open-source project address:
https://gitee.com/wanghe520/vervedocs
Next steps