@docuseal/vue

中文文档
1.0.55发布于 2026/11/03MITTypeScriptESM + CJS零依赖近 30 天下载 3.6万

DocuSeal Vue components to integrate documents signing process into apps. ✍️

原始使用文档
文档目录5 节
  1. Installation
  2. Documentation
  3. Usage
  4. Signing Form
  5. Form Builder

DocuSeal Vue Components

📙 Documentation | 🚀 Demo App

This package provides a convenient way to embed DocuSeal into Vue apps. Sign documents and create document forms directly in your apps.

Embedded Signing Form

Signing Form

Embedded Form Builder

Form Builder

Installation

npm install @docuseal/vue

Documentation

For detailed documentation, please click here.

Usage

Signing Form

Copy public DocuSeal form URL from https://docuseal.com and use it in the src component prop:

<template>
// ...
  <DocusealForm
    :src="'https://docuseal.com/d/LEVGR9rhZYf86M'"
    :email="'[email protected]'"
  />
// ...
</template>

<script>
// ...
import { DocusealForm } from '@docuseal/vue'

export default {
  name: 'App',
  components: {
    DocusealForm
  },

// ...

}
</script>

Form Builder

<template>
// ...
  <DocusealBuilder
    v-if="token"
    :token="token"
  />
// ...
</template>

<script>
// ...
import { DocusealBuilder } from '@docuseal/vue'

export default {
  name: 'App',
  components: {
    DocusealBuilder
  },
  mounted () {
    this.loadToken()
  },
  methods: {
    loadToken () {
      fetch('/api/docuseal/builder_token', {
        method: 'POST'
      }).then(async (resp) => {
        const data = await resp.json()

        this.token = data.token
      })
    }
  }

// ...

}
</script>

To protect the template builder from unathorized access a secure token (JWT) should be generated on the back-end:

const express = require('express');
const jwt = require('jsonwebtoken');

const app = express();

const secretKey = process.env.DOCUSEAL_API_KEY;

app.post('/api/docuseal/builder_token', (req, res) => {
  const token = jwt.sign({
    user_email: '[email protected]',
    integration_email: '[email protected]', // replace with current user email
    name: 'Integration W-9 Test Form',
    document_urls: ['https://www.irs.gov/pub/irs-pdf/fw9.pdf'],
  }, secretKey);

  res.json({ token });
});

app.listen(8080, () => {
  console.log(`Server is running`);
});

Obtain secret API token (DOCUSEAL_API_KEY env variable) to sign JWT from https://console.docuseal.com/api.

License

MIT

版本与发布记录

@docuseal/vue 共发布 56 个版本,首次发布于 2023/08/29;过去 12 个月发布了 4 个版本。

版本发布日期距今
1.0.55latest2026/11/0310 天前
1.0.542026/05/106 个月前
1.0.532026/04/246 个月前
1.0.522026/02/049 个月前
1.0.512025/11/081 年前
1.0.502025/07/231.3 年前

关于 @docuseal/vue 的常见问题

@docuseal/vue 是什么?

DocuSeal Vue components to integrate documents signing process into apps. ✍️

如何安装 @docuseal/vue?

在项目目录运行 npm install @docuseal/vue,或使用 pnpm add / yarn add / bun add。

@docuseal/vue 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@docuseal/vue 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@docuseal/vue 可以商用吗?

@docuseal/vue 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@docuseal/vue 的下载量有多少?

根据 npm 官方下载统计,@docuseal/vue 在 2026/10/13 – 2026/11/11 这 30 天内被下载 35,720 次,日均约 1,191 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@docuseal/vue 还在维护吗?

最新版本 1.0.55 发布于 2026/11/03(10 天前);至今共发布 56 个版本,其中过去 12 个月发布了 4 个;首次发布于 2023/08/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。