ascii-visualizer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ASCII Visualizer

ASCII 可视化工具

Consistent, readable ASCII diagrams for architecture, workflows, file trees, and data visualizations. All output renders correctly in monospace terminals without external tools.
Core principle: Encode information into structure, not decoration. Every diagram element should communicate something meaningful.
用于架构、工作流、文件树和数据可视化的一致性、高可读性ASCII图表。所有输出无需外部工具,即可在等宽终端中正确渲染。
核心原则: 将信息编码到结构中,而非装饰。每个图表元素都应传递有意义的内容。

Box-Drawing Character Reference

框绘字符参考

Standard:  ┌─┐ │ └─┘  ├─┤ ┬ ┴ ┼
Heavy:     ┏━┓ ┃ ┗━┛  ┣━┫ ┳ ┻ ╋
Double:    ╔═╗ ║ ╚═╝  ╠═╣ ╦ ╩ ╬
Rounded:   ╭─╮ │ ╰─╯
Arrows:    → ← ↑ ↓ ─> <─ ──> <──
Blocks:    █ ▓ ░ ▏▎▍▌▋▊▉
Checks:    ✓ ✗ ● ○ ◆ ◇ ★ ☆
Standard:  ┌─┐ │ └─┘  ├─┤ ┬ ┴ ┼
Heavy:     ┏━┓ ┃ ┗━┛  ┣━┫ ┳ ┻ ╋
Double:    ╔═╗ ║ ╚═╝  ╠═╣ ╦ ╩ ╬
Rounded:   ╭─╮ │ ╰─╯
Arrows:    → ← ↑ ↓ ─> <─ ──> <──
Blocks:    █ ▓ ░ ▏▎▍▌▋▊▉
Checks:    ✓ ✗ ● ○ ◆ ◇ ★ ☆

Weight Conventions

线条粗细约定

WeightCharactersUse For
Standard
─│
Normal boxes and connectorsMost diagrams
Heavy
━┃
Emphasis, borders, headersKey components, outer frames
Double
═║
Separation, titlesSection dividers, title boxes
粗细级别字符适用场景
标准
─│
普通方框和连接线大多数图表
加粗
━┃
强调、边框、标题核心组件、外框
双线条
═║
分隔、标题区域分隔符、标题框

Diagram Patterns

图表模板

Architecture Diagrams

架构图表

┌──────────────┐      ┌──────────────┐
│   Frontend   │─────>│   Backend    │
│   React 19   │      │   FastAPI    │
└──────────────┘      └───────┬──────┘
                              v
                      ┌──────────────┐
                      │  PostgreSQL  │
                      └──────────────┘
┌──────────────┐      ┌──────────────┐
│   Frontend   │─────>│   Backend    │
│   React 19   │      │   FastAPI    │
└──────────────┘      └───────┬──────┘
                              v
                      ┌──────────────┐
                      │  PostgreSQL  │
                      └──────────────┘

File Trees with Annotations

带注释的文件树

src/
├── api/
│   ├── routes.py          [M] +45 -12    !! high-traffic path
│   └── schemas.py         [M] +20 -5
├── services/
│   └── billing.py         [A] +180       ** new file
└── tests/
    └── test_billing.py    [A] +120       ** new file

Legend: [A]dd [M]odify [D]elete  !! Risk  ** New
src/
├── api/
│   ├── routes.py          [M] +45 -12    !! high-traffic path
│   └── schemas.py         [M] +20 -5
├── services/
│   └── billing.py         [A] +180       ** new file
└── tests/
    └── test_billing.py    [A] +120       ** new file

Legend: [A]dd [M]odify [D]elete  !! Risk  ** New

Progress Bars

进度条

[████████░░] 80% Complete
+ Design    (2 days)
+ Backend   (5 days)
~ Frontend  (3 days)
- Testing   (pending)
[████████░░] 80% Complete
+ Design    (2 days)
+ Backend   (5 days)
~ Frontend  (3 days)
- Testing   (pending)

Swimlane / Timeline Diagrams

泳道/时间线图表

Backend  ===[Schema]======[API]===========================[Deploy]====>
                |            |                                ^
                |            +------blocks------+             |
                |                               |             |
Frontend ------[Wait]--------[Components]=======[Integration]=+

=== Active work   --- Blocked/waiting   | Dependency
Backend  ===[Schema]======[API]===========================[Deploy]====>
                |            |                                ^
                |            +------blocks------+             |
                |                               |             |
Frontend ------[Wait]--------[Components]=======[Integration]=+

=== Active work   --- Blocked/waiting   | Dependency

Blast Radius (Concentric Rings)

影响范围(同心环)

            Ring 3: Tests (8 files)
       +-------------------------------+
       |    Ring 2: Transitive (5)      |
       |   +------------------------+   |
       |   |  Ring 1: Direct (3)     |   |
       |   |   +--------------+      |   |
       |   |   | CHANGED FILE |      |   |
       |   |   +--------------+      |   |
       |   +------------------------+   |
       +-------------------------------+
            Ring 3: Tests (8 files)
       +-------------------------------+
       |    Ring 2: Transitive (5)      |
       |   +------------------------+   |
       |   |  Ring 1: Direct (3)     |   |
       |   |   +--------------+      |   |
       |   |   | CHANGED FILE |      |   |
       |   |   +--------------+      |   |
       |   +------------------------+   |
       +-------------------------------+

Comparison Tables

对比表格

BEFORE                          AFTER
┌────────────┐                  ┌────────────┐
│  Monolith  │                  │  Service A │──┐
│  (all-in-1)│                  └────────────┘  │  ┌──────────┐
└────────────┘                  ┌────────────┐  ├─>│  Shared  │
                                │  Service B │──┘  │  Queue   │
                                └────────────┘     └──────────┘
BEFORE                          AFTER
┌────────────┐                  ┌────────────┐
│  Monolith  │                  │  Service A │──┐
│  (all-in-1)│                  └────────────┘  │  ┌──────────┐
└────────────┘                  ┌────────────┐  ├─>│  Shared  │
                                │  Service B │──┘  │  Queue   │
                                └────────────┘     └──────────┘

Reversibility Timeline

可逆性时间线

Phase 1  [================]  FULLY REVERSIBLE    (add column)
Phase 2  [================]  FULLY REVERSIBLE    (new endpoint)
Phase 3  [============....]  PARTIALLY           (backfill)
              --- POINT OF NO RETURN ---
Phase 4  [........????????]  IRREVERSIBLE        (drop column)
Phase 1  [================]  FULLY REVERSIBLE    (add column)
Phase 2  [================]  FULLY REVERSIBLE    (new endpoint)
Phase 3  [============....]  PARTIALLY           (backfill)
              --- POINT OF NO RETURN ---
Phase 4  [........????????]  IRREVERSIBLE        (drop column)

Key Rules

关键规则

RuleDescription
FontAlways monospace — box-drawing requires fixed-width
WeightStandard for normal, Heavy for emphasis, Double for titles
Arrows
─>
,
──>
, or
with
v
/
^
for direction
AlignmentRight-pad labels to match column widths
Annotations
!!
for risk,
**
for new,
[A/M/D]
for change type
WidthKeep under 80 chars for terminal compatibility
NestingMax 3 levels of box nesting before readability degrades
规则说明
字体必须使用等宽字体 —— 框绘需要固定宽度
线条粗细普通内容用标准线条,强调内容用加粗,标题用双线条
箭头使用
─>
──>
,或配合
v
/
^
表示方向
对齐标签右填充以匹配列宽
注释
!!
表示风险,
**
表示新增,
[A/M/D]
表示变更类型
宽度保持在80字符以内以兼容终端
嵌套方框嵌套最多3层,否则可读性会下降

When to Use Each Pattern

各模板适用场景

PatternUse Case
Layered boxesSystem architecture, deployment topology
Concentric ringsBlast radius, impact analysis
Timeline barsReversibility, migration phases
SwimlanesExecution order, parallel work streams
Annotated treesFile change manifests, directory structures
Comparison tablesCross-layer consistency, before/after
Progress barsStatus tracking, completion metrics
模板适用场景
分层方框系统架构、部署拓扑
同心环影响范围、影响分析
时间线进度条可逆性、迁移阶段
泳道图执行顺序、并行工作流
带注释的树状图文件变更清单、目录结构
对比表格跨层一致性、前后对比
进度条状态跟踪、完成度指标

Related Skills

相关技能

  • brainstorming
    — Design exploration where diagrams communicate ideas
  • architecture-patterns
    — System architecture that benefits from ASCII diagrams
  • code-review-playbook
    — Review comments with inline diagrams
  • brainstorming
    —— 用图表传达想法的设计探索
  • architecture-patterns
    —— 可借助ASCII图表呈现的系统架构
  • code-review-playbook
    —— 包含内嵌图表的评审意见