clickgo

中文文档
7.7.2发布于 2026/11/03Apache-2.0TypeScriptES Module零依赖

Background interface, software interface, mobile phone APP interface operation library.

原始使用文档
文档目录6 节
  1. Installation
  2. Usage
  3. NPM
  4. Notes
  5. Demo
  6. License

ClickGo

ClickGo

License NPM stable version GitHub releases GitHub issues

简体中文

Build web and native apps using HTML + CSS.

Applications can be compiled into a single cga file and run on the web or on the local system via ClickGo Native. You can build applications such as image editors, database management tools and file browsers, as well as admin panels.

Project statement: This project was first committed to GitHub on November 1, 2016. In 2026, it formally introduced AI-assisted development and adaptations for AI integration, but software engineers still lead, review, verify and test the project; it is not automatically generated by simply telling AI what we want. Non-Chinese content is translated with assistance from Byterun Translator, so the wording may have an AI-like tone.

ClickGo ClickGo ClickGo

Installation

First, set the loading path for the ClickGo module, then import your entry file.

index.html

<script type="importmap">
{
    "imports": {
        "clickgo": "https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js"
    }
}
</script>
<script type="module" src="index.js"></script>

It can also carry parameters and global variables.

<script>
clickgo = {
    'config': {
        'cdn': 'https://cdn.jsdelivr.net',
    },
    'global': {},
};
</script>

Usage

Use the ClickGo Compiler to compile the app folder into a cga file, then compile the entry file and reference it in the browser.

For splitting Forms in large applications, see Local application components and Dock.

Applications can use shared commands to connect buttons, menus, shortcuts, command palettes and AI interfaces to the same business execution logic. For the complete command registration, HTTP MCP, stdio and CLI integration workflow for desktop applications, see the ClickGo Native Simplified Chinese documentation.

index.html

<script type="module" src="index.pack.js"></script>

index.js

import * as clickgo from 'clickgo';
class Boot extends clickgo.AbstractBoot {
    public async main(): Promise<void> {
        await clickgo.task.run(this._sysId, 'xxx.cga');
    }
}
clickgo.launcher(new Boot());

NPM

In a TypeScript environment, installing via NPM provides code completion.

$ npm i clickgo --save-dev
$ npm i jszip --save-dev
$ npm i vue --save-dev

Notes

ClickGo automatically loads the Vue and jszip libraries, so do not include their JS or CSS files.

Demo

Clone the code and visit "dist/test/index.html".

Click here to visit online

License

ClickGo is released under the Apache-2.0 license.

For third-party licenses and attributions, see Third-party licenses.

版本与发布记录

clickgo 共发布 355 个版本,首次发布于 2022/07/09;过去 12 个月发布了 103 个版本。

版本发布日期距今
7.7.2latest2026/11/03今天
7.7.12026/11/021 天前
7.7.02026/11/011 天前
7.6.02026/10/313 天前
7.5.02026/10/304 天前
7.4.22026/10/2410 天前

其他发布通道:beta → 3.2.2-beta3,dev → 4.0.3。

关于 clickgo 的常见问题

clickgo 是什么?

后台接口、软件接口、手机APP接口操作库。

如何安装 clickgo?

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

clickgo 支持 TypeScript 吗?

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

clickgo 支持 ESM 还是 CommonJS?

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

clickgo 可以商用吗?

clickgo 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

clickgo 还在维护吗?

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