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

yamltabl

v2.0.0

Published

Yamltabl lets you define tables in YAML using a predictable schema — and render to Markdown or HTML.

Readme

Yamltabl

Yamltabl lets you define tables in YAML using a predictable schema — and render to Markdown or HTML.

Perfect for everything-as-code documentation and static sites — without the messiness of raw Markdown or HTML tables.

Quick Example

What it looks like in Yamltabl:

yamltabl: 2.0.0

columns:
  - haiku: Haiku Title
  - line1: Line 1
  - line2: Line 2
  - line3: Line 3

row1:
  haiku: “The Old Pond” by Matsuo Bashō
  line1: An old silent pond
  line2: A frog jumps into the pond —
  line3: Splash! Silence again.

row2:
  haiku: “A World of Dew” by Kobayashi Issa
  line1: A world of dew,
  line2: And within every dewdrop
  line3: A world of struggle.

Yamltabl converts the YAML above into a Markdown-compatible table:

<table>
  <thead>
    <tr>
      <th id="haiku">Haiku Title</th>
      <th id="line1">Line 1</th>
      <th id="line2">Line 2</th>
      <th id="line3">Line 3</th>
    </tr>
  </thead>
  <tbody>
    <tr id="haiku">
      <td>“The Old Pond” by Matsuo Bashō</td>
      <td>“A World of Dew” by Kobayashi Issa</td>
    </tr>
    <tr id="line1">
      <td>An old silent pond</td>
      <td>A world of dew,</td>
    </tr>
    <tr id="line2">
      <td>A frog jumps into the pond —</td>
      <td>And within every dewdrop</td>
    </tr>
    <tr id="line3">
      <td>Splash! Silence again.</td>
      <td>A world of struggle.</td>
    </tr>
  </tbody>
</table>

👉 See the full schema specification for a breakdown of each section and more.

Usage and Installation

As a CLI tool

npx yamltabl generate html -i path/to/table.yaml -o path/to/destination/table.html
npx yamltabl generate md -i path/to/table.yaml -o path/to/destination/table.md

As a library

npm install yamltabl

or

pnpm install yamltabl

In your code:

import { renderHtml, renderMd } from 'yamltabl';

const yamlString = `
  yamltabl: 2.0.0

  columns:
    - column1: Column 1
    - column2: Column 2
    - column3: Column 3

  row1:
    column1: Cell A
    column2: Cell B
    column3: >
      <ul>
        <li> list item 1
        <li> list item 2
        <li> list item 3
      </ul>
`;

const htmlString = await renderHtml(yamlString);
console.log(htmlString);

const mdString = await renderMd(yamlString);
console.log(mdString);

👉 Compare with other table authoring formats in this comparison guide.