@openpages/vue

Vue 3 layout engine for comics and newspaper-style pages
1,037
Install
npm install @openpages/vue
Latest Version:0.6.0
Vue:3
License:MIT
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: pieisalietoo

@openpages/vue

Embeddable Vue 3 layout engine for comics, newspapers, magazines, and similar print-inspired pages — sections with rich in-place format tooling, multi-column text flow, and avoidance zones for overlapping content.

Stack: Vue 3 · TypeScript · MIT

Install

pnpm add @openpages/vue
# or: npm install @openpages/vue
# or: yarn add @openpages/vue

Peer dependency: vue ^3.5
Node: >=22.14.0

Quick start

Styles are self-contained (Shadow DOM). Do not import @openpages/vue/style.css in the host.

Mount the editor:

<script setup lang="ts">
import { createDocument, OpenPagesEditor, type OpenPagesDocument } from '@openpages/vue'
import { ref } from 'vue'

const doc = ref<OpenPagesDocument>(createDocument({ title: 'Untitled' }))
</script>

<template>
  <OpenPagesEditor v-model="doc" />
</template>

Your host must compile Vue SFCs (@vitejs/plugin-vue or equivalent).

Host-controlled chrome

OpenPagesEditor supports host-driven tooling without forking the package:

Capability How
Enable / disable tools toolEnabled prop or setToolEnabled(id, false)
Activate a tool from outside activateTool(id, payload) + @tool-activate
Named layouts createLayoutLibrary / layoutLibrary
Fonts createFontCatalog / fontCatalog or fonts prop; loadOpenPagesFonts for custom faces
Locale createI18n / i18n prop (built-in en / it)
Export print / PNG / PDF via @export; inject exportAdapters for pixel PNG

Document tools sit on the top toolbar; selection tools float above the selected section(s).

Exports

import {
  OpenPagesEditor,
  OpenPagesRenderer,
  OpenPagesToolbar,
  createDocument,
  createI18n,
  createFontCatalog,
  createLayoutLibrary,
  createExporter,
  createBrowserExportAdapters,
  // …section helpers, fonts, snap, tooling
} from '@openpages/vue'

Types ship with the package (dist/index.d.ts).

Docs & demo

Clone the repo and run pnpm demo for an interactive playground.

License

MIT

Related Packages

vue-page-editor

Vue3 Low-code page editor

1,021
cyp-editor

rich text editor by canvas/svg

2,569
@harshita_joshi/canvas-editor

rich text editor by canvas/svg. This is a fork of https://github.com/Hufe921/can...

318 20
vue-wysiwyg

A WYSIWYG HTML editor for Vue.js

564,994
vue-trumbowyg

Vue.js component for trumbowyg WYSIWYG editor

177,547 231

Version History

Version Released Vue License
0.6.0 ^3.5.0 MIT
0.5.0 ^3.5.0 MIT
0.4.0 ^3.5.0 MIT
0.3.0 ^3.5.0 MIT
0.2.1 ^3.5.0 MIT