{"id":17178299,"url":"https://github.com/naoty/tinydot","last_synced_at":"2025-04-13T17:10:40.451Z","repository":{"id":13441836,"uuid":"16131059","full_name":"naoty/tinydot","owner":"naoty","description":"Tiny language alternative to DOT.","archived":false,"fork":false,"pushed_at":"2014-01-24T04:09:44.000Z","size":204,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T19:41:50.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naoty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-22T06:37:10.000Z","updated_at":"2023-02-07T23:22:54.000Z","dependencies_parsed_at":"2022-09-23T13:01:22.260Z","dependency_job_id":null,"html_url":"https://github.com/naoty/tinydot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoty%2Ftinydot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoty%2Ftinydot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoty%2Ftinydot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoty%2Ftinydot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naoty","download_url":"https://codeload.github.com/naoty/tinydot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750107,"owners_count":21155686,"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","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-15T00:06:55.745Z","updated_at":"2025-04-13T17:10:40.420Z","avatar_url":"https://github.com/naoty.png","language":"Ruby","readme":"# Tinydot\n\nTiny language alternative to DOT.\n\n## Installation\n\n```sh\n$ gem install tinydot\n```\n\n[Graphviz](http://www.graphviz.org/) is required to convert files written by tinydot into images.\n\n## Usage\n\n```sh\n$ tinydot convert sample.tinydot\n```\n\n`tinydot` command converts `*.tinydot` or `*.tdot` into `*.dot` and converts the converted files into graph images using Graphviz.\n\n## Examples\n\n### Nodes, Edges\n\n```rb\ndigraph \"sample\" do\n  a \u003e\u003e b \u003e\u003e c\n  a \u003c=\u003e d\n  b \u003c=\u003e d\nend\n```\n\nis equivalent to\n\n```dot\ndigraph sample {\n  a -\u003e b;\n  b -\u003e c;\n  a -\u003e d [dir = both];\n  b -\u003e d [dir = both];\n}\n```\n\nand converted into a following graph.\n\n![sample](examples/sample.png \"sample\")\n\n### Attributes\n\n```rb\ndigraph \"sample2\", rankdir: \"LR\" do\n  node shape: \"record\", style: \"filled\", fontname: \"Osaka\", fillcolor: \"#ECF0F1\"\n\n  a \"Label 1\"\n  b \"Label 2\"\n  c \"Label 3\", fillcolor: \"#27AE60\"\n  d \"Label 4\", fillcolor: \"#F1C40F\"\n  e \"Label 5\", fillcolor: \"#E74C3C\"\n\n  a \u003c=\u003e b\n  a \u003c=\u003e c\n  b \u003e\u003e d\n  d \u003c=\u003e e\n  d \u003e\u003e a\nend\n```\n\nis equivalent to\n\n```dot\ndigraph sample2 {\n  graph [rankdir = LR];\n  node [shape = record, style = filled, fontname = \"Osaka\", fillcolor = \"#ECF0F1\"];\n\n  a [label = \"Label 1\"];\n  b [label = \"Label 2\"];\n  c [label = \"Label 3\", fillcolor = \"#27AE60\"];\n  d [label = \"Label 4\", fillcolor = \"#F1C40F\"];\n  e [label = \"Label 5\", fillcolor = \"#E74C3C\"];\n\n  a -\u003e b [dir = both];\n  a -\u003e c [dir = both];\n  b -\u003e d;\n  d -\u003e e [dir = both];\n  d -\u003e a;\n}\n```\n\nand converted into a following graph.\n\n![sample2](examples/sample2.png \"sample2\")\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaoty%2Ftinydot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaoty%2Ftinydot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaoty%2Ftinydot/lists"}