Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
export const indexCopy = {
en: {
'label-answers':'One-page answers',
'answers-h2':'Ask a question. <em>Get a page you can check.</em>',
'answers-body':'Not every answer is one diagram. Ask your agent to answer as a page: the conclusion comes first, then one panel per question with tables, steps, charts, code and validated diagrams. Steps light the diagram they walk through, claims cite their sources, and code is pinned to a commit.',
'answers-note':'Four page styles, light and dark, export to a long image or PDF. Ask about any panel and your agent revises just that panel.',
'answers-p99-q':'Why did P99 jump while the mean stayed flat?',
'answers-tls-q':'What crosses the wire before the first request?',
'answers-repo-q':'How does finalize keep the last good file? Read from the repo.',
'answers-rent-q':'What should I confirm before signing a lease?',
'trait-1':'Conclusion first','trait-2':'Steps beside the diagram','trait-3':'Numbered sources','trait-4':'Code pinned to a commit','trait-5':'Charts from your data','trait-6':'Checklists','trait-7':'Four styles · light and dark','trait-8':'Long image · PDF','trait-9':'Follow-up per panel',
'style-clean':'Clean · light','style-editorial':'Editorial · dark','style-product':'Product · light','style-swiss':'Swiss · light',
'label-life':'Beyond code',
'life-h2':'Not just for code. <em>For anything with steps.</em>',
'life-body':'Leave plans, job hunts, renting, a monthly budget — each one below is a real Archify artifact, generated and validated exactly like a system diagram. Open one and click around.',
'life-note':'Numbers in these examples are illustrative. Describe your own situation and your agent draws yours.',
'life-leave-k':'Workflow',
'life-leave-q':'How should I spread my leave across the year?',
'life-job-k':'Lifecycle',
'life-job-q':'Where does each job application stand?',
'life-money-k':'Data flow',
'life-money-q':'Where does my paycheck go each month?',
'life-rent-k':'Sequence',
'life-rent-q':'Who says what when I rent a flat?',
'arch-k':'Architecture',
'wf-k':'Workflow',
'seq-k':'Sequence',
'flow-k':'Data flow',
'life-k':'Lifecycle',
'nav-guide':'Guide','nav-gallery':'Proof Lab','nav-start':'Get started','nav-community':'Community','nav-install':'Install Skill',
'hero-badge':"Development Agent Skill · see what's new",'hero-works':'Works with',
'hero-h1':'<span class="l">Ask in plain words.</span><span class="l">Get answers <em>you can trust.</em></span>',
'hero-sub':'A leave plan, a P99 spike, a first HTTPS visit, or a whole codebase — your AI agent answers with an explorable map, or a one-page answer that puts the conclusion first and cites its sources. Either way it is one HTML file, validated before it ships.',
'hero-cta':'Get started','hero-stars':'stars on GitHub','copy':'Copy','copied':'Copied',
'copySuccess':'Copied to clipboard.','copyFailure':'Copy failed. Select the text manually.',
'demo-watch':'Watch the 35s demo','demo-title':'Archify 35-second demo','demo-close':'Close demo',
'tour-title':'Live artifact tour',
'proof-live':'Live','proof-open':'Open artifact',
'beat-0-k':'Map','beat-1-k':'Focus','beat-2-k':'Upstream','beat-3-k':'Lens',
'beat-0-t':'The whole system, in one readable frame.','beat-0-b':'This is the real generated artifact, not a screenshot. Lanes, boundaries, and every authored edge — scroll to move its camera.',
'beat-1-t':'Focus one node, see what it drives.','beat-1-b':'Press Enter on any node — or open a stable link — and the camera isolates everything downstream of it.',
'beat-2-t':'Flip the reach. Find the cause.','beat-2-b':'Trace upstream to every dependency that feeds a step. Same file, same authored relationships, one hash change.',
'beat-3-t':'Compare by meaning, not by box.','beat-3-b':'Lens keeps only the semantic kinds you name — security against data, backend against storage — and quiets the rest.',
'mode-map':'Map','mode-page':'Page','mode-new':'New',
'pbeat-0-k':'Answer','pbeat-1-k':'Walk','pbeat-2-k':'Check','pbeat-3-k':'Style','pbeat-4-k':'Ask',
'pbeat-0-t':'When one map is not enough, get a page.','pbeat-0-b':'A real one-page answer, not a screenshot. The conclusion and its reasons come first; each panel below answers one question.',
'pbeat-1-t':'Steps light the diagram they explain.','pbeat-1-b':'Each step sits beside its diagram. Read one and its part of the diagram lights up; click any node for the full interactive view.',
'pbeat-2-t':'Every claim names its source.','pbeat-2-b':'Hover a citation to see where it comes from. Repository code is quoted from a pinned commit, so you can check it in place.',
'pbeat-3-t':'Four styles. Same page.','pbeat-3-b':'Clean, editorial, product and Swiss, each in light and dark. Export a PNG, WebP or JPG long image, or print to PDF.',
'pbeat-4-t':'Ask about one panel.','pbeat-4-b':'A follow-up names the page and the panel, so your agent revises just that panel and leaves the rest as it is.',
'stat-modes':'Ways to answer: map or page','stat-types':'Diagram types','stat-styles':'Page styles, light and dark','stat-checks':'Validation checks per diagram','stat-deps':'Runtime dependencies',
'label-types':'Diagram types',
'types-h2':'Ten questions. <em>Ten kinds of map.</em>',
'types-body':'Ask the question you actually have. Archify picks the picture that answers it — for a software system, a database, a codebase, an incident, or something in your own life.',
'types-group-1':'Systems and flows','types-group-2':'Structure and time',
'erd-k':'Entity-relationship','erd-h':'How does the data relate?','erd-p':"Tables with their full column lists, primary, foreign and unique keys, and crow's-foot cardinality at both ends of every relationship.",
'class-k':'Class / interface','class-h':'Which types fulfil which contracts?','class-p':'Classes and interfaces with their members — inheritance, implementation, composition and dependencies, each drawn in its own notation.',
'tree-k':'Tree','tree-h':'How is it organised?','tree-p':"One root and its branches — a repository's modules, a product platform, a team, or a taxonomy, level by level.",
'timeline-k':'Timeline','timeline-h':'What happened, and when?','timeline-p':'Events on a real time axis — an incident, a release history, a project — with time zones handled and long quiet stretches broken out.',
'waterfall-k':'Waterfall','waterfall-h':'Where did the time go?','waterfall-p':'Nested spans on one clock — a request, a build, an agent run — so the slow step and the work that ran in parallel stand out.',
'types-more':'Browse the full proof gallery','types-more-sub':'Live artifacts · every preset · every type',
'arch-h':'What is it made of?',
'arch-p':'The parts of something and how they connect — a household\'s accounts and cards, a team\'s roles, or a cloud system\'s services, databases, and security boundaries.',
'arch-li1':'Household accounts','arch-li2':'Team roles','arch-li3':'Microservices topology','arch-li4':'Cloud + security boundaries',
'wf-h':'What happens next?',
'wf-p':'Steps across people or stages — a visa application, a leave plan, onboarding, an approval chain, or a CI/CD pipeline, lane by lane.',
'seq-h':'Who says what, in what order?',
'seq-p':'Back-and-forth in order — renting a flat through an agent, an expense claim, or an API call chain with its returns.',
'flow-h':'Where does it all go?',
'flow-p':'Where something moves and where it lands — a paycheck into bills and savings, documents through review, or data through a pipeline.',
'life-h':'Where does it stand now?',
'life-p':'States and what moves between them — job applications, an order, a passport renewal, or a deployment — with waits, retries, and endings.',
'label-features':'Output',
'features-h2':'One file. <em>Everything inside.</em>',
'cmp-light':'Light','cmp-dark':'Dark',
'fv1-h':'Dual-theme output','fv1-p':"Every diagram ships with coordinated dark and light variable sets. The HTML theme toggle and the SVG @media prefers-color-scheme rule switch together — one file follows the reader's theme.",'fv1-tag':'LIGHT · DARK · ONE FILE',
'fv2-h':'One menu, every format','fv2-p':'PNG, JPEG, WebP, dual-theme SVG, WebM motion, or straight to the clipboard — every export renders natively in the browser from the same menu.',
'exp-clip-fmt':'Clipboard',
'f2-h':'Ultra-crisp 4× export','f2-p':'PNG, JPEG, WebP — all rasterized natively at up to 4× source resolution by the browser. No upsampling blur. Sharp on retina displays, slides, and print.',
'f5-h':'Self-contained HTML','f5-p':'One HTML file. Zero dependencies, no server, no runtime. Open it in any browser and it works. Share by attaching it to an email or PR comment.',
'f6-h':'Iterate by chat','f6-p':'"Move the summer trip to August", "add Redis", "make the deadline red" — refine in plain words. No diagram editor to learn.',
'f7-h':'Inspect and play real routes','f7-p':'Route Journey keeps the complete authored path visible while you inspect any stop or play one finite, reader-controlled pass over each exact incoming relationship.','f7-tag':'INSPECT · PLAY · PAUSE',
'f8-h':'Sources pinned to a commit','f8-p':'Diagram nodes and page claims can point at their sources. Repository links are pinned to a full commit on GitHub or GitLab, and a page quotes the code in a source card.','f8-tag':'GITHUB · GITLAB · PINNED',
'f9-h':'Follow up on one panel','f9-p':'Ask about any panel, or a passage you select, and copy a message that names it. Your agent revises that panel and leaves the rest of the page untouched.','f9-tag':'ASK · COPY · PATCH',
'f10-h':'Live by default','f10-p':'Each diagram type moves in a way that matches how it reads. Readers can switch to Still; motion never changes the layout or the exported geometry.',
'f11-h':'Speaks your language','f11-p':'Viewer controls ship in English, 简体中文, 繁體中文, Español and 한국어. Any other language can be supplied as data with <code>meta.translations</code>.',
'f13-h':'See what changed','f13-p':"<code>archify compare</code> draws an architecture's before and after as one delta diagram — added, removed and rerouted relationships — with a machine-readable receipt.",
'label-trust':'Verified delivery',
'trust-h2':'Checked before <em>it reaches you.</em>',
'trust-body':'Finalization validates and delivers the artifact, then checks the delivered file. Diagrams also run a browser check; one-page answers run it when requested. Later check failures are reported and do not roll back the delivered file.',
'gate-1-h':'The source means what it says','gate-1-p':'Schema, IDs and references, then the layout itself: crossings, label clearance, corridors and legend room. A blank chart cell is an error, not a zero.',
'gate-2-h':'Nothing half-written','gate-2-p':'Rendered in a staging copy beside the target and swapped in atomically after delivery checks pass. A failed render does not replace the existing file.',
'gate-3-h':'The file is the one that was checked','gate-3-p':'The delivered HTML is read back and checked again, and the receipt records the hashes of the source and of this exact file.',
'gate-4-h':'Readable in a real browser','gate-4-p':'When run, Chrome checks the artifact at several desktop sizes for overflow, text readability and controls. Browser checks are opt-in for one-page answers.',
'sum-head':'From the receipt','sum-text':'smallest node text 7 px · required 6 px',
'label-palette':'Design system',
'palette-h2':'Color that <em>means something.</em>',
'palette-body':'Seven node colours, consistent in both themes. The legend renames them for your story — Backend can read as Vacation, Security as Rule.',
'chip-frontend':'Frontend','chip-frontend-use':'Client apps, browsers, mobile, UI',
'chip-backend':'Backend','chip-backend-use':'Services, APIs, workers, daemons',
'chip-database':'Database','chip-database-use':'DBs, caches, stores, AI/ML',
'chip-cloud':'Cloud','chip-cloud-use':'Managed services, infra',
'chip-security':'Security','chip-security-use':'Auth, secrets, guards',
'chip-bus':'Message Bus','chip-bus-use':'Kafka, RabbitMQ, SNS',
'chip-external':'External','chip-external-use':'Users, 3rd parties, generic',
'label-qs':'Quick start',
'qs-h2':'Three steps. <em>One command.</em>',
'qs-body':'One checked Skill for Claude Code, Codex, Cursor, OpenCode, and GitHub Copilot. Pick your agent for the exact command.',
'term-c1':'# Install globally for your agent','term-c2':'# Or try it once with Codex, no permanent install','term-c3':'# Then just ask',
'term-ask':'› Use Archify to plan my annual leave: 10 days, plus 2 comp days that expire at the end of June.',
'term-ask2':"› Use Archify to answer as one page: our API's P99 went from 80 ms to 600 ms while the mean barely moved. Why?",
'step1-h':'Install in one command','step1-p':'Run the command for your agent, or open the <a href="start.html?agent=cursor&type=architecture">agent-aware quick start</a> for project-scoped installs.',
'step2-h':'Describe it, or ask','step2-p':'Describe the steps, people, parts, or states, or ask the question you have — or ask your agent to read a repository first.',
'step3-h':'Get a map or a page','step3-p':'Ask for a map to explore, or a one-page answer for the conclusion and its reasons. Either way you get one self-contained HTML file to open in any browser and refine in chat.',
'kbd-label':'Inside every artifact','kbd-guide':'Diagram guide','kbd-theme':'Toggle theme','kbd-find':'Find node / route endpoint','kbd-route':'Trace, inspect, and play a route','kbd-radar':'Semantic radar','kbd-lens':'Compare semantic kinds','kbd-present':'Presentation stage','kbd-export':'Open export menu','kbd-focus':'Focus node','kbd-zoom':'Reading depth / reset','kbd-nav':'Navigate menu','kbd-close':'Close menu',
'footer-meta':'development · v[[ARCHIFY_VERSION]] · Apache License 2.0<br>Based on Cocoon-AI/architecture-diagram-generator',
'cta-h':'Ask once.<br><em>Share the answer.</em>',
'cta-sub':'One command installs the checked skill for your agent — your next map or one-page answer is a chat message away.',
'cta-install':'Install the skill','cta-gh':'Star on GitHub',
'cta-prompt':'Use Archify to answer as one page: why did P99 jump while the mean stayed flat?',
'footer-changelog':'Changelog','footer-license':'License','footer-community':'Community'
},
zh: {
'label-answers':'一页式解答',
'answers-h2':'问一个问题,<br><em>得到一页能核对的答案。</em>',
'answers-body':'不是每个答案都是一张图。让 Agent 用一页来回答:结论在最前面,每个面板回答一个问题,用表格、步骤、图表、代码和经过校验的图讲清楚。步骤会点亮它讲解的图,结论标注来源,代码固定到具体提交。',
'answers-note':'四种页面样式,浅色深色都有,可导出长图或 PDF。对任何面板追问,Agent 只改那一块。',
'answers-p99-q':'P99 暴涨、平均值不动,是什么原因?',
'answers-tls-q':'第一次打开 HTTPS 网站,发出请求前发生了什么?',
'answers-repo-q':'读仓库:finalize 失败时怎么保住旧产物?',
'answers-rent-q':'第一次租房,签合同前要确认什么?',
'trait-1':'结论先行','trait-2':'步骤和图并排','trait-3':'编号来源','trait-4':'代码固定到提交','trait-5':'用你的数据出图表','trait-6':'可勾选清单','trait-7':'四种样式 · 浅色深色','trait-8':'长图 · PDF','trait-9':'按面板追问',
'style-clean':'简洁 · 浅色','style-editorial':'杂志 · 深色','style-product':'产品 · 浅色','style-swiss':'网格 · 浅色',
'label-life':'不只是代码',
'life-h2':'不只是代码,<br><em>生活里的事也能画。</em>',
'life-body':'年假规划、求职进度、租房沟通、每月收支——下面每一张都是真实生成的 Archify 成品,和系统架构图走同一套生成与校验流程。点开就能探索。',
'life-note':'示例里的数字仅作演示。描述你自己的情况,Agent 就会画出你的那一张。',
'life-leave-k':'工作流',
'life-leave-q':'一年的假怎么排最划算?',
'life-job-k':'生命周期',
'life-job-q':'每份求职申请走到哪一步了?',
'life-money-k':'数据流',
'life-money-q':'工资每个月都去哪了?',
'life-rent-k':'时序图',
'life-rent-q':'租房时,谁跟谁说了什么?',
'arch-k':'架构图',
'wf-k':'工作流',
'seq-k':'时序图',
'flow-k':'数据流',
'life-k':'生命周期',
'nav-guide':'场景指南','nav-gallery':'验证作品集','nav-start':'开始使用','nav-community':'社区包','nav-install':'安装技能',
'hero-badge':'开发版 Agent 技能 · 查看更新','hero-works':'支持',
'hero-h1':'<span class="l">用大白话问清楚,</span><span class="l">得到<em>可信的图和答案。</em></span>',
'hero-sub':'年假怎么排、P99 为什么暴涨、第一次打开 HTTPS 网站发生了什么,或者一整个代码仓库——你的 AI Agent 会给你一张可以点开探索的图,或者一页结论在前、标注出处的解答。都是一个 HTML 文件,交付前已经校验过。',
'hero-cta':'开始使用','hero-stars':'GitHub Star','copy':'复制','copied':'已复制',
'copySuccess':'已复制到剪贴板。','copyFailure':'复制失败,请手动选择文本。',
'demo-watch':'观看 35 秒演示','demo-title':'Archify 35 秒演示','demo-close':'关闭演示',
'tour-title':'实时成品导览',
'proof-live':'实时','proof-open':'打开完整成品',
'beat-0-k':'全景','beat-1-k':'聚焦','beat-2-k':'上游','beat-3-k':'语义镜头',
'beat-0-t':'整个系统,一屏读完。','beat-0-b':'这是真实生成的成品,不是截图。泳道、边界和每一条作者连线都在这里——继续滚动,移动它的镜头。',
'beat-1-t':'聚焦一个节点,看清它驱动了什么。','beat-1-b':'在任意节点上按 Enter,或打开一个稳定链接,镜头会只保留它下游的一切。',
'beat-2-t':'反转方向,找到源头。','beat-2-b':'向上游追溯,看清喂给这一步的每个依赖。同一个文件、同一组作者关系,只改一次 hash。',
'beat-3-t':'按语义对比,而不是按方框。','beat-3-b':'语义镜头只保留你点名的类型——安全对数据、后端对存储——其余全部压暗。',
'mode-map':'图','mode-page':'一页答案','mode-new':'新',
'pbeat-0-k':'结论','pbeat-1-k':'逐步','pbeat-2-k':'核对','pbeat-3-k':'样式','pbeat-4-k':'追问',
'pbeat-0-t':'一张图讲不完,就给你一页。','pbeat-0-b':'这是真实生成的一页式解答,不是截图。结论和理由放在最前面,下面每个面板只回答一个问题。',
'pbeat-1-t':'读到哪一步,图就亮到哪里。','pbeat-1-b':'步骤放在它讲解的图旁边。读一步,图上对应的部分就会亮起;点任意节点打开完整交互图。',
'pbeat-2-t':'每条结论都标了出处。','pbeat-2-b':'悬停引用编号就能看到来源。仓库代码引用自固定的提交,不用离开页面就能核对。',
'pbeat-3-t':'四种样式,同一页内容。','pbeat-3-b':'简洁、杂志、产品、网格,每种都有浅色和深色;可导出 PNG、WebP、JPG 长图,或打印成 PDF。',
'pbeat-4-t':'只追问这一块。','pbeat-4-b':'追问会带上页面和面板编号,Agent 只改这个面板,其余内容保持不动。',
'stat-modes':'种回答方式:图或一页答案','stat-types':'图表类型','stat-styles':'种页面样式,浅色深色都有','stat-checks':'每张图的校验项','stat-deps':'运行时依赖',
'label-types':'图表类型',
'types-h2':'十个问题,<br><em>十种图。</em>',
'types-body':'问你真正想问的问题。Archify 会选出能回答它的那种图——不管是一套软件系统、一个数据库、一个代码仓库、一次事故,还是你自己生活里的事。',
'types-group-1':'系统与流程','types-group-2':'结构与时间',
'erd-k':'实体关系图','erd-h':'数据之间怎么关联?','erd-p':'每张表的完整字段、主键、外键和唯一键,每条关系两端都标出鸦爪基数。',
'class-k':'类图 / 接口','class-h':'哪些类型实现了哪些约定?','class-p':'类和接口及其成员——继承、实现、组合和依赖,各用各的标准画法。',
'tree-k':'树图','tree-h':'它是怎么组织的?','tree-p':'一个根和它的分支——代码仓库的模块、产品平台、团队,或者分类体系,逐层展开。',
'timeline-k':'时间线','timeline-h':'什么时候发生了什么?','timeline-p':'事件落在真实的时间轴上——一次事故、发版历史、一个项目——自动处理时区,长时间的空档会断开压缩。',
'waterfall-k':'瀑布图','waterfall-h':'时间都花在哪了?','waterfall-p':'嵌套的耗时段放在同一个时钟上——一次请求、一次构建、一次 Agent 运行——最慢的一步和并行的部分一眼可见。',
'types-more':'浏览完整作品集','types-more-sub':'实时成品 · 全部预设 · 全部图型',
'arch-h':'它由什么组成?',
'arch-p':'一件事由哪些部分组成、彼此怎么连接——家里的账户和银行卡、团队分工,或者云上系统的服务、数据库与安全边界。',
'arch-li1':'家庭账户','arch-li2':'团队分工','arch-li3':'微服务拓扑','arch-li4':'云与安全边界',
'wf-h':'下一步做什么?',
'wf-p':'跨人、跨阶段的步骤——办签证、排年假、新人入职、审批链,或者 CI/CD 流水线,逐泳道铺开。',
'seq-h':'谁先谁后,怎么来回?',
'seq-p':'按顺序的一来一回——通过中介租房、报销往返,或者带返回值的 API 调用链。',
'flow-h':'东西都流向哪里?',
'flow-p':'东西从哪来、最后落到哪——工资流向账单和储蓄、文件流转审阅,或者数据穿过管道。',
'life-h':'现在走到哪一步了?',
'life-p':'有哪些状态、怎么在状态之间变化——求职申请、一笔订单、护照换发或一次部署,含等待、重试和结局。',
'label-features':'输出',
'features-h2':'一个文件,<br><em>全部都在里面。</em>',
'cmp-light':'浅色','cmp-dark':'深色',
'fv1-h':'双主题输出','fv1-p':'每张图都内置协调的深色与浅色变量集:HTML 的主题开关与 SVG 的 @media prefers-color-scheme 规则同步切换——一个文件,自动跟随读者主题。','fv1-tag':'浅色 · 深色 · 单文件',
'fv2-h':'一个菜单,全部格式','fv2-p':'PNG、JPEG、WebP、双主题 SVG、WebM 动图,或直接复制到剪贴板——所有导出都在浏览器内原生渲染,同一个菜单完成。',
'exp-clip-fmt':'剪贴板',
'f2-h':'超清 4× 导出','f2-p':'PNG、JPEG、WebP——由浏览器以最高 4 倍分辨率原生栅格化,无上采样模糊。视网膜屏、幻灯片、印刷均清晰。',
'f5-h':'独立 HTML 文件','f5-p':'单个 HTML 文件,零依赖、无需服务器或构建工具,任意浏览器打开即用。作为附件发邮件或贴 PR 评论均可。',
'f6-h':'对话式迭代','f6-p':'「把暑假旅行挪到八月」「加一个 Redis」「把截止日标红」——用大白话精调,不用学任何画图工具。',
'f7-h':'检查并播放真实路径','f7-p':'Route Journey 始终保留完整作者路径,可逐站检查,也可沿每条精确入向关系播放一次由读者控制的有限旅程。','f7-tag':'检查 · 播放 · 暂停',
'f8-h':'来源固定到提交','f8-p':'图里的节点和页面里的结论都能指向出处。仓库链接固定到 GitHub 或 GitLab 上的完整提交,一页式解答还会在来源卡片里直接引用代码。','f8-tag':'GITHUB · GITLAB · 固定提交',
'f9-h':'只追问一个面板','f9-p':'对任一面板或选中的一段话追问,复制一条带面板编号的消息。Agent 只改这个面板,页面其余部分保持不动。','f9-tag':'追问 · 复制 · 局部修改',
'f10-h':'默认带动效','f10-p':'每种图都有和它读法相配的动效,默认开启。读者可以切到静止;动效不会改变布局,也不影响导出的图形。',
'f11-h':'界面说你的语言','f11-p':'交互界面内置 English、简体中文、繁體中文、Español 和 한국어。其他语言可以用 <code>meta.translations</code> 作为数据提供。',
'f13-h':'看清改了什么','f13-p':'<code>archify compare</code> 把架构的前后两版画成一张差异图——新增、删除和改道的关系一目了然,并附机器可读的回执。',
'label-trust':'交付前校验',
'trust-h2':'交到你手里之前,<br><em>已经检查过了。</em>',
'trust-body':'完成流程先校验并交付,再检查已交付的文件。图表还会执行浏览器检查,一页式解答按需开启。交付后的检查失败会报告,但不会回滚已交付文件。',
'gate-1-h':'内容说的就是它的意思','gate-1-p':'先查结构、ID 和引用,再查布局本身:连线交叉、标签避让、走线通道和图例空间。图表数据留空会报错,不会画成零。',
'gate-2-h':'不会留下半成品','gate-2-p':'先在目标旁边的暂存副本里渲染,交付检查通过后再原子替换。渲染失败不会覆盖已有文件。',
'gate-3-h':'交付的就是检查过的那个文件','gate-3-p':'把交付出来的 HTML 读回来再查一遍,回执里记下源文件和这个文件本身的哈希。',
'gate-4-h':'真浏览器里读得清','gate-4-p':'执行时,Chrome 会在几种桌面尺寸下检查溢出、文字可读性和控件。一页式解答的浏览器检查需要按需开启。',
'sum-head':'回执摘录','sum-text':'最小节点文字 7 px · 要求 6 px',
'label-palette':'设计系统',
'palette-h2':'每种颜色,<br><em>都有含义。</em>',
'palette-body':'七种节点颜色,深浅主题下保持一致。图例可以按你的故事改名——「后端」可以叫「假期」,「安全」可以叫「规则」。',
'chip-frontend':'前端','chip-frontend-use':'客户端、浏览器、移动端、UI',
'chip-backend':'后端','chip-backend-use':'服务、API、Worker、守护进程',
'chip-database':'数据库','chip-database-use':'数据库、缓存、存储、AI/ML',
'chip-cloud':'云服务','chip-cloud-use':'托管服务、基础设施',
'chip-security':'安全','chip-security-use':'鉴权、密钥、安全网关',
'chip-bus':'消息总线','chip-bus-use':'Kafka、RabbitMQ、SNS',
'chip-external':'外部系统','chip-external-use':'用户、第三方、通用外部',
'label-qs':'快速开始',
'qs-h2':'三步上手,<br><em>一条命令。</em>',
'qs-body':'同一份经过检查的 Skill 可用于 Claude Code、Codex、Cursor、OpenCode 和 GitHub Copilot。选择你的 Agent,获取准确命令。',
'term-c1':'# 为你的 Agent 全局安装','term-c2':'# 或者用临时副本在 Codex 中试一次','term-c3':'# 然后直接说',
'term-ask':'› 用 Archify 帮我排一下今年的年假:10 天年假,加 2 天 6 月底过期的调休。',
'term-ask2':'› 用 Archify 一页回答:接口 P99 从 80 ms 涨到 600 ms,平均值几乎没变,为什么?',
'step1-h':'一条命令安装','step1-p':'运行对应 Agent 的命令,或打开<a href="start.html?agent=cursor&type=architecture">可切换 Agent 的快速开始页</a>获取项目级安装命令。',
'step2-h':'描述,或者直接问','step2-p':'描述步骤、角色、组成或状态,或者直接问你的问题;也可以先让 agent 读一下代码仓库。',
'step3-h':'得到一张图或一页答案','step3-p':'想探索就要一张图,想要结论和理由就要一页式解答。两种都是单个 HTML 文件,任意浏览器打开,并可继续在对话中迭代。',
'kbd-label':'每个成品都内置','kbd-guide':'图表指南','kbd-theme':'切换主题','kbd-find':'查找节点 / 路径端点','kbd-route':'探查、检查并播放路径','kbd-radar':'语义雷达','kbd-lens':'对比语义类型','kbd-present':'演示舞台','kbd-export':'打开导出菜单','kbd-focus':'聚焦节点','kbd-zoom':'阅读层级 / 复位','kbd-nav':'菜单导航','kbd-close':'关闭菜单',
'footer-meta':'开发版 · v[[ARCHIFY_VERSION]] · Apache-2.0 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',
'cta-h':'问一次,<br><em>分享这个答案。</em>',
'cta-sub':'一条命令为你的 Agent 安装经过检查的技能——下一张图、下一页答案,只差一句对话。',
'cta-install':'安装技能','cta-gh':'在 GitHub 上 Star',
'cta-prompt':'用 Archify 一页回答:P99 暴涨、平均值几乎没变,为什么?',
'footer-changelog':'更新日志','footer-license':'许可证','footer-community':'社区包'
}
};
export const guideCopy = {
en: {
navGuide:'Guide',navProof:'Proof Lab',navStart:'Get started',navCommunity:'Community',navInstall:'Install Skill',versionLabel:'Scenario guide / development / v[[ARCHIFY_VERSION]]',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',
metricRecipes:'real-world<br>recipes',metricModes:'diagram modes<br>with recipes',metricRuntime:'runtime<br>dependencies',chooserTitle:'What must the diagram explain?',chooserBody:'Write a situation, not a diagram type. Specific system facts produce a stronger recommendation.',placeholder:'Example: Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.',recommend:'Recommend a recipe →',clear:'Clear',libraryEyebrow:'Recipe library',libraryTitle:'13 small, opinionated starting points.',libraryBody:'Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.',footerLeft:'Generated from the same recipe source as the Archify CLI.',all:'All recipes',recommended:'Recommended recipe',use:'Use when',avoid:'Avoid when',must:'Evidence to include',presentation:'Presentation',prompt:'Copy-ready prompt',copyPrompt:'Copy prompt',copied:'Copied',copySuccess:'Copied to clipboard.',copyFailure:'Copy failed. Select the text manually.',alternatives:'Other possible fits:',confidence:'confidence',open:'Open recipe',proofReady:'Verified proof',proofLink:'Open verified example ↗',
samples:[['API + cache miss','Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.'],['Kafka + DLQ','Map Kafka topics, ordered processors, consumer groups, replay, state stores, and the dead-letter queue.'],['Incident response','Show how responders detect, triage, mitigate, escalate, communicate, and verify recovery.']]
},
zh: {
navGuide:'场景指南',navProof:'验证作品集',navStart:'开始使用',navCommunity:'社区包',navInstall:'安装技能',versionLabel:'场景指南 / 开发版 / v[[ARCHIFY_VERSION]]',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',
metricRecipes:'个真实场景<br>配方',metricModes:'种图表模式<br>有入门配方',metricRuntime:'个运行时<br>依赖',chooserTitle:'这张图必须解释什么?',chooserBody:'写清场景,不要只写图表类型。系统事实越具体,推荐越可靠。',placeholder:'例如:展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。',recommend:'推荐配方 →',clear:'清空',libraryEyebrow:'配方库',libraryTitle:'13 个小而专的起点。',libraryBody:'每个配方只回答一个技术问题。清晰的边界让图更易读、可评审,也不会掩盖证据缺口。',footerLeft:'网页与 Archify CLI 使用同一份配方数据生成。',all:'全部配方',recommended:'推荐配方',use:'适合',avoid:'不要这样用',must:'必须包含的证据',presentation:'表现建议',prompt:'可直接复制的提示词',copyPrompt:'复制提示词',copied:'已复制',copySuccess:'已复制到剪贴板。',copyFailure:'复制失败,请手动选择文本。',alternatives:'其他可能:',confidence:'置信度',open:'打开配方',proofReady:'已验证成品',proofLink:'打开验证成品 ↗',
samples:[['API + 缓存未命中','展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。'],['Kafka + 死信','梳理 Kafka Topic、有序处理器、消费者组、重放、状态存储和死信队列。'],['事故处置','展示响应者如何发现、分诊、缓解、升级、沟通并验证恢复。']]
}
};
// The same copy follows the checkout's recipe inventory on development and stable.
export function guideCopyFor(recipes, channel = 'development') {
return Object.fromEntries(Object.entries(guideCopy).map(([lang, values]) => [lang, {
...values,
versionLabel: lang === 'zh' ? `场景指南 / ${channel === 'development' ? '开发版' : '稳定版'} / v[[ARCHIFY_VERSION]]` : `Scenario guide / ${channel} / v[[ARCHIFY_VERSION]]`,
libraryTitle: lang === 'zh' ? `${recipes.length} 个小而专的起点。` : `${recipes.length} small, opinionated starting points.`,
}]));
}
export function indexCopyFor(channel) {
if (channel === 'development') return indexCopy;
return {
en: { ...indexCopy.en, 'hero-badge': "Stable Agent Skill · see what's new", 'footer-meta': indexCopy.en['footer-meta'].replace('development', 'stable') },
zh: { ...indexCopy.zh, 'hero-badge': '稳定版 Agent 技能 · 查看更新', 'footer-meta': indexCopy.zh['footer-meta'].replace('开发版', '稳定版') },
};
}