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

listpress

v1.1.0

Published

Turn a Markdown checklist into a polished, print-ready HTML or PDF document.

Readme

ListPress

Turn a Markdown checklist into a polished, print-ready HTML or PDF document.

ListPress supports Letter and A4 paper, configurable margins and column counts, duplex binding, typographic themes, SVG icons, and forced column or page breaks.

By default, ListPress generates a self-contained HTML file with stylesheets, scripts, and icons embedded, so it can be opened offline in a browser to print or export as a PDF. A live preview can optionally build the rendered checklist in a browser as the Markdown is changed.

ListPress can also generate a PDF directly using Playwright.

Example

Example Preview

View the source Markdown.

You can build this example with:

npx listpress examples/camping.md

Quick Start

Create a Markdown checklist, then run:

npx listpress your-checklist.md

ListPress writes your-checklist.html next to the Markdown file. Open the HTML in a browser and use the browser's print dialog to print it or save it as a PDF.

Command-Line Options

| Option | Description | | --- | --- | | -o, --output <file> | Choose the output file. The output directory must already exist. | | --pdf | Export a PDF using Playwright’s headless Chromium. | | -w, --watch | Rebuild the HTML and start a local live-preview server whenever the Markdown changes. |

Use -o or --output to choose a filename or location:

npx listpress your-checklist.md --output exports/another-checklist.html

Use --pdf to write your-checklist.pdf alongside the Markdown file. Use -o to choose a different PDF path. If Playwright’s headless Chromium is missing, ListPress downloads it on the first PDF export. That first download requires internet access.

npx listpress your-checklist.md --pdf

Use -w or --watch while editing:

npx listpress your-checklist.md --watch

Watch mode runs a local server that displays a real-time preview of the Markdown file in a browser. It also writes the generated HTML alongside the Markdown file. Press Ctrl+C to stop watching. Watch mode cannot be used with PDF generation.

Document Settings

Place YAML frontmatter at the top of the checklist to set its layout.

---
columns: 2
duplex: false
margins: 0.5in
paper: letter
theme: theme1
---

| Setting | Values | Default | | --- | --- | --- | | columns | Unquoted integer from 1 to 3 | 3 | | duplex | true or false; swaps left and right margins on left-facing pages | false | | margins | One to four lengths: a number with in, cm, or mm | 0.5in on all sides | | paper | letter or a4 | letter | | theme | theme1, theme2, theme3, or theme4 | theme1 |

Margins use the same shorthand order as CSS:

  • One value applies to all sides.
  • Two values set top/bottom and left/right.
  • Three values set top, left/right, and bottom.
  • Four values set top, right, bottom, and left.

For example, margins: 12mm 12mm 12mm 20mm reserves a 20 mm left binding margin.

When duplex: true, ListPress moves that margin to the right on left-facing pages.

Themes

| Theme | Heading font | Body font | | --- | --- | --- | | theme1 | System sans-serif | System sans-serif | | theme2 | System serif | System serif | | theme3 | System serif | System sans-serif | | theme4 | System sans-serif | System serif |

Themes use local system fonts, so the generated HTML remains usable offline.

Markdown Checklist Syntax

  • Use # for the sheet title.
  • Use ## for section headings within the columns.
  • Use - [ ] for an unchecked item and - [x] for a checked item.
  • Ordered and nested task lists are supported.
  • Put :::column-break::: or :::page-break::: on a line of its own with a blank line on each side to force a break. A column break advances to a new page when no columns remain.

Wrap a break marker in an HTML comment to keep ordinary Markdown previews clean:

<!-- :::column-break::: -->

Add an icon with {{icon:name}} for a Lucide icon or {{icon:library:name}} for another icon set in the Iconify Catalog.

## {{icon:shirt}} Clothing

- [ ] {{icon:mdi:alert-circle-outline}} Rain jacket

Icons are downloaded while building the HTML and embedded for offline use.

Printing

  • For the best result, disable headers and footers in the browser print dialog.
  • ListPress controls page margins with the margins frontmatter setting. Set the browser print margins to default or minimum to avoid adding extra space.

Development

ListPress requires Node.js 24 or newer.

pnpm install
pnpm exec playwright install chromium
pnpm test

Run pnpm test to run both Vitest projects. Use pnpm test:node for Markdown rendering, embedded assets, and CLI behavior. Use pnpm test:browser for browser layout, offline HTML, checkbox interaction, printing, pagination fallback, and live preview. The browser project uses Playwright to drive Chromium.

Run pnpm test:coverage to test both suites and report Node.js coverage.

Linting and formatting use Vite+, so Node.js 24.11 or newer is required for those commands:

pnpm lint
pnpm format:check
pnpm format