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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@raven-js/glean

v0.4.48

Published

Glean documentation gold from your codebase - JSDoc parsing, validation, and beautiful doc generation

Downloads

148

Readme

🔍 Glean

Website Documentation Zero Dependencies ESM Only Node.js 22.5+

Glean documentation gold from your codebase - JSDoc parsing, validation, and beautiful doc generation.

What is Glean?

Glean extracts JSDoc comments scattered throughout your codebase, collecting and organizing documentation knowledge into beautiful, comprehensive documentation sites.

This is a RavenJS Activity - a focused CLI tool for specific documentation outcomes. Glean operates outside your application runtime, analyzing and processing your code's documentation.

Quick Start

# Validate documentation quality
npx @raven-js/glean validate

# Validate specific directory
npx @raven-js/glean validate ./src

# Generate static documentation site
npx @raven-js/glean ssg ./src ./docs

# Start live documentation server
npx @raven-js/glean server

# Enable verbose output
npx @raven-js/glean validate --verbose

Features

  • 🔍 JSDoc Parsing - Extract documentation from JavaScript files
  • Validation - Ensure JSDoc syntax and completeness
  • 📚 Static Generation - Create deployable documentation sites
  • 🚀 Live Server - Development server with hot reloading
  • 🚫 Zero Dependencies - Pure Node.js with no external packages
  • Fast - Optimized for performance and minimal overhead
  • 🦅 Zero Bloat - Surgical precision, maximum value

CLI Commands

  • validate - Analyze JSDoc completeness and quality
  • server - Start live documentation development server
  • ssg - Generate deployable static documentation site

Requirements

  • Node.js 22.5+
  • Modern JavaScript (ESM) codebase with JSDoc comments

Documentation That Tools Understand

Write JSDoc that Glean extracts into exceptional documentation. Focus on exported entities—internal helpers need minimal documentation.

Essential patterns for optimal extraction:

  • Package.json structure: Use exports field for module organization—{ ".": "./index.js", "./utils/*": "./lib/utils/*.js" } creates clean import paths
  • Module README placement: Place README.md in same directory as entry point files for module-specific documentation
  • Rich type expressions: @param {Record<string, (data: any) => boolean>} validators creates navigable documentation
  • Cross-references: Use @see {@link OtherFunction} for automatic linking between related APIs
  • Tagged template documentation: @param {TemplateStringsArray} strings + @param {...any} values for template literals
  • Precise unions: @param {('json'|'xml'|'csv')} format instead of generic strings
  • Export typedefs: Document complex types with @typedef and export them for reuse across functions
/**
 * Process user data with configurable validation pipeline
 * @param {UserData} userData - Raw user input data
 * @param {ValidationConfig} [config] - Processing configuration
 * @returns {Promise<ProcessedUser>} Validated and transformed user data
 * @throws {ValidationError} When required fields are missing
 * @see {@link validateUserData} for validation-only processing
 * @see {@link UserData} for input data structure
 */
export async function processUser(userData, config = {}) {
  // Implementation
}

Glean extracts precise type information, builds cross-reference navigation, and generates import statements from well-structured JSDoc.

The Raven's Glean

Ravens glean fields after harvest, gathering valuable scattered resources others missed. Glean does the same with your documentation - collecting JSDoc treasures scattered across your codebase into organized, beautiful documentation.

🦅 Support RavenJS Development

If you find RavenJS helpful, consider supporting its development:

GitHub Sponsors

Your sponsorship helps keep RavenJS zero-dependency, modern, and developer-friendly.


Built with ❤️ by Anonyfox