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

@maccalsa/summarize-project-md

v2.0.1

Published

CLI tool to generate a Markdown summary of your project structure and source files

Downloads

17

Readme

📦 summarize-project-md

🧩 Easily generate a clean, readable Markdown summary of your project's file structure and source code — great for sharing context with teammates, code reviewers, or AI assistants.


✨ Features

  • 📁 Renders a full tree-style folder structure
  • 📄 Inlines small source files in syntax-highlighted Markdown code blocks
  • 🚫 Skips large or excluded files but lists them clearly
  • ⚙️ Configurable via CLI flags (--include, --exclude, --ext, etc.)
  • 🪄 Output ready to paste into ChatGPT, docs, or PRs
  • 🔄 Parallel file processing using worker threads
  • 🎯 Smart file size and extension filtering
  • 📝 Gitignore pattern support

🚀 Quick Start

npx @maccalsa/summarize-project-md

This will create a project-summary.md file in the current directory with a smart default setup.


⚙️ CLI Options

| Option | Description | Default | |----------------|--------------------------------------------------------------|----------------------------------------| | --include | Comma-separated list of folders to include | . (current directory) | | --exclude | Comma-separated list of folders to exclude | node_modules,.git,dist,build,.next | | --ext | Comma-separated list of file extensions to include | .ts,.tsx,.js,.jsx,.svelte,.md,.json | | --max-size | Max file size (KB) to inline the contents of a file | 32 | | --output | Output markdown file name | project-summary.md |


🧪 Example Usage

npx @maccalsa/summarize-project-md \
  --include src,app \
  --exclude node_modules,.git,dist \
  --ext .ts,.svelte,.md \
  --max-size 48 \
  --output summary.md

📄 Output Example

# Project Summary

## Folder Structure

**src**
- app/
  - layout.ts
  - page.svelte
- lib/
  - utils.ts
  - constants.ts
- routes/
  - index.svelte (skipped)

## Included Files

### src/app/page.svelte

```svelte
<script>
  export let name = "SnipVault";
</script>

<h1>Hello {name}!</h1>

...

Excluded Files (by extension)

  • src/assets/logo.png
  • src/styles/global.css

---

## 🏗 Project Structure

src/ ├── cli/ # Command-line interface ├── config/ # Configuration management ├── utils/ # Utility functions │ ├── formatter.js # Markdown formatting │ ├── fileWorker.js # Parallel file processing │ └── gitignore.js # Gitignore pattern handling └── walker/ # Directory traversal


---

## 🛠 Local Development

To develop locally:

```bash
git clone https://github.com/your-username/summarize-project-md.git
cd summarize-project-md
npm install
npm link
summarize-project --include src

To run tests:

npm test

🔐 Publishing as Public Scoped Package

If publishing under a scope like @maccalsa, make sure to run:

npm publish --access public

🧠 Why use this?

Perfect for:

  • Sharing context with AI tools (like ChatGPT)
  • Generating lightweight technical summaries
  • Documenting small or modular codebases
  • Writing clean project onboarding guides

Publishing

To publish a new version, get a token from npm and run:

export NPM_TOKEN=<your-token>
npm run publish

remember to bounce the version number in package.json

📜 License

MIT © Stuart MacCallum