@elonzh/fafa 0.0.0-stage → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +55 -2
- package/dist/bin.js +8 -0
- package/dist/chunk-LKU762XJ.js +2807 -0
- package/dist/chunk-ZCVVJMRN.js +3311 -0
- package/dist/dist-G3FZO234.js +12 -0
- package/dist/index.js +9 -0
- package/package.json +65 -4
- package/themes/base.css +191 -0
- package/themes/default.css +32 -0
- package/themes/elegant.css +50 -0
- package/themes/green.css +47 -0
- package/themes/minimal.css +47 -0
- package/themes/official.css +74 -0
- package/themes/tech.css +47 -0
- package/themes/warm.css +48 -0
- package/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/web/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/web/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/web/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/web/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/web/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/web/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/web/assets/index-BT8QLdyk.css +1 -0
- package/web/assets/index-IRxKoB6K.js +25 -0
- package/web/icon.svg +6 -0
- package/web/index.html +31 -0
- package/web/manifest.webmanifest +17 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 elonzh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 发发 FaFa (`@elonzh/fafa`)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
本地优先的微信公众号 Markdown 排版预览、导出与草稿投递工具箱(CLI + 内置本机常驻 Web 工作台)。以 Markdown、front matter 和本地素材为权威来源,生成稳定的微信公众号 HTML、离线预览与 HTML/PDF/PNG 导出,并安全地创建或原位更新公众号草稿箱。
|
|
4
|
+
|
|
5
|
+
> FaFa 的远端终点永远是微信公众号草稿箱,没有正式发布命令;最终发布必须在公众号后台人工完成。
|
|
6
|
+
|
|
7
|
+
## 安装 / Install
|
|
8
|
+
|
|
9
|
+
需要 Node.js 22 或更高版本:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install -g @elonzh/fafa
|
|
13
|
+
fafa --version
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
也可以免安装单次执行:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npx @elonzh/fafa --version
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 本地常驻 Web 工作台 / Local Web Workbench
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
# 一键安装开机自启常驻服务(默认监听 http://127.0.0.1:47890)
|
|
26
|
+
fafa service install
|
|
27
|
+
|
|
28
|
+
# 打开本地 Web 工作台(默认直连 http://127.0.0.1:47890,可传项目目录自动登记并跳转)
|
|
29
|
+
fafa ui
|
|
30
|
+
fafa ui ./my-content
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 常用命令行 / Quick Start
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
fafa init ./my-content
|
|
37
|
+
fafa --project ./my-content articles
|
|
38
|
+
fafa --project ./my-content check content/hello.md
|
|
39
|
+
fafa --project ./my-content render content/hello.md
|
|
40
|
+
fafa --project ./my-content export content/hello.md --format png --width 390
|
|
41
|
+
fafa --project ./my-content draft push content/hello.md --account main --dry-run
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 安装 Agent Skills / Install Agent Skills
|
|
45
|
+
|
|
46
|
+
配合 Codex、Claude Code 等 Agent 使用时,可从 GitHub 安装仓库内置的 `fafa` 与 `creating-fafa-themes` Skills:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
npx skills add elonzh/fafa --global
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 文档与仓库 / Links
|
|
53
|
+
|
|
54
|
+
- 公开文档:<https://elonzh.github.io/fafa/>
|
|
55
|
+
- 源码仓库:<https://github.com/elonzh/fafa>
|
|
56
|
+
- 许可证:MIT
|