@digital-blueprint/formalize-app

中文文档
1.5.1发布于 2026/11/10LGPL-2.1-or-laterES Module构建来源已验证近 30 天下载 2836

GitHub Repository | npmjs package | Unpkg CDN | [Formalize Bundle](https:

原始使用文档
文档目录11 节
  1. Prerequisites
  2. Local development
  3. Using this app as pre-built package
  4. Install app
  5. Update app
  6. Activities
  7. Adapt app
  8. Functionality
  9. Design
  10. "dbp-formalize" slots
  11. Notice

Formalize Application

GitHub Repository | npmjs package | Unpkg CDN | Formalize Bundle

Build, Test and Publish

Management of form entries that have been created via external systems.

Prerequisites

Local development

# get the source
git clone [email protected]:digital-blueprint/formalize-app.git
cd formalize-app
git submodule update --init

# install dependencies
npm install

# constantly build dist/bundle.js and run a local web-server on port 8001
npm run watch

# constantly build dist/bundle.js and run a local web-server on port 8001 using a custom assets directory assets_local/
npm run watch-local

# run tests
npm test

Jump to https://localhost:8001, and you should get a Single Sign On login page.

Using this app as pre-built package

Install app

If you want to install the dbp formalize app in a new folder formalize-app you can call:

npx @digital-blueprint/cli install-app formalize formalize-app /

Warning: There may be issues when you run these commands as root user, best use a non-root user, like www-data. To do this you can for example open a shell with runuser -u www-data -- bash.

Afterwards you can point your Apache web-server to formalize-app/public.

Make sure you are allowing .htaccess files in your Apache configuration.

Also make sure to add all of your resources you are using (like your API and Keycloak servers) to the Content-Security-Policy in your formalize-app/public/.htaccess, so the browser allows access to those sites.

You can also use this app directly from the Unpkg CDN for example like this: dbp-formalize/index.html

Note that you will need a Keycloak server along with a client id for the domain you are running this html on.

Update app

If you want to update the dbp formalize app in the current folder you can call:

npx @digital-blueprint/cli update-app formalize

Warning: There may be issues when you run these commands as root user, best use a non-root user, like www-data. To do this you can for example open a shell with runuser -u www-data -- bash.

Activities

This app has the following activities:

  • dbp-formalize-manage-forms
  • dbp-formalize-manage-submissions
  • dbp-formalize-render-from

You can find the documentation of the activity in the formalize activities documentation.

Adapt app

Functionality

You can add multiple attributes to the <dbp-formalize> tag.

attribute namevaluedescription
provider-rootBooleanapp-shell
langStringlanguage-select
entry-point-urlStringapp-shell
keycloak-configObjectapp-shell
base-pathStringapp-shell
srcStringapp-shell
html-overridesStringcommon
themesArraytheme-switcher
darkModeThemeOverrideStringtheme-switcher

Mandatory attributes

If you are not using the provider-root attribute to "terminate" all provider attributes you need to manually add these attributes so that the topic will work properly:

<dbp-formalize auth requested-login-status analytics-event></dbp-formalize>

Design

For frontend design customizations, such as logo, colors, font, favicon, and more, take a look at the theming documentation.

"dbp-formalize" slots

These are common slots for the app-shell. You can find the documentation of these slots in the app-shell documentation. For the app specific slots take a look at the formalize activities.

Notice

We are using autogenerated table header for creating the submission tables.

A get query is made to dbp-relay. This returns a json. This json contains various data of the previous posted submission.

To post a form to the api, take a look at: operations-Formalize-postFormalizeSubmissionCollection. This post contains the name of the form "form" and the data of the form "dataFeedElement". the data must be a valid json as a string, i.e. quotation marks must be escaped with a "". The data keys of forms with the same "form" name must be consistent, otherwise the new keys are not displayed and no data would be displayed in the old key table header.

版本与发布记录

@digital-blueprint/formalize-app 共发布 9 个版本,首次发布于 2023/02/07;过去 12 个月发布了 3 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.5.1latest2026/11/101 天前
1.4.22026/10/1330 天前
1.4.12026/10/061 个月前
1.3.02025/06/051.4 年前
1.2.22025/02/171.7 年前
1.1.02024/06/202 年前

关于 @digital-blueprint/formalize-app 的常见问题

@digital-blueprint/formalize-app 是什么?

GitHub Repository | npmjs package | Unpkg CDN | [Formalize Bundle](https:

如何安装 @digital-blueprint/formalize-app?

在项目目录运行 npm install @digital-blueprint/formalize-app,或使用 pnpm add / yarn add / bun add。

@digital-blueprint/formalize-app 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/digital-blueprint__formalize-app 是否存在。

@digital-blueprint/formalize-app 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@digital-blueprint/formalize-app 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@digital-blueprint/formalize-app 可以商用吗?

@digital-blueprint/formalize-app 使用 LGPL-2.1-or-later 许可。弱 Copyleft:作为库被调用时通常不要求开源你自己的代码,但修改库本身需以 LGPL 开源;前端打包合并后的适用边界存在不同理解。以上为概括,不构成法律意见,请以许可原文为准。

@digital-blueprint/formalize-app 的下载量有多少?

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

@digital-blueprint/formalize-app 还在维护吗?

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