mermaid-japanese

テキストからフローチャートやシーケンス図のような図を、マークダウンと同様の方法で生成すること

https://github.com/amin2312/mermaid-japanese

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.1%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

テキストからフローチャートやシーケンス図のような図を、マークダウンと同様の方法で生成すること

Basic Info
  • Host: GitHub
  • Owner: amin2312
  • License: mit
  • Language: TypeScript
  • Default Branch: develop
  • Size: 187 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing Funding License Code of conduct Citation

README.md

Mermaid(日本語)

マークダウンのようなテキストからダイアグラムを生成します。

ライブエディター!

📖 ドキュメント | 🚀 はじめに | 🌐 CDN | 🙌 参加する

将来のリリース版のライブエディタープレビューを試す:ライブエディター



NPM Build CI Status npm minified gzipped bundle size Coverage Status CDN Status NPM Downloads Join our Discord! Twitter Follow Covered by Argos Visual Testing OpenSSF Scorecard

:trophy: Mermaidは「最もエキサイティングなテクノロジーの使用」カテゴリでJS Open Source Awards (2019)にノミネートされ、受賞しました!!!

プルリクエストをコミットする人々、質問に答える人々など、関係者全員に感謝します!🙏

Explore Mermaid.js in depth, with real-world examples, tips & tricks from the creator... The first official book on Mermaid is available for purchase. Check it out!

目次

目次を展開する - [概要](#概要) - [例](#例) - [リリース](#リリース) - [関連プロジェクト](#関連プロジェクト) - [貢献者](#貢献者) - [セキュリティと安全なダイアグラム](#セキュリティと安全なダイアグラム) - [脆弱性の報告](#脆弱性の報告) - [謝辞](#謝辞)

概要

Mermaidは、マークダウンにインスパイアされたテキスト定義とレンダラーを使用して、複雑なダイアグラムを作成および変更するJavaScriptベースのダイアグラムおよびチャート作成ツールです。Mermaidの主な目的は、ドキュメントが開発に追いつくようにすることです。

ドキュメントの劣化は、Mermaidが解決を支援する二律背反です。

ダイアグラム作成とドキュメント作成には、貴重な開発者の時間がかかり、すぐに古くなってしまいます。 しかし、ダイアグラムやドキュメントがないと、生産性が損なわれ、組織の学習が妨げられます。
Mermaidは、ユーザーが簡単に変更可能なダイアグラムを作成できるようにすることで、この問題に対処します。また、プロダクションスクリプト(およびその他のコード)の一部にすることもできます。

Mermaidを使用すると、プログラマーでなくても、Mermaidライブエディターを通じて詳細なダイアグラムを簡単に作成できます。
ビデオチュートリアルについては、チュートリアルページをご覧ください。 お気に入りのアプリケーションでMermaidを使用し、Mermaidの統合と使用法のリストをチェックしてください。

また、GitHub内およびその他多くのお気に入りのアプリケーションでMermaidを使用できます。Mermaidの統合と使用法のリストをチェックしてください。

Mermaidとその基本的な使用法の詳細な紹介については、初心者向けガイド使用法、およびチュートリアルをご覧ください。

当社のPRビジュアル回帰テストは、Argosによって、彼らの寛大なオープンソースプランで強化されています。これにより、視覚的な変更を伴うPRのレビュープロセスが非常に簡単になります。

Covered by Argos Visual Testing

リリースプロセスでは、applitoolsを使用した視覚的回帰テストに大きく依存しています。Applitoolsは、使いやすく、テストに簡単に統合できる優れたサービスです。

以下は、Mermaidを使用して作成できるダイアグラム、チャート、およびグラフのいくつかの例です。テキスト構文にジャンプするには、ここをクリックしてください。

フローチャート [ドキュメント - ライブエディター]

``` flowchart LR

A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] C -->|Two| E[Result 2] ```

```mermaid flowchart LR

A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] C -->|Two| E[Result 2] ```

シーケンス図 [ドキュメント - ライブエディター]

sequenceDiagram Alice->>John: Hello John, how are you? loop HealthCheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!

mermaid sequenceDiagram Alice->>John: Hello John, how are you? loop HealthCheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!

ガント図 [ドキュメント - ライブエディター]

gantt section Section Completed :done, des1, 2014-01-06,2014-01-08 Active :active, des2, 2014-01-07, 3d Parallel 1 : des3, after des1, 1d Parallel 2 : des4, after des1, 1d Parallel 3 : des5, after des3, 1d Parallel 4 : des6, after des4, 1d

mermaid gantt section Section Completed :done, des1, 2014-01-06,2014-01-08 Active :active, des2, 2014-01-07, 3d Parallel 1 : des3, after des1, 1d Parallel 2 : des4, after des1, 1d Parallel 3 : des5, after des3, 1d Parallel 4 : des6, after des4, 1d

クラス図 [ドキュメント - ライブエディター]

``` classDiagram Class01 <|-- AveryLongClass : Cool <> Class01 Class09 --> C2 : Where am I? Class09 --* C3 Class09 --|> Class07 Class07 : equals() Class07 : Object[] elementData Class01 : size() Class01 : int chimp Class01 : int gorilla class Class10 { <> int id size() }

```

```mermaid classDiagram Class01 <|-- AveryLongClass : Cool <> Class01 Class09 --> C2 : Where am I? Class09 --* C3 Class09 --|> Class07 Class07 : equals() Class07 : Object[] elementData Class01 : size() Class01 : int chimp Class01 : int gorilla class Class10 { <> int id size() }

```

状態図 [ドキュメント - ライブエディター]

stateDiagram-v2 [*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*]

mermaid stateDiagram-v2 [*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*]

円グラフダイアグラム [ドキュメント - ライブエディター]

pie "Dogs" : 386 "Cats" : 85.9 "Rats" : 15

mermaid pie "Dogs" : 386 "Cats" : 85.9 "Rats" : 15

Gitグラフ [実験的 - ライブエディター]

棒グラフ (ガント図を使用) [ドキュメント - ライブエディター]

``` gantt title Git Issues - days since last update dateFormat X axisFormat %s

section Issue19062
71   : 0, 71
section Issue19401
36   : 0, 36
section Issue193
34   : 0, 34
section Issue7441
9    : 0, 9
section Issue1300
5    : 0, 5

```

```mermaid gantt title Git Issues - days since last update dateFormat X axisFormat %s

section Issue19062
71   : 0, 71
section Issue19401
36   : 0, 36
section Issue193
34   : 0, 34
section Issue7441
9    : 0, 9
section Issue1300
5    : 0, 5

```

ユーザージャーニーダイアグラム [ドキュメント - ライブエディター]

journey title My working day section Go to work Make tea: 5: Me Go upstairs: 3: Me Do work: 1: Me, Cat section Go home Go downstairs: 5: Me Sit down: 3: Me

mermaid journey title My working day section Go to work Make tea: 5: Me Go upstairs: 3: Me Do work: 1: Me, Cat section Go home Go downstairs: 5: Me Sit down: 3: Me

C4 ダイアグラム [ドキュメント]

``` C4Context title System Context diagram for Internet Banking System

Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") Person(customerB, "Banking Customer B") Person_Ext(customerC, "Banking Customer C") System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.")

Person(customerD, "Banking Customer D", "A customer of the bank,
with personal bank accounts.")

Enterprise_Boundary(b1, "BankBoundary") {

SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.")

System_Boundary(b2, "BankBoundary2") { System(SystemA, "Banking System A") System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.") }

System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.")

Boundary(b3, "BankBoundary3", "boundary") { SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.") SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") } }

BiRel(customerA, SystemAA, "Uses") BiRel(SystemAA, SystemE, "Uses") Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") Rel(SystemC, customerA, "Sends e-mails to") ```

```mermaid C4Context title System Context diagram for Internet Banking System

Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") Person(customerB, "Banking Customer B") Person_Ext(customerC, "Banking Customer C") System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.")

Person(customerD, "Banking Customer D", "A customer of the bank,
with personal bank accounts.")

Enterprise_Boundary(b1, "BankBoundary") {

SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.")

System_Boundary(b2, "BankBoundary2") { System(SystemA, "Banking System A") System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.") }

System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.")

Boundary(b3, "BankBoundary3", "boundary") { SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.") SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") } }

BiRel(customerA, SystemAA, "Uses") BiRel(SystemAA, SystemE, "Uses") Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") Rel(SystemC, customerA, "Sends e-mails to") ```

リリース

権限を持っている方へ:

package.jsonのバージョン番号を更新してください。

sh npm publish

上記のコマンドは、distフォルダーにファイルを生成し、https://www.npmjs.comに公開します。

関連プロジェクト

貢献者 Good first issue Contributors Commits

Mermaidは成長中のコミュニティであり、新しい貢献者を常に歓迎しています。手伝う方法はたくさんあり、常に助けを求めています!どこから始めればよいか知りたい方は、この問題をご覧ください。

貢献方法の詳細は、貢献ガイドに記載されています。

セキュリティと安全なダイアグラム

公開サイトでは、インターネット上のユーザーからテキストを取得し、そのコンテンツを後でブラウザで表示することは危険です。理由は、ユーザーのコンテンツに埋め込まれた悪意のあるスクリプトが含まれており、データが表示されるときに実行される可能性があるからです。Mermaidにとってこれはリスクであり、特にmermaidダイアグラムにはHTMLで使用される多くの文字が含まれているため、標準のサニタイズが使えず、ダイアグラムが壊れてしまいます。それでも、私たちは受信したコードをサニタイズし、プロセスを改善する努力をしていますが、抜け穴がないことを保証するのは難しいです。

外部ユーザーを持つサイトのために、コード内のJavaScriptが実行されないように、ダイアグラムがサンドボックス化されたiframe内でレンダリングされる新しいセキュリティレベルを導入できることを嬉しく思います。これは、より良いセキュリティのための大きな一歩です。

残念ながら、同時にケーキを食べることはできないため、ここでは一部のインタラクティブ機能がブロックされることになりますが、それにより悪意のあるコードもブロックされます。

脆弱性の報告

脆弱性を報告するには、security@mermaid.liveまで、問題の説明、問題を作成するために取った手順、影響を受けたバージョン、および知られている場合はその問題の緩和策を記載してメールしてください。

謝辞

Knut Sveidqvistからの簡単なお知らせ:

Many thanks to the d3 and dagre-d3 projects for providing the graphical layout and drawing libraries!

Thanks also to the js-sequence-diagram project for usage of the grammar for the sequence diagrams. Thanks to Jessica Peter for inspiration and starting point for gantt rendering.

Thank you to Tyler Long who has been a collaborator since April 2017.

Thank you to the ever-growing list of contributors that brought the project this far!


Mermaid は、ドキュメント作成を容易にするために Knut Sveidqvist によって作成されました。

Owner

  • Login: amin2312
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
title: 'Mermaid: Generate diagrams from markdown-like text'
message: >-
  If you use this software, please cite it using the metadata from this file.
type: software
authors:
  - family-names: Sveidqvist
    given-names: Knut
  - name: 'Contributors to Mermaid'
repository-code: 'https://github.com/mermaid-js/mermaid'
date-released: 2014-12-02
url: 'https://mermaid.js.org/'
abstract: >-
  JavaScript based diagramming and charting tool that renders Markdown-inspired
  text definitions to create and modify diagrams dynamically.
license: MIT

GitHub Events

Total
  • Push event: 3
  • Create event: 2
Last Year
  • Push event: 3
  • Create event: 2

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

Dockerfile docker
  • node 20.12.2-alpine3.19@sha256 build
docker-compose.yml docker
  • cypress/included 13.7.3
package.json npm
  • @applitools/eyes-cypress ^3.44.4 development
  • @argos-ci/cypress ^2.2.2 development
  • @changesets/changelog-github ^0.5.0 development
  • @changesets/cli ^2.27.7 development
  • @cspell/eslint-plugin ^8.8.4 development
  • @cypress/code-coverage ^3.12.30 development
  • @eslint/js ^9.4.0 development
  • @rollup/plugin-typescript ^11.1.6 development
  • @types/cors ^2.8.17 development
  • @types/express ^4.17.21 development
  • @types/js-yaml ^4.0.9 development
  • @types/jsdom ^21.1.6 development
  • @types/lodash ^4.17.0 development
  • @types/mdast ^4.0.3 development
  • @types/node ^20.11.30 development
  • @types/rollup-plugin-visualizer ^4.2.4 development
  • @vitest/coverage-v8 ^1.4.0 development
  • @vitest/spy ^1.4.0 development
  • @vitest/ui ^1.4.0 development
  • ajv ^8.12.0 development
  • chokidar ^3.6.0 development
  • concurrently ^8.2.2 development
  • cors ^2.8.5 development
  • cpy-cli ^5.0.0 development
  • cross-env ^7.0.3 development
  • cspell ^8.6.0 development
  • cypress ^13.14.1 development
  • cypress-image-snapshot ^4.0.1 development
  • cypress-split ^1.24.0 development
  • esbuild ^0.21.5 development
  • eslint ^9.4.0 development
  • eslint-config-prettier ^9.1.0 development
  • eslint-plugin-cypress ^3.3.0 development
  • eslint-plugin-html ^8.1.1 development
  • eslint-plugin-jest ^28.6.0 development
  • eslint-plugin-jsdoc ^50.0.0 development
  • eslint-plugin-json ^4.0.0 development
  • eslint-plugin-lodash ^8.0.0 development
  • eslint-plugin-markdown ^5.0.0 development
  • eslint-plugin-no-only-tests ^3.1.0 development
  • eslint-plugin-tsdoc ^0.3.0 development
  • eslint-plugin-unicorn ^56.0.0 development
  • express ^4.19.1 development
  • globals ^15.4.0 development
  • globby ^14.0.1 development
  • husky ^9.0.11 development
  • jest ^29.7.0 development
  • jison ^0.4.18 development
  • js-yaml ^4.1.0 development
  • jsdom ^24.0.0 development
  • langium-cli 3.0.3 development
  • lint-staged ^15.2.2 development
  • markdown-table ^3.0.3 development
  • nyc ^15.1.0 development
  • path-browserify ^1.0.1 development
  • prettier ^3.2.5 development
  • prettier-plugin-jsdoc ^1.3.0 development
  • rimraf ^5.0.5 development
  • rollup-plugin-visualizer ^5.12.0 development
  • start-server-and-test ^2.0.3 development
  • tsx ^4.7.1 development
  • typescript ~5.4.5 development
  • typescript-eslint ^8.0.0-alpha.34 development
  • vite ^5.2.3 development
  • vite-plugin-istanbul ^6.0.0 development
  • vitest ^1.4.0 development
packages/mermaid/package.json npm
  • @adobe/jsonschema2md ^8.0.0 development
  • @iconify/types ^2.0.0 development
  • @types/cytoscape ^3.21.4 development
  • @types/cytoscape-fcose ^2.2.4 development
  • @types/d3-sankey ^0.12.4 development
  • @types/d3-scale ^4.0.8 development
  • @types/d3-scale-chromatic ^3.0.3 development
  • @types/d3-selection ^3.0.10 development
  • @types/d3-shape ^3.1.6 development
  • @types/jsdom ^21.1.6 development
  • @types/katex ^0.16.7 development
  • @types/lodash-es ^4.17.12 development
  • @types/micromatch ^4.0.6 development
  • @types/prettier ^3.0.0 development
  • @types/stylis ^4.2.5 development
  • @types/uuid ^9.0.8 development
  • ajv ^8.12.0 development
  • chokidar ^3.6.0 development
  • concurrently ^8.2.2 development
  • csstree-validator ^3.0.0 development
  • globby ^14.0.1 development
  • jison ^0.4.18 development
  • js-base64 ^3.7.7 development
  • jsdom ^24.0.0 development
  • json-schema-to-typescript ^13.1.2 development
  • micromatch ^4.0.5 development
  • path-browserify ^1.0.1 development
  • prettier ^3.2.5 development
  • remark ^15.0.1 development
  • remark-frontmatter ^5.0.0 development
  • remark-gfm ^4.0.0 development
  • rimraf ^5.0.5 development
  • start-server-and-test ^2.0.3 development
  • type-fest ^4.13.1 development
  • typedoc ^0.25.12 development
  • typedoc-plugin-markdown ^3.17.1 development
  • typescript ~5.4.3 development
  • unist-util-flatmap ^1.0.0 development
  • unist-util-visit ^5.0.0 development
  • vitepress ^1.0.1 development
  • vitepress-plugin-search 1.0.4-alpha.22 development
  • @braintree/sanitize-url ^7.0.1
  • @iconify/utils ^2.1.32
  • @mermaid-js/parser workspace:^
  • @types/d3 ^7.4.3
  • cytoscape ^3.29.2
  • cytoscape-cose-bilkent ^4.1.0
  • cytoscape-fcose ^2.2.0
  • d3 ^7.9.0
  • d3-sankey ^0.12.3
  • dagre-d3-es 7.0.11
  • dayjs ^1.11.10
  • dompurify ^3.2.1
  • katex ^0.16.9
  • khroma ^2.1.0
  • lodash-es ^4.17.21
  • marked ^13.0.2
  • roughjs ^4.6.6
  • stylis ^4.3.1
  • ts-dedent ^2.2.0
  • uuid ^9.0.1
packages/mermaid/src/docs/package.json npm
  • @iconify-json/carbon ^1.1.31 development
  • @unocss/reset ^0.59.0 development
  • @vite-pwa/vitepress ^0.4.0 development
  • @vitejs/plugin-vue ^5.0.0 development
  • fast-glob ^3.3.2 development
  • https-localhost ^4.7.1 development
  • pathe ^1.1.2 development
  • unocss ^0.59.0 development
  • unplugin-vue-components ^0.26.0 development
  • vite ^5.0.0 development
  • vite-plugin-pwa ^0.19.7 development
  • vitepress 1.1.4 development
  • workbox-window ^7.0.0 development
  • @mdi/font ^7.0.0
  • @vueuse/core ^10.9.0
  • font-awesome ^4.7.0
  • jiti ^1.21.0
  • mermaid workspace:^
  • vue ^3.4.21
packages/mermaid-example-diagram/package.json npm
  • concurrently ^8.2.2 development
  • mermaid workspace:* development
  • rimraf ^5.0.5 development
  • @braintree/sanitize-url ^7.0.0
  • d3 ^7.9.0
  • khroma ^2.1.0
packages/mermaid-layout-elk/package.json npm
  • @types/d3 ^7.4.3 development
  • mermaid workspace:^ development
  • d3 ^7.9.0
  • elkjs ^0.9.3
packages/mermaid-zenuml/package.json npm
  • mermaid workspace:^ development
  • @zenuml/core ^3.23.27
packages/parser/package.json npm
  • chevrotain ^11.0.3 development
  • langium 3.0.0
pnpm-lock.yaml npm
  • 663 dependencies
tests/webpack/package.json npm
  • webpack ^5.91.0 development
  • webpack-cli ^4.10.0 development
  • webpack-dev-server ^4.15.2 development
  • @mermaid-js/mermaid-example-diagram workspace:*
  • mermaid workspace:*