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

@vyriy/ssg

v0.8.9

Published

Static Markdown site generator for Vyriy projects.

Downloads

371

Readme

@vyriy/ssg

Part of Vyriy - a calm architecture toolkit for TypeScript, React, SSR, SSG, APIs, and cloud-ready apps.

Full documentation: https://vyriy.dev/docs/ssg/

Static Markdown site generator for Vyriy-style content sites.

Purpose

This package builds a static site from Markdown README.md files. It is intended for content-first sites that need HTML pages, section catalogs, MiniSearch data, featured home content, related links, sitemap, robots, and copied public assets without adopting a full framework.

Markdown rendering uses react-markdown with GitHub-flavored Markdown and rehype-highlight, so content supports tables, task lists, autolinks, and highlighted fenced code blocks.

CLI

Build a site from site into dist:

vyriy-ssg site --output dist

The package also exposes the short ssg command:

ssg site -o dist

Useful options:

  • --site-url <url> sets canonical URLs and sitemap locations.
  • --site-name <name> sets the built-in theme name.
  • --stylesheet <href> links a stylesheet instead of using the built-in CSS.
  • --stylesheet-file <path> inlines a stylesheet file.
  • --ga <id> adds a Google Analytics measurement ID.

Content

By default, the generator expects this shape:

site/
  home/README.md
  consulting/README.md
  docs/README.md
  blog/<slug>/README.md
  docs/<slug>/README.md
  examples/<slug>/README.md
  public/

Markdown files can include simple frontmatter:

---
title: Calm deployment
description: Deployment notes for calm static sites.
date: 2026-06-16
published: true
homePage: true
tags:
  - ssg
  - deployment
---

# Calm deployment

Page content.

API

import { buildStaticSite } from '@vyriy/ssg';

await buildStaticSite({
  contentPath: 'site',
  outputPath: 'dist',
  siteUrl: 'https://vyriy.dev',
});

Custom sections are supported:

await buildStaticSite({
  sections: [
    {
      path: 'articles',
      title: 'Articles',
    },
  ],
});

Set index: false when a section should generate individual pages and search data without its own paginated catalog.

Exports

  • buildStaticSite(options) builds the static site.
  • runSsgCli(args) runs the CLI programmatically.
  • parsePage(markdown) parses page frontmatter and fallback metadata.
  • renderMarkdown(markdown) renders Markdown through react-markdown, remark-gfm, and rehype-highlight.
  • renderSitemap(urls, siteUrl) renders sitemap XML.
  • renderRobotsTxt(siteUrl) renders robots.txt.