Schematex

01 / 介紹 SCHEMATEX · 免費 · 開源 · 專為 AI 設計

醫生、工程師、律師真正在用的每一種圖表。

Schematex 能繪製醫生、工程師、律師已在手繪的 45 種圖表——臨床家系圖、IEC 61131-3 階梯邏輯、NSGC 譜系圖、股權架構表。輸入文字 DSL,輸出符合標準的 SVG。

genogram·§ McGoldrick 2020
Genogram: Medical History Genogram diagram with 7 individuals across 3 generations Medical History Grandfather (1930-1990) 60 Grandmother (1935) Father (1960) Mother (1962) Uncle (1963) Patient (1988) Sister (1991) Grandfather (1930–1990) Grandmother (b. 1935) Father (b. 1960) Mother (b. 1962) Uncle (b. 1963) Patient (b. 1988) Sister (b. 1991) SYMBOLS Deceased CONDITIONS Heart Disease Diabetes Cancer Hypertension MARKERS Index person (focal subject)
UTF-8 · LF · 10 lines · 550 chars✓ parsed·13.6 KB SVG
McGoldrick 2020IEC 61131-3IEEE 315ANSI Y32.2Newick / NHXNSGC pedigreeMoreno sociometryIshikawa 1968WaveDromISO 5807PRISMA 2020OMG BPMN 2.0UML 2.5.1PMI PMBOK 7Chen 1976IEC 60617McGoldrick 2020IEC 61131-3IEEE 315ANSI Y32.2Newick / NHXNSGC pedigreeMoreno sociometryIshikawa 1968WaveDromISO 5807PRISMA 2020OMG BPMN 2.0UML 2.5.1PMI PMBOK 7Chen 1976IEC 60617

02 / 專業人士真正在用的圖表

你的醫生、工程師或律師真正在用的圖表。

每個圖表家族都是為掌握它的實務工作者而建——從幾行 DSL,到領域專家會放在病歷、備忘錄或許可文件中的版本。每個輸出都符合公開發布的標準。

genogram·§ McGoldrick 2020
Genogram: Medical History Genogram diagram with 7 individuals across 3 generations Medical History Grandfather (1930-1990) 60 Grandmother (1935) Father (1960) Mother (1962) Uncle (1963) Patient (1988) Sister (1991) Grandfather (1930–1990) Grandmother (b. 1935) Father (b. 1960) Mother (b. 1962) Uncle (b. 1963) Patient (b. 1988) Sister (b. 1991) SYMBOLS Deceased CONDITIONS Heart Disease Diabetes Cancer Hypertension MARKERS Index person (focal subject)
For the clinical social worker
Multi-generation medical history

Three-generation family medical history genogram with multi-condition color annotations using fill zones — heart disease, diabetes, cancer, hypertension.

→ 在 Playground 中開啟
pedigree·§ NSGC
Hemophilia A Pedigree chart with 10 individuals across 3 generations I II III I-1 I-2 (carrier-x) II-5 II-2 (carrier-x) II-1 (affected) II-3 II-4 III-1 (affected) III-2 (carrier-x) III-3 I-1 I-2 II-5 II-2 II-1 II-3 II-4 III-1 III-2 III-3 GENETIC STATUS Affected X-linked carrier
For the genetic counselor
Hemophilia A (X-linked recessive)

Three-generation hemophilia A pedigree showing X-linked recessive inheritance with carrier females and affected males per NSGC clinical notation.

→ 在 Playground 中開啟
ecomap·§ Hartman 1978
Ecomap Ecomap diagram with 9 external systems James Age 28 AA Group Bill (Sponsor) Warehouse Job Mom Ex-wife Children (2) Old Friends P.O. Johnson CBT Therapist new, probationary supportive custody conflict supervised visits trying to cut off weekly SYSTEMS Family Legal Mental Health Substance Work TIES Strong Moderate Weak Stressful Broken
For the case manager
Substance abuse recovery

Ecomap charting a client's recovery support network — AA group, family, probation, and therapist — with relationship strength and directional connections.

→ 在 Playground 中開啟
ladder·§ IEC 61131-3
Motor Start/Stop PLC ladder logic diagram with 1 rung Motor Start/Stop Rung 001 — Seal-in circuit — Start Button START_PB IN 1.0 Aux Contact MOTOR_AUX BIT 3.0 Stop Button STOP_PB IN 1.1 Motor Command MOTOR_CMD OUT 2.0
For the controls engineer
Motor start/stop seal-in circuit

Classic three-wire motor start/stop seal-in circuit in IEC 61131-3 ladder logic — the foundational pattern taught in every PLC certification course.

→ 在 Playground 中開啟
sld·§ IEEE 315
Utility + Generator Backup Single-line diagram with 8 nodes and 7 connections Utility + Generator Backup 480V 480V Utility 480V G Emergency Gen 500 kW 480V ATS ATS-1 800A 480V · Critical Load Bus CB1 200A CB2 200A Critical Load 1 100A Critical Load 2 100A
For the facility engineer
Generator + ATS backup power

Single-line diagram for a utility + emergency generator ATS transfer system feeding critical loads on a 480 V bus — per IEEE 315 for facility design review.

→ 在 Playground 中開啟
logic·§ IEEE 91
1-bit Full Adder Logic gate diagram with 5 gates, 3 inputs, 2 outputs XOR AND XOR AND OR A B Cin Sum Cout 1-bit Full Adder
For the electronics designer
1-bit full adder

1-bit full adder built from XOR, AND, and OR gates — the foundational building block of every arithmetic logic unit, from a functional description.

→ 在 Playground 中開啟
entity·§ Tier ownership
Acme Global Holdings Entity structure diagram with 5 entities and 5 relationships Acme Global Holdings 100% 100% 100% IP License · royalty 100% US Acme Global, Inc. Corporation Ultimate Parent IE Acme Ireland Holdings Corporation KY Acme IP Ltd Corporation Holds group IP NL Acme EU Distribution Corporation SG Acme APAC Trading Corporation
For corporate counsel
International tax holding structure

Cross-border tax holding structure with Irish IP company, Dutch distribution, and APAC entity — per OECD BEPS transfer-pricing documentation requirements.

→ 在 Playground 中開啟
fishbone·§ Ishikawa 1968
Fishbone diagram — Website traffic drop — Fishbone diagram Ishikawa cause-and-effect diagram. Effect: Traffic decline. 6 categories. Fishbone diagram — Website traffic drop Traffic decline Content Publishing frequency down Content too generic Keyword gaps Low-quality AI content Backlinks High-quality backlinks lost High ratio of low-quality links Referring domain growth stalled Low anchor text diversity Competition New competitors entering AI tools replacing search Weakening brand recall Competitors publishing faster Technical Core Web Vitals failing Crawl coverage drop Crawler blocked by WAF Missing structured data UX Bounce rate rising Poor mobile experience Slow above-fold load Excessive popup ads Algorithm Core Update penalty Weak E-E-A-T signals AI Overviews / SGE cutoff Search intent drift
For the ops lead
Website traffic drop root-cause analysis

Ishikawa fishbone for a website traffic drop — six causal categories covering content, technical SEO, backlinks, UX, competition, and algorithm changes.

→ 在 Playground 中開啟
sociogram·§ Moreno 1934
Sociogram: Playground Dynamics Sociogram with 8 members and 10 connections Playground Dynamics conflict tom jack mike leo anna beth chloe diana GROUPS Boys Girls TIES Positive tie Negative tie Neutral tie
For the school counselor
Playground dynamics

Moreno sociogram of classroom playground dynamics — mutual friendships, one-way choices, and peer conflicts mapped by gender group using force-directed layout.

→ 在 Playground 中開啟

03 / 為什麼選擇 Schematex

免費。完全開源。專為 AI 設計。

通用流程圖工具無法繪製專業圖表。Schematex 將每個標準視為一等公民——整個套件採用 AGPL-3.0、零依賴,並專為讓 LLM 一次就能正確輸出而設計。

45
圖表家族
專業人士真正在用的圖表

每種圖表類型均實作已發布的規範——McGoldrick、IEC 61131-3、IEEE 315、NSGC、Newick。醫生、工程師、律師已在手繪這些圖表;現在可以用程式碼生成。

100%
免費 · 開源
AGPL-3.0,零執行時依賴

無 D3、無 dagre、無解析器生成器、無遙測、無鎖定功能。KB 級 bundle、SSR 安全,閉源商業使用可申請商業授權。

AI
一等公民
專為 LLM 輸出而設計

最小化語法,專為 LLM 實際書寫文字的方式設計——CJK 引號、巢狀歧義、AI 可讀錯誤訊息。貼上 ChatGPT 或 Claude 的輸出,一次就能得到專業圖表。

04 / 定位

不只是另一個流程圖函式庫。

Schematex 與現有工具的比較。

工具專業領域圖表價格開發者友善AI 友善
Mermaid僅流程圖免費✓ (npm)部分
D2僅架構圖免費✗ (Go CLI)部分
WaveDrom僅時序圖免費✓ (npm)部分
PlantUML僅 UML免費✗ (Java)
schematex45 種家族 · 引用規範免費✓ (0 deps, npm)專為此設計

05 / 快速開始

10 秒完成安裝。

一個函式,傳入字串,回傳 SVG。適用於所有 TypeScript 環境。

$npm install schematex
Vanilla TypeScript通用
import { render } from 'schematex';

const svg = render(`
genogram "Smiths"
  john [male, 1950]
  mary [female, 1952]
  john -- mary
    alice [female, 1975, index]
`);
Next.js(伺服器)RSC / SSR
import { render } from 'schematex';

export default function Page() {
  const svg = render(dsl);
  return <div dangerouslySetInnerHTML={{ __html: svg }} />;
}
React(客戶端)互動式
'use client';
import { render } from 'schematex';
import { useMemo } from 'react';

export function Diagram({ dsl }: { dsl: string }) {
  const svg = useMemo(() => render(dsl), [dsl]);
  return <div dangerouslySetInnerHTML={{ __html: svg }} />;
}

從一個字串開始。

開啟 Playground,即時渲染 45 種圖表——或瀏覽圖庫,複製、貼上並修改 DSL。