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

@hirokisakabe/pom-md

v3.0.0

Published

Markdown wrapper for pom — write slides in Markdown with pomxml code fences.

Readme

@hirokisakabe/pom-md

Markdown wrapper for pom — write slides in Markdown with pomxml code fences.

Install

npm install @hirokisakabe/pom-md @hirokisakabe/pom

Usage

Create a .pom.md file:

---
size: 16:9
---

# Sales Report

- Q1 was strong
- Q2 had challenges

---

## Detailed Data

```pomxml
<Chart type="bar" labels="Q1,Q2,Q3,Q4" values="100,80,120,150" />
```

---

## Process

```pomxml
<Flow>
  <Step>Plan</Step>
  <Step>Develop</Step>
  <Step>Release</Step>
</Flow>
```

Then convert it to PPTX:

import { readFileSync } from "node:fs";
import { parseMd } from "@hirokisakabe/pom-md";
import { buildPptx } from "@hirokisakabe/pom";

const markdown = readFileSync("slides.pom.md", "utf-8");
const { xml, meta } = parseMd(markdown);
const { pptx } = await buildPptx(xml, meta.size);
await pptx.writeFile({ fileName: "output.pptx" });

Markdown Syntax

Slide Separator

Use --- (horizontal rule) to separate slides.

Frontmatter

Specify global settings in the frontmatter block:

---
size: 16:9
backgroundColor: "#f0f0f0"
masterPptx: ./template.pptx
---

| Key | Description | | ----------------- | ----------------------------------------------------------------- | | size | Slide size preset: 16:9 (1280×720, default) or 4:3 (1024×768) | | backgroundColor | Default background color for all slides (applied to VStack) | | masterPptx | Path to an existing PPTX file to use as master template |

Comment Directive

Use HTML comments in Marp-style to override settings per slide:

<!-- backgroundColor: red -->

# This slide has a red background

Supported directives:

| Directive | Description | | ----------------- | --------------------------------------------------------------- | | backgroundColor | Background color for this slide (overrides frontmatter default) |

Markdown → pom XML Mapping

| Markdown | pom Node | | ------------------ | ------------------------------------------------- | | # Heading | <Text fontSize="28" bold="true"> | | ## Heading | <Text fontSize="24" bold="true"> | | ### Heading | <Text fontSize="20" bold="true"> | | Paragraph text | <Text> | | - List item | <Ul><Li> | | 1. Numbered item | <Ol><Li> | | **bold** | <B>bold</B> (inside Text/Li/Td) | | *italic* | <I>italic</I> (inside Text/Li/Td) | | ![](img.png) | <Image src="img.png"> | | Table syntax | <Table> (header: bold + background, cellBorder) | | ```pomxml | XML passthrough |

pomxml Code Fence

For complex diagrams that Markdown cannot express, embed pom XML directly:

```pomxml
<Chart type="bar" labels="Q1,Q2,Q3,Q4" values="100,80,120,150" />
```

The content inside pomxml fences is passed through to the output as-is.

API

parseMd(markdown: string): ParseMdResult

Converts a Markdown string into a pom XML string and metadata.

interface ParseMdResult {
  xml: string;
  meta: ParseMdMeta;
}

interface ParseMdMeta {
  size: { w: number; h: number };
  masterPptx?: string;
}

The returned xml can be passed directly to buildPptx() from @hirokisakabe/pom. The meta contains parsed frontmatter settings such as slide size and master PPTX path.

License

MIT