{"id":13475607,"url":"https://github.com/cetz-package/cetz","last_synced_at":"2026-01-12T00:03:27.413Z","repository":{"id":153865634,"uuid":"628408767","full_name":"cetz-package/cetz","owner":"cetz-package","description":"CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.","archived":false,"fork":false,"pushed_at":"2025-12-31T00:43:54.000Z","size":73652,"stargazers_count":1558,"open_issues_count":72,"forks_count":64,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-01T17:58:36.004Z","etag":null,"topics":["cetz","typst","typst-canvas"],"latest_commit_sha":null,"homepage":"https://cetz-package.github.io","language":"Typst","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cetz-package.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":".github/FUNDING.yml","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":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["johannes-wolf","fenjalien"]}},"created_at":"2023-04-15T21:19:07.000Z","updated_at":"2026-01-01T17:49:42.000Z","dependencies_parsed_at":"2024-03-24T19:26:20.627Z","dependency_job_id":"e1f5c541-d6c9-4e0d-a5fc-3385427d08cf","html_url":"https://github.com/cetz-package/cetz","commit_stats":null,"previous_names":["johannes-wolf/cetz","cetz-package/cetz","johannes-wolf/typst-canvas"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/cetz-package/cetz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetz-package%2Fcetz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetz-package%2Fcetz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetz-package%2Fcetz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetz-package%2Fcetz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cetz-package","download_url":"https://codeload.github.com/cetz-package/cetz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetz-package%2Fcetz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28328716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cetz","typst","typst-canvas"],"created_at":"2024-07-31T16:01:21.860Z","updated_at":"2026-01-12T00:03:27.408Z","avatar_url":"https://github.com/cetz-package.png","language":"Typst","funding_links":["https://github.com/sponsors/johannes-wolf","https://github.com/sponsors/fenjalien"],"categories":["Typst","Templates \u0026 Libraries"],"sub_categories":["Graphics"],"readme":"# CeTZ\n\nCeTZ (CeTZ, ein Typst Zeichenpaket) is a library for drawing with [Typst](https://typst.app) with an API inspired by TikZ and [Processing](https://processing.org/).\n\n## Examples\n\u003c!-- img width is set so the table gets evenly spaced by GitHubs css --\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\n    \u003ca href=\"gallery/karls-picture.typ\"\u003e\n      \u003cimg src=\"gallery/karls-picture.png\" width=\"250px\"\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"gallery/paciolis.typ\"\u003e\n      \u003cimg src=\"gallery/paciolis.png\" width=\"250px\"\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"gallery/plate-capacitor.typ\"\u003e\n      \u003cimg src=\"gallery/plate-capacitor.png\" width=\"250px\"\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003eKarl's Picture\u003c/td\u003e\n  \u003ctd\u003ePacioli's construction of the icosahedron\u003c/td\u003e\n  \u003ctd\u003ePlate Capacitor\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\n    \u003ca href=\"gallery/tree.typ\"\u003e\n      \u003cimg src=\"gallery/tree.png\" width=\"250px\"\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"gallery/periodic-table.typ\"\u003e\n      \u003cimg src=\"gallery/periodic-table.png\" width=\"250px\"\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n    \u003ca href=\"gallery/waves.typ\"\u003e\n      \u003cimg src=\"gallery/waves.png\" width=\"250px\"\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003eTree Layout\u003c/td\u003e\n  \u003ctd\u003ePeriodic Table of Elements\u003c/td\u003e\n  \u003ctd\u003eWaves\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\n    \u003ca href=\"gallery/torus.typ\"\u003e\n      \u003cimg src=\"gallery/torus.png\" width=\"250px\"\u003e\n    \u003c/a\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n  \u003c/td\u003e\n  \u003ctd\u003e\n  \u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003eTorus\u003c/td\u003e\n  \u003ctd\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n*Click on the example image to jump to the code.*\n\nYou can explore an example gallery of scientific diagrams at [janosh.github.io/diagrams](https://janosh.github.io/diagrams).\n\n## Usage\n\nFor information, see the [API Reference (PDF)](./manual.pdf?raw=true) or the [online manual](https://cetz-package.github.io/docs).\n\nTo use this package, simply add the following code to your document:\n\n```typ\n#import \"@preview/cetz:0.4.2\"\n\n#cetz.canvas({\n  import cetz.draw: *\n  // Your drawing code goes here\n})\n```\n\n## CeTZ Libraries\n\n- [cetz-plot - Plotting and Charts Library](https://github.com/cetz-package/cetz-plot)\n- [cetz-venn - Simple two- or three-set Venn diagrams](https://github.com/cetz-package/cetz-venn)\n\n## Installing\n\nTo install the CeTZ package under [your local typst package dir](https://github.com/typst/packages?tab=readme-ov-file#local-packages) you can use the `install` script from the repository.\n\n```bash\njust install\n```\n\nThe installed version can be imported by prefixing the package name with `@local`.\n\n```typ\n#import \"@local/cetz:0.4.2\"\n\n#cetz.canvas({\n  import cetz.draw: *\n  // Your drawing code goes here\n})\n```\n\n### Just\n\nThis project uses [just](https://github.com/casey/just), a handy command runner.\n\nYou can run all commands without having `just` installed, just have a look into the `justfile`.\nTo install `just` on your system, use your systems package manager. On Windows, [Cargo](https://doc.rust-lang.org/cargo/) (`cargo install just`), [Chocolatey](https://chocolatey.org/) (`choco install just`) and [some other sources](https://just.systems/man/en/chapter_4.html) can be used. You need to run it from a `sh` compatible shell on Windows (e.g git-bash).\n\n## Testing\n\nThis package comes with some unit tests under the `tests` directory.\nTo run all tests you can run the `just test` target. You need to have\n[`tytanic`](https://github.com/tingerrr/tytanic/) in your `PATH`: `cargo install tytanic`.\n\n## Projects using CeTZ\n- [finite](https://github.com/jneug/typst-finite) Finite is a Typst package for rendering finite automata.\n- [fletcher](https://github.com/Jollywatt/typst-fletcher) Package for drawing commutative diagrams and figures with arrows.\n- [chronos](https://git.kb28.ch/HEL/chronos) Package for drawing sequence diagrams.\n- [circuiteria](https://git.kb28.ch/HEL/circuiteria) Package for drawing circuits.\n- [zap](https://github.com/l0uisgrange/zap) Package for drawing standard electronic circuits.\n- [rivet](https://git.kb28.ch/HEL/rivet-typst) Package for drawing instruction / register diagrams.\n- [plotsy-3d](https://github.com/misskacie/plotsy-3d) Package for rendering 3D objects \u0026 plots.\n- [alchemist](https://github.com/Typsium/alchemist) A package to render skeletal formulae using a human-readable format using cetz.\n- [deckz](https://github.com/micheledusi/Deckz) Render Poker-Style playing cards.\n- [neural-netz](https://github.com/edgaremy/neural-netz) Visualize neural network architectures.\n- [energy-dia](https://github.com/Typsium/energy-dia) Library for creating professional energy diagrams in chemistry and physics.\n- [conchord](https://github.com/sitandr/conchord) Package for writing lyrics with chords that generates fretboard diagrams.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetz-package%2Fcetz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcetz-package%2Fcetz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetz-package%2Fcetz/lists"}