排版工匠 Forma
Markdown 进来,微信 HTML 出去。为 AI Agent 设计的微信公众号排版 API。

快速开始

curl -X POST https://forma.blackcamellia.xin/api/v1/render \
  -H "Content-Type: application/json" \
  -d '{"content":"# 你好世界\n\n这是**公开API**。","theme":"swiss"}'

响应格式

{
  "success": true,
  "data": {
    "html": "<h1>你好世界</h1>...",
    "css": "#forma { ... }",
    "meta": { "wordCount": 12, "readingTimeMinutes": 1 }
  },
  "theme": { "id": "swiss", "name": "克莱因笔记" }
}

四款版式

ID名称
swiss
克莱因笔记
Klein 蓝极简主义,编号标题
evolution-cat
蓝调书房
暖蓝阅读室,衬线体叙事
default
素白信笺
洁净信纸,通用百搭
暖纸
旧纸书摘
复古暖纸,文学质感

API 端点

POST/api/v1/render渲染 Markdown → 微信 HTML
GET/api/v1/health健康检查
GET/api/v1/themes获取版式列表

AI 发现

AI Agent 入口:llms.txt·llms-full.txt·openapi.json

Forma · 排版从容