{"id":30774355,"url":"https://github.com/hyp3r00t/d2lab","last_synced_at":"2026-02-17T11:03:24.431Z","repository":{"id":310853808,"uuid":"1041491588","full_name":"HYP3R00T/d2lab","owner":"HYP3R00T","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-11T19:15:11.000Z","size":712,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-14T04:27:45.236Z","etag":null,"topics":["architecture","d2lang","devcontainer","diagram"],"latest_commit_sha":null,"homepage":"","language":"D2","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HYP3R00T.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"HYP3R00T"}},"created_at":"2025-08-20T15:06:19.000Z","updated_at":"2025-11-11T19:15:14.000Z","dependencies_parsed_at":"2025-08-20T17:38:19.941Z","dependency_job_id":"567d699d-510a-402d-b73f-d43a8f7ddca6","html_url":"https://github.com/HYP3R00T/d2lab","commit_stats":null,"previous_names":["hyp3r00t/d2lab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HYP3R00T/d2lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HYP3R00T%2Fd2lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HYP3R00T%2Fd2lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HYP3R00T%2Fd2lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HYP3R00T%2Fd2lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HYP3R00T","download_url":"https://codeload.github.com/HYP3R00T/d2lab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HYP3R00T%2Fd2lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29541120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["architecture","d2lang","devcontainer","diagram"],"created_at":"2025-09-05T02:53:53.947Z","updated_at":"2026-02-17T11:03:24.426Z","avatar_url":"https://github.com/HYP3R00T.png","language":"D2","funding_links":["https://github.com/sponsors/HYP3R00T"],"categories":[],"sub_categories":[],"readme":"# d2lab\n\nSmall, focused repo for authoring D2 diagrams. Sources live in `diagram/` and exports (PNG/SVG) are written to `output/` via a small script and a `mise` watch task.\n\n## Icon Set\n\n- [Kubernetes Icons](https://github.com/kubernetes/community/tree/master/icons)\n- [AWS Icons](https://aws-icons.com/)\n- [Azure Icons](https://az-icons.com/)\n- [GCP Icons](https://gcpicons.com/)\n- [IBM Icons](https://github.com/IBM-Cloud/architecture-icons)\n- [Dashboard Icons (dashboardicons)](https://dashboardicons.com/)\n- [Dashboard Icons (selfh.st)](https://selfh.st/icons/)\n- [Software Architecture Diagram Icons](https://icons.terrastruct.com/)\n\n## Quick start (Dev Container)\n\nPrereqs: Docker + VS Code.\n\n1) Open this repo in VS Code and run: \"Dev Containers: Reopen in Container\".\n2) The container will run `scripts/setup.sh` to install D2, Playwright (for PNG export), `watchexec`, etc.\n3) Start watching a diagram and auto-regenerate on save:\n\n```bash\nmise run watch ./path/to/diagram\n```\n\nExports land in `./output/diagram.png` and `./output/diagram.svg`.\n\n## Local setup (without Dev Container)\n\n- Install mise: https://mise.jdx.dev\n- Trust and install tools for this repo:\n\n```bash\nmise trust\nmise install\n```\n\n- Install D2 CLI if not present: https://d2lang.com/tour/install\n- Install Playwright Chromium (required for PNG export):\n\n```bash\nnpm -g install playwright\nnpx playwright install --with-deps chromium\n```\n\nNow you can use the same watch task:\n\n```bash\nmise run watch ./path/to/diagram\n```\n\n## One-off render (no watch)\n\nUse the helper script directly:\n\n```bash\n./scripts/d2_to_output.zsh ./diagram/homelab.d2\n```\n\nThis writes `./output/homelab.png` and `./output/homelab.svg`.\n\n## Sponsor\n\nIf this project helps you, consider supporting it:\n\n- GitHub Sponsors: https://github.com/sponsors/HYP3R00T\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyp3r00t%2Fd2lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyp3r00t%2Fd2lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyp3r00t%2Fd2lab/lists"}