Skip to content
PluginStats

refpages weekly downloads statistics

By lord-xld3 · npm · Webpack plugins

Reference pages for a TypeScript or JSDoc codebase, in the shape of a man page, built from its source files alone.

View on npm Fresh · Dec 6, 2026

refpages has 28 recorded weekly downloads on npm, a decrease of 96.3% over the past 30 days, ranking #2922 of 3,247 tracked listings.

Weekly downloads
28
Official API · Dec 5, 2026
7-day growth
+33.3%
+7 weekly downloads
30-day growth
-96.3%
-736 weekly downloads
90-day growth
—
Insufficient history
Rank
#2922
▼ 124 in 7 days

About refpages

refpages

Generates reference documentation for a TypeScript project, or a JavaScript project typed with JSDoc. Each export gets one page, laid out like a man page. Every page is built from the source code alone: its declaration, its types and the comments written above it.

There is no second place to write docs. A symbol is documented by commenting it where it's declared, so the pages can't fall behind the code. Links to things that no longer exist are reported as warnings. The output is plain static HTML with one stylesheet and no JavaScript.

Install

npm i -D refpages

refpages runs on Node 18 or later. It reads code with the TypeScript compiler API, which TypeScript 5.9 and 6 provide. If the project uses one of those versions, refpages shares its copy. Otherwise refpages installs its own, so a project on TypeScript 7 (whose compiler has no such API) still works, read by TypeScript 6.

Quick start

Add a refpages.json file to the project:

{
  "title": "My library",
  "entryPoints": ["src/index.ts"],
  "exclude": ["src/internal"],
  "out": "docs/reference"
}

Then run:

npx refpages

This writes one page for each export of src/index.ts, a page for each folder and file that declares one, and index.html, all into docs/reference. Open index.html in a browser, or serve the folder with whatever serves the rest of the site.

The command line

refpages [config] [--out <dir>] [--strict | --watch]
argument
configThe config file. By default, refpages uses refpages.json in the current folder, or the nearest one in a folder above it.
--out <dir>Where to write the pages, overriding the config's out. --out=<dir> works too.
--strictExits with code 1 if there are any warnings. Use this in CI to keep the docs current.
--watchKeeps running, and writes the pages again whenever a file they're built from changes: a source file, the config or a config it inherits, or an extension.
--versionPrints the version.
--helpPrints usage.

An option refpages doesn't recognize, a second config, or --strict with --watch is an error (exit code 2), not ignored.

refpages lists the files it wrote in .refpages-files in the output folder. On the next run, it deletes the ones it no longer makes, such as the page for a removed export, and any folder that leaves empty. It never deletes a file it didn't write, so the output folder can share space with the rest of a site. It refuses to write pages over its own inputs, such as a source file or the config.

Configuration

All configuration lives in one JSON file. Paths in it are relative to the file. entryPoints is the only required key.

keydefault
entryPointsThe modules whose exports get pages. Each is a path, or {"path": "...", "label": "..."}.
title"Reference"The heading of the index and the title of every page.
exclude[]Files to leave out. See Excluding files.
rootthe config's folderThe project's folder. Only files under it are documented, and not files in a node_modules folder below it. The index lists files by their path from here.
tsconfignoneThe project's tsconfig.json. Without one, refpages also reads JavaScript files, typed by their JSDoc.
out"refpages-out"Where the command line writes the pages.
errorCalls[]Names of functions whose first string argument is an error message, such as ["fail"]. Every message a function passes to one of these is listed under that function's Errors section.
extensions[]Modules that add to the pages. See Extensions.
cachetrueReading the code is most of a build, so refpages keeps what it read in the system's temp folder. It reuses that while no file it read has changed. Set this to false to read the code fresh every time.
modelfalseSet to true to also write model.json, which holds everything refpages read from the code.
inherittrueSet to false to stop this config inheriting from configs above it.

A key refpages doesn't recognize, such as a typo, produces a warning.

Excluding files

A symbol declared in an excluded file gets no page, and the file gets no page of its own. That applies even when an entry point re-exports the symbol. Each entry in exclude is either a path or a pattern:

"exclude": [
  "src/internal",
  "src/legacy.ts",
  "/\\.generated\\.ts$/",
  "/(^|\\/)__tests__\\//"
]
  • A path, relative to the config file. A folder excludes everything inside it, and a file excludes only that file.
  • A pattern: a regular expression written between slashes, with optional flags after the closing slash (/legacy/i). It is matched against each file's path relative to root, with / between folders on every platform. Remember that each backslash must be doubled inside a JSON string.
Nested configs

A config inherits from any refpages.json in the folders above it. The search stops at the repository root (the folder that contains .git), or at a config that sets "inherit": false.

Keys in the nearer config override the same keys in farther ones. Each key is replaced whole. Arrays are not merged, so a nested "exclude": [] brings back every excluded file. Paths in an inherited config still resolve relative to the file they were written in.…

Description from the npm listing.

  • documentation
  • typescript
  • jsdoc
  • reference
  • api-docs
  • man-page
  • webpack-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

refpages weekly downloads on npm, last 90 days: 28 weekly downloads as of Dec 5, 2026.refpagesWeekly downloads on npm · Last 90 days28downloads / week0200400600800Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
refpages weekly downloads on npm, last 90 days: 28 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

refpages weekly downloads growth on npm: +33.3% over 7 days, -96.3% over 30 days, 90-day growth unavailable.refpagesWeekly downloads growth on npm28downloads / week now7-day growth+7 weekly downloads+33.3%30-day growth-736 weekly downloads-96.3%90-day growth+28 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
refpages weekly downloads growth on npm: +33.3% over 7 days, -96.3% over 30 days, 90-day growth unavailable.

Ranking history

refpages npm ranking history: currently #2922 (by weekly downloads).refpagesnpm ranking · by weekly downloads · Last 90 days#2922current rank#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 9, 2026 – Dec 6, 2026 · 28 observations · Updated Dec 5, 2026pluginstats.com
refpages npm ranking history: currently #2922 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 147, #4 (overall #2,924)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 14, #19 (overall #279)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (142)
Recent weekly downloads observations for refpages
Date (UTC)Weekly downloadsChange vs. previous
28+10
18+1
17+1
160
16-6
22+2
20-1
210
21+3
180
18+2
16+9
7-1
8—

Similar npm Webpack plugins plugins

All 20 refpages alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/refpages. First seen Nov 9, 2026; last successful collection Dec 6, 2026. See the methodology.