npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

markgraphy

v0.1.1

Published

ASCII-framed Svelte graphs for markdown. Glyphs in a dashed frame with + corners and a [ TITLE ] on the top edge. Zero dependencies.

Readme

Markgraphy

Svelte components for tables, charts, and diagrams in markdown. Each graph sits in a dashed frame with a [ TITLE ] on the top edge. Glyphs draw the chart — no SVG, no canvas, no dependencies. One accent color by default; drawing graphs can take palette="duo" or palette="multi".

Docs · Examples · Install · Skill · GitHub

Install

pnpm add markgraphy

Svelte 5 is the only peer. One optional CSS import (markgraphy/themes.css), no config — theming is CSS variables (below).

Quickstart

In a +page.svelte (or any component):

<script>
	import { GraphKpi, GraphTimeline } from 'markgraphy';
</script>

<GraphTimeline
	title="PLAN"
	events={[
		{ date: 'w1', label: 'freeze features', state: 'done' },
		{ date: 'w2', label: 'ship the rc', state: 'now' },
		{ date: 'w3', label: 'general availability', state: 'next' }
	]}
/>

<GraphKpi
	title="SIGNUPS"
	value="1.2M"
	label="this week"
	hint="+18%"
	data={[2, 3, 3, 5, 8, 9, 11, 12, 14, 16, 18, 21]}
/>

In .svx markdown files (mdsvex), the same imports go in the script block at the top, then the components sit next to the prose.

Components

| Component | Import | Use for | | --------- | ---------------- | ------------------------------------------ | | Activity | GraphActivity | Daily counts over months, contribution grid | | Bars | GraphBars | Two bar groups, side by side | | Bullet | GraphBullet | Actual versus target on one track | | Calendar | GraphCalendar | One month, marked days | | Cells | GraphCells | Filled / empty grids | | Compare | GraphCompare | Feature matrix ( / ) | | Countdown | GraphCountdown | Time left until a date | | Diff | GraphDiff | Add / remove / keep rows | | Flow | GraphFlow | Process diagrams on a dashed arrow | | Funnel | GraphFunnel | Steps that get narrower | | Gantt | GraphGantt | Schedule on a character track | | Heatmap | GraphHeatmap | Labeled 2d intensity matrix | | Invoice | GraphInvoice | From, bill-to, line items, totals | | KPI | GraphKpi | One number with a sparkline under it | | Meter | GraphMeter | Progress as = and - | | Plot | GraphPlot | Line or area from columns of glyphs | | Rank | GraphRank | A ranked list, one bar per row | | Slope | GraphSlope | Two figures per row, before → after | | Spark | GraphSpark | Sparkline from block characters | | Spec | GraphSpec | Label / value sheets | | Stack | GraphStack | Parts of a whole, glyphs instead of colors | | Stat | GraphStat | Large figures with labels | | Table | GraphTable | Data tables with optional footer totals | | Timeline | GraphTimeline | Dated events, one row current | | Timer | GraphTimer | Elapsed time, how long ago, or the clock | | Tree | GraphTree | File or org trees | | Uptime | GraphUptime | One glyph per day, percent up | | Waffle | GraphWaffle | Share of 100 cells | | Waterfall | GraphWaterfall | Running total as floating bars | | Frame | Graph, GraphBody, GraphRule, GraphTrack, GraphTick, GraphArrow | Shared dashed frame primitives |

Composed write-ups (refactor, incident, tradeoff, PR, sprint, migration) live on Examples. Every graph has its own page under Docs with the full props.

Theming

Set CSS variables on any container — the components pick them up wherever they are scoped. The site renders dark-first, and so do the fallbacks.

| Variable | Fallback | Use | | -------------------- | ------------------------ | ------------------------------------ | | --graph-foreground | oklch(0.93 0 0) | primary text | | --graph-muted | oklch(0.62 0 0) | secondary text | | --graph-accent | oklch(0.78 0.17 155) | the one highlight | | --graph-accent-2 | oklch(0.78 0.12 70) | second series (palette="duo") | | --graph-accent-3 | oklch(0.75 0.1 200) | third series (palette="multi") | | --graph-frame | oklch(0.6 0 0 / 0.5) | frame dashes and corner marks | | --graph-faint | oklch(0.3 0 0) | empty cells and tracks | | --graph-font | mono stack | the font — anything monospace works |

:root {
	--graph-accent: oklch(0.78 0.17 155);
}

Design

  • Geist Mono by default. Dashed frame, + corners (swap with corner), title as [ TITLE ].
  • One accent: --graph-accent. Unused rows recede with opacity. palette="duo" / "multi" opt into --graph-accent-2 and --graph-accent-3.
  • Glyphs do the drawing (█ ▓ ▒ ░ · - = + | ├ └ ✓). Tracks that represent a range (meter, stack, bullet, rank) span the frame. Spark, bars, cells, and uptime stay packed at 1ch. Pass glyphsshade, ascii, hash, bar, or your own characters. No SVG.
  • Numbers use tabular-nums. Amounts sit right-aligned.
  • Motion is transform and opacity only, 220ms, no loops. prefers-reduced-motion sets duration to 0.

Agent skill

A SKILL.md in skills/markdown-graphs/ teaches an agent when to put a graph next to the prose, which component to pick, and how to write the usage. Drop the two files into the skills folder your agent already reads (.claude/skills/markdown-graphs, .cursor/skills/markdown-graphs, …), or fetch them from the site:

curl -fsSL https://markgraphy.vercel.app/skill.md -o <dir>/markdown-graphs/SKILL.md
curl -fsSL https://markgraphy.vercel.app/skill/recipes.md -o <dir>/markdown-graphs/recipes.md

Development

pnpm install
pnpm dev

Then check types across the package and site:

pnpm check

The package build (pnpm package) outputs to dist/ via svelte-package.

Docs development in fractalsvelte

The site (../fractalsvelte) imports this package through a local link while it is unpublished — its dependency is declared as "markgraphy": "link:../markgraphy". To work on the library and its docs at the same time:

# terminal 1 — rebuild dist/ on every change
pnpm package:watch

# terminal 2 — the site's dev server
pnpm --dir ../fractalsvelte dev

Components edited here recompile into dist/ and hot-reload in the site. Restart the site's dev server after changing the link or dependency versions. Until this package is on npm, pages that import it cannot build in the site's Vercel deploys — publish, then flip the link to a version range.

License

MIT