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

create-asciidoc-multi-book-workspace

v0.2.1

Published

Create a complete AsciiDoc multi-book workspace.

Readme

create-asciidoc-multi-book-workspace

create-asciidoc-multi-book-workspace is an npm initializer for a complete AsciiDoc multi-book workspace.

It creates a user-owned workspace with sample books, a catalog, shared assets, explicit AsciiDoc dependencies, and one local build script at tools/adoc-books.mjs.

Usage

pnpm create asciidoc-multi-book-workspace bookshelf
cd bookshelf
pnpm install
pnpm run build

npm users can run:

npm create asciidoc-multi-book-workspace@latest my-books
npx create-asciidoc-multi-book-workspace@latest my-books

Library API

Host CLIs can create the same workspace through the package entrypoint:

import { initWorkspace } from "create-asciidoc-multi-book-workspace";

const result = await initWorkspace({ targetDir: "my-books", force: false });
console.log(result.targetDir);

The host CLI owns command parsing and user-facing output. This package owns the workspace files it creates.

The generated workspace contains:

README.md
catalog.adoc
package.json
.gitignore
tools/adoc-books.mjs
books/00-book-anatomy
books/01-starter-book
books/02-multipart-monograph
books/03-technical-book-workflow
books/04-reference-manual
books/05-upper-volume
books/06-lower-volume
books/07-structured-writing-conventions
shared/attributes.adoc
shared/images/workspace-map.svg

It does not include this repository's test/, .github/, src/, dist/, DESIGN.adoc, or maintainer release checks.

Generated Workspace

The generated package.json directly lists the AsciiDoc toolchain:

  • @asciidoctor/core
  • asciidoc-abundant-tree
  • asciidoctor-kroki

The generated scripts are:

pnpm run build
pnpm run check
pnpm run clean

tools/adoc-books.mjs belongs to the generated workspace. Users can open it, modify it, or delete it.

Maintainer Layout

src/                         # TypeScript initializer and user runtime source
templates/default-workspace/ # true source for the generated user workspace
test/                        # maintainer tests
DESIGN.adoc                  # maintainer design specification
.github/                     # maintainer CI

The sample books live only under templates/default-workspace/books/.

Maintainer Commands

pnpm install
pnpm run build
pnpm run preview:build
pnpm run preview:fresh
pnpm run test
pnpm run check
pnpm pack --dry-run

pnpm run check builds TypeScript, runs maintainer tests, and checks the npm package boundary.

pnpm run preview:build updates a generated sample workspace under build/template-preview/workspace, builds the sample books with the maintainer repository's installed AsciiDoc toolchain, and writes HTML to build/template-preview/workspace/build/html/index.html.

pnpm run preview:fresh recompiles the maintainer runtime and recreates the preview workspace from scratch. It installs the generated workspace's own dependencies, so use it after changing src/, dependency declarations, or the initializer contract. Use pnpm run preview:build for normal template edits under templates/default-workspace/.

Releases

Release Please can be run manually to generate candidate release pull requests and CHANGELOG.md updates.

Publishing to npm happens from published GitHub releases. The publish workflow runs pnpm run check before pnpm publish and uses the repository NPM_TOKEN secret.

Version coordinates and release automation state are defined in Versioning Policy.

License

Apache-2.0. See LICENSE.