@creaditor/web-starterkit

中文文档
1.0.60发布于 2026/11/11ISCCommonJS零依赖近 30 天下载 3399

Creaditor Web Editor - Starterkit for building beautiful web pages

原始使用文档
文档目录8 节
  1. ✨ Features
  2. 📦 Installation
  3. 🚀 Quick Start
  4. Simple HTML Integration
  5. 🔧 Configuration
  6. Publish
  7. 🏗️ How it's built
  8. 📄 License

@creaditor/web-starterkit

🌐 A powerful visual editor for building beautiful web pages

A drag-and-drop web page editor with everything built-in. No external dependencies required!

✨ Features

  • 🎨 Visual Drag & Drop - Intuitive interface for building web pages
  • 📱 Responsive Design - Mobile-friendly pages out of the box
  • 🔧 Customizable - Full control over styles and components
  • 🌍 i18n Support - Multiple languages supported
  • 💾 Auto-save - Never lose your work
  • 📝 Rich Text Editor - Powerful text editing capabilities
  • 🖼️ Media Gallery - Easy image and media management
  • ⚡ Self-Contained - All files bundled, no CDN required

📦 Installation

npm install @creaditor/web-starterkit

Or with yarn:

yarn add @creaditor/web-starterkit

🚀 Quick Start

Simple HTML Integration

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Web Editor</title>
</head>
<body>
    <div id="root"></div>

    <!-- Load the editor bundle -->
    <script src="node_modules/@creaditor/web-starterkit/dist/creaditor.bundle.js"></script>

    <script>
        // Initialize the editor
        const editor = new cdtrStarter({
            target: document.getElementById('root'),
            width: '1000px',
            language: 'en',
            onSave: (data) => {
                console.log('Page saved:', data);
                // Send to your backend
            }
        });
    </script>
</body>
</html>

🔧 Configuration

The web starterkit shares the same cdtrStarter API as the newsletter starterkit. The key differences are:

OptionNewsletter defaultWeb default
channel"newsletter""web"
width650px1000px

Note: The web engine does not yet ship a prebuilt sections catalog (the newsletter starterkit exposes hero / team / testimonials / footer sections). sections is currently empty for web and will be populated as web section templates are added under engines/web/sections.

Publish

On the web channel the Publish button opens the SEO modal, publishes, then calls your onPublish hook — with the loader still up — so you can run your own follow-up before the user sees the success card. See PUBLISH-HOOK.md for the signature, how to signal completion, and the creaditor:publish window event.

🏗️ How it's built

This package is a thin wrapper. The bundle is produced from @creaditor/core:

cd ../../core && npm run build:web:starterkit
# outputs to core/web-starterkit-dist/, then copied into dist/ on publish
  • Entry: core/web.starterkit.index.js
  • Webpack config: core/webpack.web.starterkit.js

📄 License

ISC

版本与发布记录

@creaditor/web-starterkit 共发布 53 个版本,首次发布于 2026/06/28;过去 12 个月发布了 53 个版本。

版本发布日期距今
1.0.60latest2026/11/11今天
1.0.592026/11/101 天前
1.0.582026/11/101 天前
1.0.552026/11/091 天前
1.0.542026/11/091 天前
1.0.522026/11/082 天前

关于 @creaditor/web-starterkit 的常见问题

@creaditor/web-starterkit 是什么?

Creaditor Web Editor - Starterkit for building beautiful web pages

如何安装 @creaditor/web-starterkit?

在项目目录运行 npm install @creaditor/web-starterkit,或使用 pnpm add / yarn add / bun add。

@creaditor/web-starterkit 支持 TypeScript 吗?

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

@creaditor/web-starterkit 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@creaditor/web-starterkit 可以商用吗?

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

@creaditor/web-starterkit 的下载量有多少?

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

@creaditor/web-starterkit 还在维护吗?

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