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

markboost-seo

v0.1.0

Published

A Node.js library to scan Markdown files, extract metadata, and generate SEO information (titles, descriptions) for English content using local LLMs.

Downloads

3

Readme

@jeseong77/markboost-seo

Scans Markdown files to extract metadata and auto-generate SEO information (titles, descriptions) for English content using local LLMs.

Author's Site / Example: Library applied website

npm version License: MIT

What it does

@jeseong77/markboost-seo is a Node.js library that processes your Markdown content to:

  • Extract titles and file paths.
  • Generate URL-friendly slugs.
  • Optionally, use local LLMs (@xenova/transformers) to generate SEO titles and meta descriptions for English content.
  • Return structured data for easy use in Static Site Generators (SSGs) or other tools.

Installation

npm install @jeseong77/markboost-seo
# or
yarn add @jeseong77/markboost-seo

Quick Start

import { scanAndProcessNotes, ScanOptions } from '@jeseong77/markboost-seo';
import path from 'path';

async function main() {
  const options: ScanOptions = {
    contentPath: path.join(process.cwd(), 'my-markdown-vault'),
    generateSeo: true, // Enable LLM SEO for English content
    llmConfig: {
      minContentLengthForSeo: 50, // words
      // maxContentLengthForPrompt: 250, // words (default)
      // modelName: 'Xenova/LaMini-Flan-T5-783M' // Default model
    },
  };

  try {
    const result = await scanAndProcessNotes(options);
    console.log(`Processed ${result.allNotes.length} notes.`);
    result.allNotes.forEach(note => {
      if (note.seo) {
        // console.log(note.title, note.seo.description);
      }
    });
  } catch (error) {
    console.error("Error:", error);
  }
}

main();

Key Options (ScanOptions)

  • contentPath: string: Required. Path to your Markdown directory.
  • generateSeo?: boolean: Set to true to enable LLM-based SEO (default: false).
  • llmConfig?: LLMConfigOptions: Configure LLM model, content length thresholds.
  • ignorePatterns?: string[]: Glob patterns for files/folders to ignore.
  • includeFileContent?: boolean: Include full Markdown content in results (default: false).
  • forceScan?: boolean: Force re-scan, bypassing cache in production (default: false).

Output (ScanResult)

The scanAndProcessNotes function returns a ScanResult object containing:

  • allNotes: ProcessedNode[]: Array of processed file data. Each ProcessedNode includes id, title, filePath, fullPathSlug, simpleSlug, and an optional seo object ({ title?: string, description?: string }).
  • notesMapByFullPathSlug: Map<string, ProcessedNode>
  • notesMapBySimpleSlug: Map<string, Set<string>>

Note on LLM SEO

  • LLM processing is currently optimized for generating meta descriptions for English content.
  • SEO titles from LLM often default to the original title.
  • Performance on CPU can be slow for LLM tasks.

License

MIT - See LICENSE file.