@fullscript/fullscript-js

中文文档
3.4.0发布于 2026/10/27MITTypeScriptCommonJS近 30 天下载 68.1万

Embeddable fullscript components

原始使用文档
文档目录3 节
  1. Demo
  2. create-react-app demo
  3. UMD demo

Fullscript Embed Documentation

Please visit the Fullscript Embed docs to get started.

Demo

In the project directory, we have two demo apps - React demo and UMD demo that you can experiment with.

create-react-app demo

The create-react-app demo app will use the npm package version of the Fullscript Embed library. Compared to the CDN version, the npm package version will contain typing information for your IDE and requires a bundler for packaging.

To get things started, please run the following from the root of the project:

  1. yarn link
  2. yarn install
  3. yarn build

Next run the following from the react-demo directory cd demo/react-demo:

  1. yarn link @fullscript/fullscript-js
  2. yarn install

Next you can run the React app using one of the options below:

  • yarn start (from inside demo/react-demo)
  • yarn demo:npm (from the root of the project)

UMD demo

The UMD version of the Fullscript Embed library is pre-packaged for consumption by browsers. This does not rely on a bundler such as webpack and can be included via a single script tag in any html file. The downside of this version is that you do no benefit from typing information.

To run the demo, you need simply run the following from the root of the project:

  • yarn install (from inside demo/javascript-demo/server)
  • yarn demo:umd (from the root of the project)

版本与发布记录

@fullscript/fullscript-js 共发布 24 个版本,首次发布于 2021/05/08;过去 12 个月发布了 2 个版本。

版本发布日期距今
3.4.0latest2026/10/2720 天前
3.3.02026/09/301 个月前
3.2.02025/08/071.3 年前
3.1.02025/07/301.3 年前
3.0.12025/06/191.4 年前
3.0.02025/05/231.5 年前

关于 @fullscript/fullscript-js 的常见问题

@fullscript/fullscript-js 是什么?

Embeddable fullscript components

如何安装 @fullscript/fullscript-js?

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

@fullscript/fullscript-js 支持 TypeScript 吗?

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

@fullscript/fullscript-js 支持 ESM 还是 CommonJS?

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

@fullscript/fullscript-js 可以商用吗?

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

@fullscript/fullscript-js 的下载量有多少?

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

@fullscript/fullscript-js 还在维护吗?

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