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

@b4moss/hyogen-md

v0.12.0

Published

Extended Markdown template engine (hyogen.md)

Readme

hyogen.md (@b4moss/hyogen-md)

masthead

CI Coverage npm Release License OpenSSF Scorecard

Extended Markdown template engine for TypeScript / JavaScript.

Control flow and templating live in HTML comments (@hg@endhg or @@@@), so source files stay preview-friendly. The library outputs Markdown only (HTML is left to the consumer).

Homepage: https://github.com/b4m-oss/hyogen-md

This file is kept in sync at the repository root and at app/README.md (npm package root).


Install

npm install @b4moss/hyogen-md

Requires Node.js >= 24.


Quick start

Client / CSR (@b4moss/hyogen-md/client)

import { renderClient } from "@b4moss/hyogen-md/client";

const result = await renderClient(
  { path: "/src/index.md" },
  { siteName: "Demo" },
  {
    loader: async (path) => {
      // resolve path → file contents (virtual FS, fetch, etc.)
      return await readSomewhere(path);
    },
  },
);

console.log(result.markdown);
console.log(result.warnings);

Server / SSR (@b4moss/hyogen-md)

import { renderServer, createNodeLoader } from "@b4moss/hyogen-md";

const result = await renderServer(
  { path: "./pages/index.md" },
  { title: "Hello" },
  {
    loader: createNodeLoader(),
    // serverContext: { apiKey: "…" }, // server-only; not available on renderClient
  },
);

SSG batch (build)

import { build } from "@b4moss/hyogen-md";

const { files, warnings } = await build({
  input: "./src/**/*.md",
  outDir: "./out",
  context: { siteName: "Demo" },
});

API details: docs/specs/api.md.


Repository layout

| Path | Role | |------|------| | app/ | Library published to npm (files: dist, plus README / LICENSE) | | docs-site/ | Documentation site + Playground on GitHub Pages (not in npm) | | user-docs/ | User-facing docs (e.g. changelog) | | docs/ | Specs and roadmap (Japanese, maintainers) |

Documentation & Playground

Site: https://hyogenmd.oss.b4m.jp (GitHub Pages; /ja, /en, /playground).
Playground: https://hyogenmd.oss.b4m.jp/playground

Local:

make install-docs
make dev-docs

Open http://localhost:3000 (docs) and /playground. Uses ../app via Vite alias. Virtual FS + localStorage only.


Status

This is 0.x. APIs and output may change until 1.0.0.
Published: @b4moss/[email protected] (git tag v0.10.0).

Playground UX is part of the v0.10.0 product milestone but is not included in the npm tarball.

The coverage badge reflects approximate statement coverage for app/ (library) from Vitest (~84%). Initial release goal is ≥50%. Coverage is uploaded to Codecov from .github/workflows/quality.yml on pushes to main.


Changelog

See user-docs/changelog.md (Japanese: changelog_ja.md).


License

MIT © Kohki SHIKATA