# linebender/piet

An abstraction for 2D graphics.

Repository: https://github.com/linebender/piet
Canonical: https://ross.abutalabs.com/products/piet
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-05-02T17:32:57+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 80, release rhythm 13, longevity 100
- inputs: {"age_days": 2800, "days_push": 123, "days_rel": 369, "gap_med": 309, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1370, forks 98 (observed 2026-08-28T04:04:31.986987+00:00)

## What it is
Piet is a Rust crate providing a cross-platform abstraction for 2D graphics, with backends that implement the API on top of each platform's built-in 2D rendering system (Cairo, CoreGraphics, Direct2D). It serves as the drawing layer for the Druid GUI toolkit.

## Use cases
- draw 2D graphics with the same code on multiple platforms
- render shapes, text, and bezier paths in a Rust GUI app
- avoid bundling a full 2D renderer by using platform-native drawing APIs
- build a cross-platform Rust GUI toolkit's rendering layer
- render vector graphics to images in Rust

## When to choose
- you need portable 2D drawing code across macOS, Windows, and Linux in Rust
- you are building on Druid or the Linebender ecosystem
- you want thin wrappers over native platform graphics rather than a GPU renderer

## When to avoid
- you need GPU-accelerated rendering or modern features like shaders
- you need a project under active feature development (it is in maintenance mode)
- you need 3D graphics

## Facets
- artifact type: library
- maturity: maintenance
- function: graphics
- domain: graphics, cross-platform, web-development
- platform: rust, cross-platform, windows
- tags: 2d-graphics, drawing-api, cairo, direct2d, coregraphics, druid, macos, linux

## Member repositories
- linebender/piet (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:31.986987+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:55.941859+00:00, confidence not recorded.
  - readme: https://github.com/linebender/piet (fetched 2026-08-28T04:04:31.986987+00:00, sha 897a320e8f85)
  - registry_crates: https://crates.io/api/v1/crates/piet (fetched 2026-08-29T11:57:38.910140+00:00, sha e7a8ed27ac6f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
