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

sitemap-content-generator

v1.0.8

Published

Generate folder structure and filtered content from your project files

Downloads

48

Readme

sitemap-content-generator

Description

sitemap-content-generator is a CLI tool that generates a markdown representation of your project's folder structure and creates a filtered JSON file containing the content from your project's main files. It intelligently excludes files and folders that are typically not part of your application's core logic, such as build outputs, library folders, framework files, and specific UI components.

Features

  • Folder Structure Mapping:
    Scans your project directory and creates a sitemap.md file that represents your project's hierarchical folder structure.

  • Content Extraction:
    Reads and extracts content from files, filtering out non-essential files to focus on the project's core logic.

  • Customizable Exclusions:
    Excludes common build folders (e.g., node_modules, build, dist, etc.), configuration files, and specific folders like components/ui by default. These settings can be customized by modifying the corresponding arrays and sets in the cli.js file.

Installation

You can install the package globally via npm:

npm install -g sitemap-content-generator

Alternatively, you can use it with npx without a global installation:

npx sitemap-content-generator

Usage

  1. Navigate to Your Project Root:

    Open your terminal and change your directory to the root of your project:

    cd /path/to/your/project
  2. Run the Command:

    Execute the CLI tool with the following command:

    sitemapgen

    When executed, the tool will:

    • Create a metadata folder (if it doesn't already exist) in your project root.
    • Generate a sitemap.md file that outlines your project's folder structure.
    • Generate a filteredContent.json file containing the filtered content extracted from your project's main files.

Configuration & Customization

By default, the tool excludes the following:

  • Folders:
    .git, .next, .contentlayer, .github, .husky, .vscode, .yarn, node_modules, api/studio/.sanity, api/studio/dist, build, dist, out, public, vendor, bower_components

  • Specific Relative Folder:
    components/ui (and all its contents)

  • Files:
    package-lock.json, yarn.lock, package.json, README.md, .gitignore, .env, and other configuration or dependency files

  • File Extensions:
    .jpeg, .jpg, .png, .svg, .gif, .ico, .md

  • Paths (Prefixes):
    Any path starting with .sanity/, studio/.sanity/runtime/, z-utils/, axelrod-nostr/project/out/, etc.

If you need to customize these exclusion settings, simply edit the respective arrays and sets in the cli.js file of the package.

License

This project is licensed under the MIT License.

Author

zvedov