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

@sadcoderlabs/laughing-man

v0.5.0

Published

Turn your Markdown into a self-hosted newsletter

Readme

laughing-man

npm Version CI Agent Friendly

Turn your Markdown into a self-hosted newsletter.

Write your newsletter in Markdown with whatever tools you like (Obsidian, Logseq, VSCode, etc.). laughing-man turns them into a static archive site and email-ready newsletter HTML. Host on Cloudflare Pages, deliver to subscribers with Resend. Fully self-hosted, fully free within their free tiers. No CMS, no database, no code.

Installation

Requires Node.js 22+ (for npx) and a domain name.

npm install -g @sadcoderlabs/laughing-man

Or run without installing:

npx @sadcoderlabs/laughing-man --help

Usage

If you're the type who skips the manual, just copy this prompt to your agent:

How do I use this tool? Read https://raw.githubusercontent.com/sadcoderlabs/laughing-man/main/skills/laughing-man/SKILL.md

Initiate

Generate laughing-man.yaml in any folder:

cd /path/to/your/markdown/folder/
laughing-man init

Preview

Preview your newsletter website (and the email template) with the local server:

laughing-man preview

Configure

name: Your Newsletter Name
description: A newsletter by [Your Name](https://blog.example.com)
issues_dir: .
attachments_dir: .

theme: laughing-man
syntax_highlight_theme: material-theme-lighter

author:
  name: Your Name
  url: https://example.com
  x_handle: "@your_handle"

web_hosting:
  provider: cloudflare-pages
  project: your-newsletter-name
  domain: example.com

email_hosting:
  provider: resend
  from: "Your Name <[email protected]>"
  reply_to: [email protected]

env:
  CLOUDFLARE_API_TOKEN: "cf_xxxxx" # or set CLOUDFLARE_API_TOKEN env var
  RESEND_API_KEY: "re_xxxxx" # or set RESEND_API_KEY env var
  • Get your Cloudflare API token from dash.cloudflare.com/profile/api-tokens
    • Permissions:
      • Account | Cloudflare Pages | Edit
      • Zone | DNS | Edit
    • Account Resources
      • Include | your account name
    • Zone Resources:
      • Include | Specific zone | example.com
  • Get your Resend API key from resend.com/api-keys
    • Permission: Full access
      • Because the subscribe function creates contacts, not just sends email

Deploy

Set up Cloudflare Pages (project + custom domain + DNS) and deploy:

laughing-man setup web                 # Create Cloudflare Pages project + custom domain + DNS
laughing-man deploy                    # Deploy to Cloudflare Pages

Set up Resend and send an issue:

laughing-man setup newsletter          # Verify Resend API key + sender domain + DNS
laughing-man send <issue-number>       # Send an issue via Resend Broadcast