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

@hia-doc/htmdoc-runner

v0.1.0

Published

Standalone HTMDoc project runner and CLI.

Readme

@hia-doc/htmdoc-runner

Standalone API and CLI for HTML documentation projects.

npm install --save-dev @hia-doc/htmdoc-runner

JSON configs use schemaVersion: "0.1.0-draft". The package exports HTMDOC_CONFIG_JSON_SCHEMA for validation and editor integration.

import path from "node:path";
import { runHtmDoc } from "@hia-doc/htmdoc-runner";

const result = await runHtmDoc({
  workspaceRoot: process.cwd(),
  outputDirectory: path.resolve("dist/htmdoc"),
  inputs: [{ kind: "html", path: "src/index.html" }]
});

The runner accepts html, html-fragment, html-template and custom-elements-manifest inputs. It writes HTMDoc extraction artifacts, HIA documents, direct-source documentation maps and a documentation producer result.

htmdoc --config htmdoc.config.json

Source content is not embedded unless sourcesContentPolicy: "embed" is set explicitly in the config options object.

HTML-authoring metadata handoff

createHtmlAuthoringDocumentationHandoff() evaluates one explicit, metadata-only handoff request. It accepts only sourcesContentPolicy: "none", stable output/entry identities, an accepted HTMDoc conformance summary, and an ordinary-map linkage declaration. The result is accepted or refused and does not contain source, artifact/map/sidecar bodies, paths, locators, credentials, target state, or host API handles.

import { createHtmlAuthoringDocumentationHandoff } from "@hia-doc/htmdoc-runner";

const report = createHtmlAuthoringDocumentationHandoff(metadataRequest);

The optional htmdoc-handoff --input handoff.json [--out report.json] command reads only its explicit safe-relative JSON input. It does not discover or run a project, open Tauri/Obsidian, fetch source, or publish a package.

HTML-authoring source-comment integration

createHtmlAuthoringSourceCommentProjectionRequest() converts one already-materialized HTMDoc extraction and none-only doc-source-map into a [email protected] request. It selects a symbol and map entry through explicit identity, preserves canonical @lang / inline <lang> field text, and converts HTMDoc's 1-based annotation columns to the projection contract's 0-based columns.

import { createHtmlAuthoringSourceCommentProjectionRequest } from "@hia-doc/htmdoc-runner";

const projectionRequest = createHtmlAuthoringSourceCommentProjectionRequest({
  extraction,
  docSourceMap,
  documentId: "htmdoc:card",
  symbolId: "html:component:card",
  projectionId: "projection:card:description",
  requestedLocale: "zh-CN",
  fallbackLocales: ["en"],
  contentPolicy: "explicit-projected-text"
});

中文说明:该 adapter 是 pure metadata bridge;它不读取源码、不运行 parser 或 core evaluator、不执行表达式,也不访问 target、Tauri/Obsidian host 或 network。ordinary doc-source-map 只提供 entry/source linkage,不承载完整 projection 或正文。