Skip to content

DocsJSThe Lossless Word Pipeline for Web

Bring Word/WPS/Google Docs content to web apps without rebuilding layout by hand. Keep structure, styles, and semantics in one import flow.

DocsJS Logo
157
Quality Gate Tests
v1.0.0
Latest Version
3
Framework Adapters
23+
Built-in Plugins

Quick Start

bash
npm install @coding01/docsjs
bash
yarn add @coding01/docsjs
bash
pnpm add @coding01/docsjs

Web Component

html
<script type="module">
  import { defineDocsWordElement } from "@coding01/docsjs";
  defineDocsWordElement();
</script>

<docs-word-editor lang="en"></docs-word-editor>

React

tsx
import { WordFidelityEditorReact } from "@coding01/docsjs/react";

function App() {
  return (
    <WordFidelityEditorReact
      lang="en"
      onChange={({ htmlSnapshot }) => {
        console.log(htmlSnapshot);
      }}
    />
  );
}

Vue

vue
<template>
  <WordFidelityEditorVue lang="en" @change="onChange" />
</template>

<script setup>
import { WordFidelityEditorVue } from "@coding01/docsjs/vue";

const onChange = ({ htmlSnapshot }) => {
  console.log(htmlSnapshot);
};
</script>

Why DocsJS?

📋

Lossless Paste

Keep lists, tables, images, and formatting when importing from Word/WPS/Google Docs.

🔌

Multi-Framework

Start with React, Vue, or Web Components without rewriting your current editor shell.

🧩

Plugin Architecture

Use built-in cleanup/parser plugins first, then extend only where your business rules differ.

🧪

Quality Assured

Regression baseline + fidelity checks keep import behavior stable as your docs evolve.

📊

Deep Semantics

Preserve advanced semantics such as notes, revisions, bookmarks, and cross references.

Production Ready

TypeScript-first, tree-shakeable, CSP-friendly package for production web products.

Ecosystem

PackageDescription
@coding01/docsjsCore package with Web Component, React, and Vue adapters
@coding01/docsjs-markdownMarkdown output conversion
@coding01/docsjs-editorMulti-editor runtime switching

Sponsors

ReactVueTypeScriptES2022Vite+

Released under the MIT License.