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

v1.1.3

Published

PowerPoint Object Model - A declarative TypeScript library for creating PowerPoint presentations

Readme

pom

pom (PowerPoint Object Model) is a library for declaratively describing PowerPoint presentations (pptx) in TypeScript. It is designed for use cases where JSON in POM format generated by AI is converted into PowerPoint files.

Requirements

  • Node.js 18 or higher (for Node.js environments)
  • Modern browser with ES2020+ support (for browser environments)

[!NOTE] pom works in both Node.js and browser environments. Text measurement uses opentype.js with bundled Noto Sans JP fonts, ensuring consistent layout across all environments.

Installation

npm install @hirokisakabe/pom

Quick Start

import { buildPptx, POMNode } from "@hirokisakabe/pom";

const slide: POMNode = {
  type: "vstack",
  w: "100%",
  h: "max",
  padding: 48,
  gap: 24,
  alignItems: "start",
  children: [
    {
      type: "text",
      text: "Presentation Title",
      fontPx: 48,
      bold: true,
    },
    {
      type: "text",
      text: "Subtitle",
      fontPx: 24,
      color: "666666",
    },
  ],
};

const pptx = await buildPptx([slide], { w: 1280, h: 720 });
await pptx.writeFile({ fileName: "presentation.pptx" });

Features

  • Type-safe: Strict type definitions with TypeScript
  • Declarative: Describe slides with JSON-like objects
  • PowerPoint First: Native support for Shape features
  • Flexible Layout: Automatic layout with VStack/HStack/Box
  • Pixel Units: Intuitive pixel-based sizing (internally converted to inches)
  • Master Slide: Automatically insert common headers, footers, and page numbers across all pages
  • AI Friendly: Simple structure that makes it easy for LLMs to generate code

Available Nodes

| Node | Description | | ------------ | ---------------------------------------------- | | text | Text with font styling and bullet points | | image | Images from file path, URL, or base64 | | table | Tables with customizable columns and rows | | shape | PowerPoint shapes (roundRect, ellipse, etc.) | | chart | Charts (bar, line, pie, area, doughnut, radar) | | timeline | Timeline/roadmap visualizations | | matrix | 2x2 positioning maps | | tree | Organization charts and decision trees | | flow | Flowcharts with nodes and edges | | processArrow | Chevron-style process diagrams | | box | Container for single child with padding | | vstack | Vertical stack layout | | hstack | Horizontal stack layout |

For detailed node documentation, see Nodes Reference.

Documentation

| Document | Description | | ----------------------------------------------- | --------------------------------------- | | Nodes Reference | Complete reference for all node types | | Master Slide | Headers, footers, and page numbers | | Serverless Environments | Text measurement options for serverless | | LLM Integration | Guide for generating slides with AI/LLM |

License

MIT