tiptap-ui-kit-k 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 benngaihk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,450 @@
1
+ # Tiptap UI Kit
2
+
3
+ <div align="center">
4
+
5
+ ![Tiptap UI Kit](https://img.shields.io/badge/Tiptap-3.0-blue?style=flat-square)
6
+ ![Vue](https://img.shields.io/badge/Vue-3.5-green?style=flat-square)
7
+ ![TypeScript](https://img.shields.io/badge/TypeScript-5.7-blue?style=flat-square)
8
+ ![License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)
9
+ ![NPM](https://img.shields.io/badge/npm-v0.1.0-red?style=flat-square)
10
+
11
+ **The best open-source Tiptap rich text editor template for Vue 3 โ€” production-ready, AI-powered, with 5 themes**
12
+
13
+ Built on [Tiptap 3](https://tiptap.dev/) + [Vue 3](https://vuejs.org/) + [TypeScript](https://www.typescriptlang.org/) + [ProseMirror](https://prosemirror.net/)
14
+
15
+ [๐ŸŒ Live Demo](https://tiptap-ui-kit.vercel.app) ยท [๐Ÿ“š Documentation](#-documentation) ยท [โœจ Features](#-features) ยท [๐Ÿค Contributing](#-contributing)
16
+
17
+ ---
18
+
19
+ โญ **Star us on GitHub โ€” it motivates us a lot!**
20
+
21
+ [![GitHub stars](https://img.shields.io/github/stars/benngaihk/Tiptap-UI-Kit?style=social)](https://github.com/benngaihk/Tiptap-UI-Kit)
22
+ [![GitHub forks](https://img.shields.io/github/forks/benngaihk/Tiptap-UI-Kit?style=social)](https://github.com/benngaihk/Tiptap-UI-Kit)
23
+
24
+ </div>
25
+
26
+ ---
27
+
28
+ > **Looking for a Tiptap Vue 3 template?** Tiptap UI Kit is an open-source, drop-in Vue 3 rich text editor component with Notion-like / Word-like themes, built-in AI writing assistance, real-time collaboration, and full TypeScript support. If you need a WYSIWYG editor for your Vue project โ€” CMS, knowledge base, note-taking app, or document editor โ€” this is the template to start with.
29
+
30
+ ## ๐ŸŒŸ Why Tiptap UI Kit?
31
+
32
+ Tiptap UI Kit is a **fully open-source**, production-ready rich text editor UI kit that brings together the best of modern web technologies. It is the most feature-complete Tiptap + Vue 3 editor template available.
33
+
34
+ ### Compared to alternatives
35
+
36
+ | Feature | Tiptap UI Kit | Raw Tiptap | Other Vue Editors |
37
+ |---------|:------------:|:----------:|:-----------------:|
38
+ | Ready-to-use Vue 3 component | Yes | No (headless) | Varies |
39
+ | Multiple theme presets (Notion/Word/GitHub) | 5 themes | None | 0-1 |
40
+ | Built-in AI writing assistance | Yes | No | No |
41
+ | Real-time collaboration (Yjs) | Yes | Paid add-on | Rare |
42
+ | Dark mode | Yes | DIY | Varies |
43
+ | i18n (EN/ZH-CN/ZH-TW) | Yes | No | Rare |
44
+ | TypeScript support | Full | Full | Partial |
45
+ | MIT License | Yes | Yes | Varies |
46
+
47
+ ### Key highlights
48
+
49
+ - ๐ŸŽจ **5 Beautiful Theme Presets** โ€” Notion-like, Word-like (A4 pagination), GitHub, Typora, and Default
50
+ - ๐Ÿค– **AI-Powered Features** โ€” Continue writing, polish text, translate, summarize, custom AI commands (OpenAI-compatible)
51
+ - ๐ŸŒ“ **Perfect Dark Mode** โ€” Seamless light/dark theme switching across all themes
52
+ - ๐Ÿ› ๏ธ **Modular Architecture** โ€” Use only what you need, tree-shakeable
53
+ - ๐ŸŒ **i18n Ready** โ€” Chinese (Simplified/Traditional) and English support
54
+ - ๐Ÿ’ฏ **100% Free & Open Source** โ€” MIT licensed, free for commercial use
55
+
56
+ Perfect for building modern document editors, content management systems, note-taking apps, knowledge bases, or any Vue 3 application requiring rich text editing capabilities.
57
+
58
+ ---
59
+
60
+ ## โœจ Features
61
+
62
+ ### ๐ŸŽจ Core Features
63
+
64
+ - **Premium Themes** - 5 professionally designed theme presets:
65
+ - Default - Clean and minimal
66
+ - **Word** - Microsoft Word-like professional layout with A4 pages
67
+ - **Notion** - Modern, distraction-free editing experience
68
+ - GitHub - Developer-friendly markdown style
69
+ - Typora - Elegant reading and writing
70
+
71
+ - **Dark Mode** - Full light/dark mode support with smooth transitions
72
+
73
+ - **Word Mode** - Professional A4 paper layout with automatic pagination
74
+
75
+ - **Modular Architecture** - Enable only the features you need, keep bundle size small
76
+
77
+ - **Internationalization** - Built-in support for:
78
+ - ็ฎ€ไฝ“ไธญๆ–‡ (Simplified Chinese)
79
+ - ็น้ซ”ไธญๆ–‡ (Traditional Chinese)
80
+ - English
81
+
82
+ - **Accessible** - WCAG compliant with full keyboard navigation
83
+
84
+ ### โœ๏ธ Rich Text Editing
85
+
86
+ - **Text Formatting** - Bold, italic, underline, strikethrough, code, highlight
87
+ - **Headings** - H1-H6 with custom styles per theme
88
+ - **Lists** - Ordered, unordered, and task lists with nested support
89
+ - **Text Alignment** - Left, center, right, justify
90
+ - **Colors** - Text color, background color, and highlight with color picker
91
+ - **Images** - Upload, resize, drag-to-adjust with intuitive controls
92
+ - **Links** - Smart link editing with preview bubble
93
+ - **Tables** - Full-featured table support with merge, split, and styling
94
+ - **Code Blocks** - Syntax highlighting powered by Lowlight
95
+ - **Typography** - Font family, size, line height control
96
+ - **Special Formats** - Subscript, superscript, format painter
97
+ - **Math Formulas** - KaTeX-powered inline and block math equations
98
+
99
+ ### ๐Ÿค– AI-Powered Features
100
+
101
+ **Note:** AI features work with any OpenAI-compatible API. Configure your own API key in the AI Settings.
102
+
103
+ - **โœจ Continue Writing** - AI completes your sentences and paragraphs intelligently
104
+ - **๐Ÿ“ Polish Text** - Improve grammar, clarity, and style automatically
105
+ - **๐ŸŒ Translation** - Translate to 14+ languages with one click
106
+ - **๐Ÿ“„ Summarize** - Extract key points from long text
107
+ - **๐Ÿค– Custom AI Commands** - Define your own AI transformations
108
+
109
+ **Supported AI Providers:**
110
+ - OpenAI (GPT-4, GPT-3.5)
111
+ - ้˜ฟ้‡Œไบ‘้€šไน‰ๅƒ้—ฎ (Aliyun Qianwen)
112
+ - DeepSeek
113
+ - Ollama (local deployment)
114
+ - Any OpenAI-compatible API
115
+
116
+ ### ๐Ÿš€ Advanced Features
117
+
118
+ - **Real-time Collaboration** - Multi-user editing powered by Yjs
119
+ - **Drag & Drop** - Intuitive content reordering with visual feedback
120
+ - **Search & Replace** - Find and replace text across the document
121
+ - **Keyboard Shortcuts** - Productivity-focused shortcuts for power users
122
+ - **Responsive Design** - Optimized for mobile, tablet, and desktop
123
+ - **Preview Mode** - Read-only rendering for content review
124
+ - **Zoom Control** - Scale from 50% to 200%
125
+ - **Version History** - Track and restore previous versions
126
+ - **Format Painter** - Copy formatting across content
127
+ - **Paste Support** - Smart paste from Word, Excel, and web pages
128
+
129
+ ---
130
+
131
+ ## ๐Ÿ“ฆ Installation
132
+
133
+ ### From GitHub
134
+
135
+ ```bash
136
+ # Using npm
137
+ npm install benngaihk/Tiptap-UI-Kit
138
+
139
+ # Using pnpm (recommended)
140
+ pnpm add benngaihk/Tiptap-UI-Kit
141
+
142
+ # Using yarn
143
+ yarn add benngaihk/Tiptap-UI-Kit
144
+ ```
145
+
146
+ ### Peer Dependencies
147
+
148
+ Tiptap UI Kit requires the following peer dependencies:
149
+
150
+ ```bash
151
+ pnpm add @tiptap/core @tiptap/pm @tiptap/starter-kit @tiptap/vue-3 vue
152
+ ```
153
+
154
+ ---
155
+
156
+ ## ๐Ÿš€ Quick Start
157
+
158
+ ### Basic Usage
159
+
160
+ ```vue
161
+ <template>
162
+ <TiptapProEditor
163
+ v-model="content"
164
+ :theme="theme"
165
+ :locale="locale"
166
+ />
167
+ </template>
168
+
169
+ <script setup>
170
+ import { ref } from 'vue'
171
+ import { TiptapProEditor } from 'tiptap-ui-kit'
172
+ import 'tiptap-ui-kit/style.css'
173
+
174
+ const content = ref('<p>Hello Tiptap UI Kit!</p>')
175
+ const theme = ref('notion') // default | word | notion | github | typora
176
+ const locale = ref('en-US') // en-US | zh-CN | zh-TW
177
+ </script>
178
+ ```
179
+
180
+ ### With AI Features
181
+
182
+ ```vue
183
+ <template>
184
+ <TiptapProEditor
185
+ v-model="content"
186
+ :ai-config="{
187
+ provider: 'openai',
188
+ apiKey: 'your-api-key',
189
+ model: 'gpt-4o-mini'
190
+ }"
191
+ />
192
+ </template>
193
+ ```
194
+
195
+ **๐Ÿ”’ Security Note:** Never hardcode API keys in production. Use environment variables or let users configure their own keys via the AI Settings modal.
196
+
197
+ ### Advanced Configuration
198
+
199
+ ```vue
200
+ <template>
201
+ <TiptapProEditor
202
+ v-model="content"
203
+ :theme="theme"
204
+ :locale="locale"
205
+ :readonly="false"
206
+ :word-mode="true"
207
+ :dark-mode="isDark"
208
+ :show-toolbar="true"
209
+ :show-footer="true"
210
+ :placeholder="'Start writing...'"
211
+ @update:modelValue="handleUpdate"
212
+ />
213
+ </template>
214
+
215
+ <script setup>
216
+ import { ref } from 'vue'
217
+ import { TiptapProEditor } from 'tiptap-ui-kit'
218
+ import 'tiptap-ui-kit/style.css'
219
+
220
+ const content = ref('')
221
+ const theme = ref('word')
222
+ const locale = ref('zh-CN')
223
+ const isDark = ref(false)
224
+
225
+ const handleUpdate = (newContent) => {
226
+ console.log('Content updated:', newContent)
227
+ }
228
+ </script>
229
+ ```
230
+
231
+ ---
232
+
233
+ ## ๐Ÿ“š Documentation
234
+
235
+ ### Themes
236
+
237
+ Tiptap UI Kit comes with 5 professionally designed themes:
238
+
239
+ | Theme | Description | Best For |
240
+ |-------|-------------|----------|
241
+ | **default** | Clean and minimal design | General purpose editing |
242
+ | **word** | Microsoft Word-like with A4 pages | Formal documents, reports |
243
+ | **notion** | Modern, distraction-free | Note-taking, knowledge base |
244
+ | **github** | Developer-friendly markdown | Technical documentation |
245
+ | **typora** | Elegant reading/writing | Long-form content, blogs |
246
+
247
+ ```vue
248
+ <TiptapProEditor theme="notion" />
249
+ ```
250
+
251
+ ### Localization
252
+
253
+ Supported languages: `en-US`, `zh-CN`, `zh-TW`
254
+
255
+ ```vue
256
+ <TiptapProEditor locale="zh-CN" />
257
+ ```
258
+
259
+ ### AI Configuration
260
+
261
+ Configure AI features via props or the built-in settings modal:
262
+
263
+ ```typescript
264
+ interface AiConfig {
265
+ provider: 'openai' | 'aliyun' | 'deepseek' | 'ollama'
266
+ apiKey: string
267
+ baseUrl?: string // Optional custom endpoint
268
+ model?: string // Optional model name
269
+ }
270
+ ```
271
+
272
+ ### API Reference
273
+
274
+ Full API documentation is available in the [API.md](API.md) file.
275
+
276
+ ---
277
+
278
+
279
+ ## ๐Ÿ’ก Use Cases
280
+
281
+ Tiptap UI Kit is ideal for:
282
+
283
+ - **CMS / Content Management Systems** โ€” Drop-in editor component for admin panels (similar to WordPress Gutenberg, but Vue-native)
284
+ - **Knowledge Base / Wiki** โ€” Notion-like editing experience with collaboration support
285
+ - **Note-Taking Applications** โ€” Rich text editing with AI-powered writing assistance
286
+ - **Document Editors** โ€” Word-like A4 pagination mode for formal documents and reports
287
+ - **Blog Platforms** โ€” Typora/GitHub-style markdown editing with live preview
288
+ - **SaaS Applications** โ€” Any Vue 3 app that needs embedded rich text editing
289
+ - **Educational Platforms** โ€” Math formula support (KaTeX) and collaborative editing
290
+ - **Email Composers** โ€” Rich formatting with clean HTML output
291
+
292
+ ### Searching for...?
293
+
294
+ If you're looking for any of the following, Tiptap UI Kit is a great fit:
295
+
296
+ - Tiptap Vue 3 template / boilerplate / starter kit
297
+ - Vue 3 rich text editor component
298
+ - Vue WYSIWYG editor with AI
299
+ - Notion-like editor for Vue
300
+ - Word-like document editor for Vue
301
+ - ProseMirror Vue 3 wrapper
302
+ - Open-source alternative to Tiptap Editor (paid)
303
+ - Vue 3 collaborative text editor
304
+ - Tiptap dark mode theme
305
+ - Tiptap Chinese / i18n support
306
+
307
+ ---
308
+
309
+ ## ๐Ÿ› ๏ธ Development
310
+
311
+ ### Setup
312
+
313
+ ```bash
314
+ # Clone the repository
315
+ git clone https://github.com/benngaihk/Tiptap-UI-Kit.git
316
+ cd Tiptap-UI-Kit
317
+
318
+ # Install dependencies
319
+ pnpm install
320
+
321
+ # Start development server
322
+ pnpm dev
323
+ ```
324
+
325
+ ### Build
326
+
327
+ ```bash
328
+ # Build library
329
+ pnpm build
330
+
331
+ # Build demo site
332
+ pnpm build:demo
333
+
334
+ # Run type checking
335
+ pnpm typecheck
336
+
337
+ # Run tests
338
+ pnpm test
339
+ ```
340
+
341
+ ### Project Structure
342
+
343
+ ```
344
+ src/
345
+ โ”œโ”€โ”€ ai/ # AI features (continue writing, polish, etc.)
346
+ โ”œโ”€โ”€ core/ # Core editor components
347
+ โ”œโ”€โ”€ extensions/ # Tiptap extensions
348
+ โ”œโ”€โ”€ features/ # Toolbar features (basic & advanced)
349
+ โ”œโ”€โ”€ locales/ # Internationalization
350
+ โ”œโ”€โ”€ themes/ # Theme presets
351
+ โ”œโ”€โ”€ tools/ # Optional tools (collaboration, etc.)
352
+ โ””โ”€โ”€ ui/ # Reusable UI components
353
+ ```
354
+
355
+ ---
356
+
357
+ ## ๐Ÿค Contributing
358
+
359
+ We love contributions! Whether it's bug reports, feature requests, or pull requests - all contributions are welcome.
360
+
361
+ ### How to Contribute
362
+
363
+ 1. ๐Ÿด Fork the repository
364
+ 2. ๐ŸŒฟ Create your feature branch (`git checkout -b feature/amazing-feature`)
365
+ 3. ๐Ÿ’พ Commit your changes (`git commit -m 'Add amazing feature'`)
366
+ 4. ๐Ÿ“ค Push to the branch (`git push origin feature/amazing-feature`)
367
+ 5. ๐ŸŽ‰ Open a Pull Request
368
+
369
+ Please read our [Contributing Guide](CONTRIBUTING.md) for more details.
370
+
371
+ ### Development Guidelines
372
+
373
+ - Write clear commit messages
374
+ - Add tests for new features
375
+ - Update documentation as needed
376
+ - Follow the existing code style
377
+ - Ensure all tests pass before submitting
378
+
379
+ ---
380
+
381
+ ## ๐Ÿ› Bug Reports & Feature Requests
382
+
383
+ Found a bug or have a feature request?
384
+
385
+ - ๐Ÿ› [Report a Bug](https://github.com/benngaihk/Tiptap-UI-Kit/issues/new?template=bug_report.md)
386
+ - ๐Ÿ’ก [Request a Feature](https://github.com/benngaihk/Tiptap-UI-Kit/issues/new?template=feature_request.md)
387
+
388
+ ---
389
+
390
+ ## ๐Ÿ’– Support the Project
391
+
392
+ If you find Tiptap UI Kit useful, please consider:
393
+
394
+ - โญ **Star the repository** - It helps others discover the project!
395
+ - ๐Ÿฆ **Share on social media** - Spread the word!
396
+ - โ˜• **Buy me a coffee** - Your support keeps me motivated!
397
+
398
+ <div align="center">
399
+
400
+ ### โ˜• ่ฏทไฝœ่€…ๅ–ๆฏๅ’–ๅ•ก | Buy Me a Coffee
401
+
402
+ [![Sponsor](https://img.shields.io/badge/โ˜•_Sponsor_Me-FF813F?style=for-the-badge&logo=buy-me-a-coffee&logoColor=white)](https://tiptap-ui-kit.vercel.app/sponsor.html)
403
+
404
+ **ๆ‚จ็š„ๆ”ฏๆŒๆ˜ฏๆˆ‘ๅˆ›ไฝœ็š„ๅŠจๅŠ›๏ผYour support motivates my creation!**
405
+
406
+ </div>
407
+
408
+ ---
409
+
410
+ ## ๐Ÿ“„ License
411
+
412
+ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
413
+
414
+ **TL;DR:** You can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software. Free for commercial and personal use! ๐ŸŽ‰
415
+
416
+ ---
417
+
418
+ ## ๐Ÿ™ Acknowledgments
419
+
420
+ Built with these amazing technologies:
421
+
422
+ - [Tiptap](https://tiptap.dev/) - The headless editor framework
423
+ - [Vue 3](https://vuejs.org/) - The progressive JavaScript framework
424
+ - [ProseMirror](https://prosemirror.net/) - The powerful editing toolkit
425
+ - [Ant Design Vue](https://antdv.com/) - High-quality UI components
426
+ - [Yjs](https://github.com/yjs/yjs) - Real-time collaboration
427
+ - [KaTeX](https://katex.org/) - Math rendering
428
+ - [Lowlight](https://github.com/wooorm/lowlight) - Syntax highlighting
429
+
430
+ Special thanks to all our [contributors](https://github.com/benngaihk/Tiptap-UI-Kit/graphs/contributors)!
431
+
432
+ ---
433
+
434
+ ## ๐Ÿ“ฎ Contact
435
+
436
+ - **Author**: benngaihk
437
+ - **GitHub**: [@benngaihk](https://github.com/benngaihk)
438
+ - **Issues**: [GitHub Issues](https://github.com/benngaihk/Tiptap-UI-Kit/issues)
439
+
440
+ ---
441
+
442
+ <div align="center">
443
+
444
+ **Made with โค๏ธ by the open source community**
445
+
446
+ If you like this project, please give it a โญ!
447
+
448
+ [โฌ† Back to Top](#tiptap-ui-kit)
449
+
450
+ </div>
Binary file
Binary file