{"id":16647945,"url":"https://github.com/xavierchanth/mermaid-pg","last_synced_at":"2026-02-13T08:17:29.336Z","repository":{"id":159956160,"uuid":"634958858","full_name":"XavierChanth/mermaid-pg","owner":"XavierChanth","description":"Mermaid Playground","archived":false,"fork":false,"pushed_at":"2023-05-01T16:48:30.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-09-13T09:18:44.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XavierChanth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-01T16:37:09.000Z","updated_at":"2023-05-01T16:37:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"9193e57b-9618-416d-b1c8-d6a5ab48ba0d","html_url":"https://github.com/XavierChanth/mermaid-pg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XavierChanth/mermaid-pg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2Fmermaid-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2Fmermaid-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2Fmermaid-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2Fmermaid-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XavierChanth","download_url":"https://codeload.github.com/XavierChanth/mermaid-pg/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2Fmermaid-pg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278239968,"owners_count":25954096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T08:46:13.377Z","updated_at":"2025-10-03T22:49:09.331Z","avatar_url":"https://github.com/XavierChanth.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# mermaid-pg\nMermaid Playground\n\nFound a customization sample for mermaid [here](https://stackoverflow.com/questions/71864287/mermaid-custom-css-scripts-in-markdown).\n\n[start snippet]\nI am in a Markdown file and I want to show you a diagram:\n\n```mermaid\n%%{\n  init: {\n    \"sequence\": {\n      \"actorFontFamily\": \"monospace\",\n      \"actorFontWeight\": \"bold\",\n      \"messageFontFamily\": \"monospace\",\n      \"messageFontWeight\": \"bold\",\n      \"noteFontWeight\": \"bolder\"\n    }\n  }\n}%%\n\nsequenceDiagram\n  participant Browser\n  participant AppServer\n\n  rect rgb(255, 255, 255, 0.05)\n    note over Browser, AppServer: (Phase 1) Authentication Check\n\n    Browser -\u003e\u003e AppServer: GET /admin { Cookie:  }\n    Browser -\u003e\u003e Browser: useSession\n  end\nend\n```\n[end snippet]\n\nLeads to an error, let's try one of the [examples](https://mermaid.js.org/syntax/sequenceDiagram.html) from the docs:\n\n```mermaid\nsequenceDiagram\n    Alice-\u003e\u003eJohn: Hello John, how are you?\n    John--\u003e\u003eAlice: Great!\n    Alice-)John: See you later!\n```\n\nGitHub doesn't state where the error in the first diagram is... let's start by trying to add an init.\n```mermaid\n%%{\n  init: {\n    \"sequence\": {\n      \"actorFontFamily\": \"monospace\",\n      \"actorFontWeight\": \"bold\",\n      \"messageFontFamily\": \"monospace\",\n      \"messageFontWeight\": \"bold\",\n      \"noteFontWeight\": \"bolder\"\n    }\n  }\n}%%\nsequenceDiagram\n    Alice-\u003e\u003eJohn: Hello John, how are you?\n    John--\u003e\u003eAlice: Great!\n    Alice-)John: See you later!\n```\n\nNice, the font is bolded! The next question is how custom can we get with mermaid?\nDoesn't look like I can animate in GitHub... which was the main goal for this experiment, time to look for other solutions.\n\nNote [this observable notebook](https://observablehq.com/@tomlarkworthy/animated-sequence-diagrams) if your solution is able to modify the diagram with javascript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavierchanth%2Fmermaid-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxavierchanth%2Fmermaid-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavierchanth%2Fmermaid-pg/lists"}