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

letdoc

v0.3.9

Published

Convert a markdown file into html file with the github flavor, supports Mermaid, chartjs and syntax highlight.

Downloads

15

Readme

Documentation by markdown with customized layout

Technical documentation should be easily ready by a user. Layouting the content of a document takes lots of time in Windows Word. Especially, Technical document, the coding block is hard to read. Markdown has been widely adopted for the documnetation but it needs a massage in order to present to your client. As the result, HTML should be a good option as a output format of a document. Different format of document can be generated by browser. Printing as PDF or saving the whole page as an image file.

This simple project is designed to work with Mermaid and Chartjs. If the markdown can express a diagram in words and or using Javascript code to generate a chart will be helpful to me for writing a document to a client.

Install

npm install -g letdoc

Usage

letdoc example.md
# or
letdoc example.md myexample.html

An example content in example.md

[comment]: # (title : <Your Project Title>)
[comment]: # (author: <Your Author Version>)
[comment]: # (version: <Your Document Version>)
[comment]: # (company: <Your Company Name>)
[comment]: # (client: <Your Client Name>)

# My Project Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nisi mauris, mollis in leo ut, congue vulputate enim. Nulla interdum posuere orci in volutpat. Nulla fringilla erat leo, id sollicitudin velit sollicitudin non. Mauris condimentum nisi id lorem dignissim interdum. Curabitur lacinia vestibulum pharetra. Mauris at nisi eu nibh aliquet elementum et in lectus. Nunc viverra consectetur purus, sit amet fringilla est porta ut. Nam sem risus, rutrum ut pharetra eu, ornare non metus. Phasellus quis sodales metus. Nunc ornare vestibulum lectus, sed malesuada dui faucibus quis. Donec vulputate nibh a tortor pellentesque consequat. Vivamus faucibus nulla id varius imperdiet.

Customized Template

Design your own template in html format and put it in the templates folder of project root and run as following:

letdoc --template mytemplate example.md
# or
letdoc -t mytemplate example.md

Set logo in default template

letdoc --logo ./logo.png example.md
# or
letdoc -l ./logo.png example.md

PNG or PDF Formats

You can generate a full page png / pdf instead of html file by adding an option with the command:

Sample page image

letdoc -f png example.md example.png
# or
letdoc -f pdf example.md example.pdf

Mermaid Examples

Writing a code block with a syntax keyword mermaid to let the generator knows which code block will be converted into diagram/chart. Besides, the svg will be optimized by SVGO to minize the file size of the output document.

The mermaid diagram will generate as a svg and embbed in the output html file just like the image is shown below:

Mermaid diagram 1

Mermaid diagram 2

ChartJS

Adding keyword chartjs behinds the syntax name to let the generator knows which code block will be used to generate a svg chart in the output document.

Generating Chartjs diagram by using code block like belows:

Noted: You can write a simple logic to generate a dynamic dataset for chartjs

Chartjs chart 1

Dependencies

npm install