{"id":46696741,"url":"https://github.com/albertocavalcante/slidev-addon-d2","last_synced_at":"2026-03-09T05:30:56.443Z","repository":{"id":338588678,"uuid":"1158379450","full_name":"albertocavalcante/slidev-addon-d2","owner":"albertocavalcante","description":"D2 diagram support for Slidev presentations","archived":false,"fork":false,"pushed_at":"2026-02-15T12:58:59.000Z","size":195,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-15T15:39:28.558Z","etag":null,"topics":["d2","slidev"],"latest_commit_sha":null,"homepage":"https://albertocavalcante.github.io/slidev-addon-d2/","language":"Vue","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/albertocavalcante.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,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-15T09:13:14.000Z","updated_at":"2026-02-15T12:58:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/albertocavalcante/slidev-addon-d2","commit_stats":null,"previous_names":["albertocavalcante/slidev-addon-d2"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/albertocavalcante/slidev-addon-d2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertocavalcante%2Fslidev-addon-d2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertocavalcante%2Fslidev-addon-d2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertocavalcante%2Fslidev-addon-d2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertocavalcante%2Fslidev-addon-d2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertocavalcante","download_url":"https://codeload.github.com/albertocavalcante/slidev-addon-d2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertocavalcante%2Fslidev-addon-d2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30283880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: 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":["d2","slidev"],"created_at":"2026-03-09T05:30:56.195Z","updated_at":"2026-03-09T05:30:56.427Z","avatar_url":"https://github.com/albertocavalcante.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slidev-addon-d2\n\nD2 diagram support for [Slidev](https://sli.dev/) presentations. Write D2 in fenced code blocks, get rendered SVGs in your slides.\n\nUses the official [`@terrastruct/d2`](https://www.npmjs.com/package/@terrastruct/d2) WASM package for client-side rendering — no CLI installation required.\n\n**[Documentation](https://albertocavalcante.github.io/slidev-addon-d2/)** | **[Live Demo](https://albertocavalcante.github.io/slidev-addon-d2/demo/)**\n\n## Quick Start\n\nThe package is currently published to [GitHub Packages](https://github.com/albertocavalcante/slidev-addon-d2/packages). An npm release is coming soon.\n\nAdd a `.npmrc` to your project to configure the `@albertocavalcante` scope:\n\n```ini\n@albertocavalcante:registry=https://npm.pkg.github.com\n```\n\nInstall the package:\n\n```bash\nbun add @albertocavalcante/slidev-addon-d2\n```\n\nEnable the addon in your slides frontmatter:\n\n```yaml\n---\naddons:\n  - d2\n---\n```\n\nWrite a D2 diagram:\n\n````markdown\n```d2\nuser: User {shape: person}\napi: API Server\ndb: PostgreSQL {shape: cylinder}\n\nuser -\u003e api: HTTPS\napi -\u003e db: SQL\n```\n````\n\nPass options after the language identifier:\n\n````markdown\n```d2 {sketch: true, theme: 5, layout: 'elk'}\nx -\u003e y -\u003e z\n```\n````\n\nSee the [documentation](https://albertocavalcante.github.io/slidev-addon-d2/) for all options, themes, and configuration details.\n\n## Development\n\n```bash\ncd example\nbun install\nbun run dev\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertocavalcante%2Fslidev-addon-d2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertocavalcante%2Fslidev-addon-d2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertocavalcante%2Fslidev-addon-d2/lists"}