@clepit/core

中文文档
0.9.0发布于 2026/11/14MITTypeScriptESM + CJS零依赖近 30 天下载 6109

Clepit: a block-style editor with clean JSON output and a renderer that works with or without a browser. Framework-agnostic core.

原始使用文档
文档目录4 节
  1. Install
  2. Quick start
  3. Documentation
  4. License

@clepit/core

Clepit is a block-style editor with clean JSON output and a renderer that works with or without a browser. This package is the framework-agnostic core behind clepit.com: the editor, the renderer, and the theming engine, with no framework dependency.

Install

bun add @clepit/core
# or
npm install @clepit/core

Quick start

import { Editor } from '@clepit/core';

const editor = Editor.create({ containerId: 'editor', theme: 'auto' });
const data = editor.data.extract();

Documentation

The full documentation lives at clepit.com/docs and is rendered with this package:

Using React? @clepit/react wraps this core in server-first components. Building with Dart or Flutter? clepit_core is the native twin.

License

MIT. See LICENSE.

版本与发布记录

@clepit/core 共发布 63 个版本,首次发布于 2026/08/11;过去 12 个月发布了 63 个版本。

版本发布日期距今
0.9.0latest2026/11/14今天
0.9.0-beta.706beta2026/11/121 天前
0.9.0-beta.6692026/11/113 天前
0.9.0-beta.6182026/11/094 天前
0.8.0-beta.5702026/11/095 天前
0.8.02026/11/085 天前

关于 @clepit/core 的常见问题

@clepit/core 是什么?

Clepit: a block-style editor with clean JSON output and a renderer that works with or without a browser. Framework-agnostic core.

如何安装 @clepit/core?

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

@clepit/core 支持 TypeScript 吗?

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

@clepit/core 支持 ESM 还是 CommonJS?

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

@clepit/core 可以商用吗?

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

@clepit/core 的下载量有多少?

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

@clepit/core 还在维护吗?

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