# mhkeller/layercake

graphics framework for sveltejs

Repository: https://github.com/mhkeller/layercake
Canonical: https://ross.abutalabs.com/products/layercake
Homepage: https://layercake.graphics
Language: Svelte
License: MIT
License Family: permissive
Topics: sveltejs, graphics, dataviz, layers, cake, dessert, delicious, layercake, charts, svelte
Last push: 2026-08-23T18:45:53+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 19, longevity 100
- inputs: {"age_days": 2969, "days_push": 10, "days_rel": 380, "gap_med": 151.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1789, forks 42 (observed 2026-08-28T04:05:36.929565+00:00)

## What it is
Layer Cake is a headless visualization framework for Svelte that provides a wrapper component and layout components (SVG, HTML, Canvas, WebGL) for building reusable, layered charts. It computes scales synced to layout changes and supports both client-side and server-side rendering of responsive graphics.

## Use cases
- build custom charts in svelte
- create responsive data visualizations
- render charts server-side without javascript
- combine svg canvas and webgl layers in one chart
- make a line chart or bar chart in svelte
- build reusable chart components with shared scales

## When to choose
- you use Svelte and want full control over chart components
- you need charts that mix SVG, Canvas, HTML, or WebGL layers
- you want server-side rendered graphics that work without JavaScript
- you prefer copy-paste customizable components over a fixed chart API

## When to avoid
- you need a quick out-of-the-box chart library with prebuilt chart types
- your project does not use Svelte
- you want a framework-agnostic or React-based charting solution

## Facets
- artifact type: library
- maturity: active
- function: data-visualization, charts, frontend-framework, ui-components
- domain: data-visualization, frontend, web-development, graphics
- platform: browser
- tags: svelte, sveltekit, dataviz, headless-framework, svg, canvas, webgl, responsive-charts, server-side-rendering, web-server, nodejs, javascript

## Member repositories
- mhkeller/layercake (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:36.929565+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-30T03:23:19.193687+00:00, confidence not recorded.
  - readme: https://github.com/mhkeller/layercake (fetched 2026-08-28T04:05:36.929565+00:00, sha b803b2111bde)
  - homepage: https://layercake.graphics (fetched 2026-08-29T11:02:32.021945+00:00, sha 09a7598dfdda)
  - registry_npm: https://registry.npmjs.org/layercake (fetched 2026-08-29T11:02:32.031444+00:00, sha e4a6ee1b0c40)
- Data as of 2026-08-30T08:39:29.467469+00:00.
