
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@raven-js/glean
Advanced tools
Glean documentation gold from your codebase - JSDoc parsing, validation, and beautiful doc generation
Glean documentation gold from your codebase - JSDoc parsing, validation, and beautiful doc generation.
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.
# 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
validate
- Analyze JSDoc completeness and qualityserver
- Start live documentation development serverssg
- Generate deployable static documentation siteWrite JSDoc that Glean extracts into exceptional documentation. Focus on exported entities—internal helpers need minimal documentation.
Essential patterns for optimal extraction:
exports
field for module organization—{ ".": "./index.js", "./utils/*": "./lib/utils/*.js" }
creates clean import pathsREADME.md
in same directory as entry point files for module-specific documentation@param {Record<string, (data: any) => boolean>} validators
creates navigable documentation@see {@link OtherFunction}
for automatic linking between related APIs@param {TemplateStringsArray} strings
+ @param {...any} values
for template literals@param {('json'|'xml'|'csv')} format
instead of generic strings@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.
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.
If you find RavenJS helpful, consider supporting its development:
Your sponsorship helps keep RavenJS zero-dependency, modern, and developer-friendly.
Built with ❤️ by Anonyfox
FAQs
Glean documentation gold from your codebase - JSDoc parsing, validation, and beautiful doc generation
The npm package @raven-js/glean receives a total of 665 weekly downloads. As such, @raven-js/glean popularity was classified as not popular.
We found that @raven-js/glean demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.