Ascii art

ASCII and box-drawing diagrams in code blocks, to check every line and joint lines up in the code font.

File tree, box-drawing characters

text
jaygriff-v4/
├── public/
│   ├── images/
│   │   └── me2.jpg
│   └── tool-logos/
│       ├── neon.svg
│       └── … 79 more
├── scripts/
│   └── routes-sync.mts
├── src/
│   ├── app/
│   │   ├── [...path]/
│   │   │   └── page.tsx
│   │   ├── globals.css
│   │   └── layout.tsx
│   ├── components/
│   │   ├── code-block/
│   │   └── typography.tsx
│   └── lib/
│       └── goatboat.ts
└── package.json

File tree, plain ASCII

text
goatboat
+-- src
|   +-- db
|   |   +-- ops.ts
|   |   \-- schema.ts
|   \-- mcp
|       \-- server.mts
\-- tests
    \-- setup.ts

Architecture diagram

textdocs/architecture.txt
┌──────────────┐   reads    ┌──────────────┐   SQL    ┌──────────────┐
│ jaygriff-v4  │ ─────────▶ │   goatboat   │ ───────▶ │    Turso     │
│  (Next.js)   │  /api/...  │  (API + MCP) │          │   (SQLite)   │
└──────────────┘            └──────┬───────┘          └──────────────┘
                                   │ proposals
                                   ▼
                            ┌──────────────┐
                            │    Owner     │
                            │   approves   │
                            └──────────────┘

State diagram with diagonals

text
            +-----------+
            |  pending  |
            +-----------+
             /         \
   approve  /           \  reject
           v             v
  +-----------+       +-----------+
  | approved  |       | rejected  |
  +-----------+       +-----------+
        |
        | apply
        v
  +-----------+
  |  applied  |
  +-----------+

Sequence diagram

text
Agent          MCP server        goatboat API          Owner
  │                 │                  │                 │
  │  create_page()  │                  │                 │
  │────────────────▶│                  │                 │
  │                 │ POST /proposals  │                 │
  │                 │─────────────────▶│                 │
  │                 │    201 pending   │                 │
  │                 │◀─────────────────│                 │
  │   proposal id   │                  │   review link   │
  │◀────────────────│                  │────────────────▶│

Double-line table

text
╔════════════╤═════════╤══════════╗
║ Status     │ Color   │ Meaning  ║
╟────────────┼─────────┼──────────╢
║ active     │ emerald │ daily    ║
║ occasional │ amber   │ now+then ║
║ benched    │ pink    │ paused   ║
╚════════════╧═════════╧══════════╝

Git graph

text
* 31c60bf Give typography its own variants
* 2d92130 Tighten the phone header
*   9f1e2aa Merge branch 'toc'
|\
| * 4b7d0c1 Collapse the TOC on phones
| * 8e2f9a3 Add the TOC disclosure
* | 7c3d1e5 Shared caps label
|/
* 588a38d Centre the About portrait

Block-letter banner and cowsay

text
 ██████   ██████   █████  ████████
██       ██    ██ ██   ██    ██
██   ███ ██    ██ ███████    ██
██    ██ ██    ██ ██   ██    ██
 ██████   ██████  ██   ██    ██

 _________________
< ship it, friday >
 -----------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Sparklines and bars

text
requests/min   ▁▂▃▅▇█▇▅▃▂▁▁▂▃▅
build cache    [████████████░░░░░░░░]  60%
logos (2.2MB)  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒░░

Diagram in a highlighted comment

typescriptsrc/lib/request-flow.ts
/**
 * Request flow:
 *
 *   browser
 *     └─▶ proxy.ts (sets x-pathname)
 *           └─▶ app/[...path]/page.tsx
 *                 ├─▶ getPage(path)   ── goatboat API
 *                 └─▶ MarkdownRenderer
 */
export const flow = "documented above";

Wider than the block

text
[edit] ──▶ [save] ──▶ [routes:sync] ──▶ [goatboat /api/sync] ──▶ [proposal] ──▶ [owner approves] ──▶ [Turso] ──▶ [site revalidates] ──▶ [visitor sees it]
   │                                                                                                                                              ▲
   └──────────────────────────────────────────── the whole loop, ideally under a minute ──────────────────────────────────────────────────────────┘

CJK and emoji in a table

Lines up only if the font draws these characters at exactly two columns, which most don't. Expect this one to drift.

text
┌──────────┬──────────┐
│ English  │ 日本語   │
├──────────┼──────────┤
│ hello    │ こんにち │
│ emoji 🚀 │ 絵文字   │
└──────────┴──────────┘
  • Layouts with route groups

    The plan to give each kind of page its own layout with Next.js route groups: (site), (notes) with a left notes aside, (bare), and (artifacts) for self-contained HTML files.

  • Highlight

    The Highlight text component: a faint blue tint with square corners, whose side padding repeats on every line it wraps across.

  • UI stress test

    Nested components stacked inside each other, like bold and code inside links and tables inside lists, to find where the styles break.

  • Route groups

    An interactive explainer of Next.js route groups: how folders in parentheses leave the URL, share layouts, opt pages in and out, and isolate loading and error states.