Skip to content

A privacy-first, local AI text editor powered by WebLLM. Runs entirely in your browser using WebGPU, no data leaves your device. 一款以隐私为先、基于WebLLM的本地AI文本编辑器。完全通过WebGPU在浏览器中运行,数据绝不离开您的设备。

License

Notifications You must be signed in to change notification settings

MapleGCM/LocalEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCM Local Editor

一个完全在浏览器里的 AI 文本编辑器,用 WebGPU 在访问者本地运行 AI 模型。数据不会离开设备。

A text editor that runs entirely in your browser, using WebGPU to run AI models locally. Your data never leaves your device.


它能做什么

将你输入的文本进行结构化处理,包含导语等内容,并优化你的整体语法、语序,处理文本内容。

What it does

Structure your input text, including elements like the lead paragraph, and optimize your overall grammar and sentence structure.


为什么用它

  • 完全本地运行,不需要 API Key,不需要联网
  • 数据不出设备,隐私保障
  • 第一次下载模型后,后续使用不需要网络
  • 流式输出,边生成边显示

Why use it

  • Runs completely locally, no API keys or internet required
  • Your data stays on your device
  • After the initial model download, works offline
  • Streaming output - see results as they're generated

技术细节

  • WebLLM:在浏览器里运行大模型
  • WebGPU:用显卡加速推理
  • Marked.js:渲染 Markdown

Tech stack

  • WebLLM: Run LLMs in the browser
  • WebGPU: GPU-accelerated inference
  • Marked.js: Markdown rendering

系统要求

需要支持 WebGPU 的浏览器:

  • Chrome/Edge 113 或更新
  • Safari 18+ (macOS/iOS)
  • Firefox 110+ (实验性支持)

还需要一块支持 WebGPU 的显卡,以及约 1GB 的磁盘空间(首次下载模型用)。

Requirements

You need a browser with WebGPU support:

  • Chrome/Edge 113 or newer
  • Safari 18+ (macOS/iOS)
  • Firefox 110+ (experimental)

Also need a GPU with WebGPU drivers and ~1GB disk space for the initial model download.


怎么用

  1. 用主流浏览器打开 index.html
  2. 等模型加载完成(第一次需要下载,可能需要几分钟)
  3. 在左边输入框粘贴你的草稿
  4. 点 "Start Rewrite" 开始生成
  5. 右边会实时显示格式化后的 Markdown,可以复制

How to use

  1. Open index.html in a WebGPU-compatible browser
  2. Wait for the model to load (first time will download, may take a few minutes)
  3. Paste your draft in the left input box
  4. Click "Start Rewrite" to begin
  5. Formatted Markdown appears on the right in real-time, ready to copy

输出格式

生成的内容会包含:

  • 标题(H1)
  • 摘要(Blockquote)
  • 正文章节(H2 + 列表)

Output format

The output includes:

  • Title (H1)
  • Summary (Blockquote)
  • Content sections (H2 + bullet points)

DEMO演示站点

GCM Local Editor

DEMO Website

GCM Local Editor


开发者团队

  • MapleGCM @楓零Matthew.X(枫语云团队)
  • MapleGCM @Jonny.L(枫义GCM团队)
  • MapleGCM @伊语Ivan.Y(枫义GCM团队)

Development team

  • @楓零Matthew.X (MapleIDC Team)
  • @Jonny.L (MapleGCM Team)
  • @伊语Ivan.Y (MapleGCM Team)

开源协议

MIT License,详见 LICENSE 文件。

License

MIT License, see LICENSE file for details.

About

A privacy-first, local AI text editor powered by WebLLM. Runs entirely in your browser using WebGPU, no data leaves your device. 一款以隐私为先、基于WebLLM的本地AI文本编辑器。完全通过WebGPU在浏览器中运行,数据绝不离开您的设备。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published