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

@justdodo/supermark

v0.1.8

Published

AI-powered file digestion system — auto-generates markdown documentation for every file

Readme

SuperMark

npm version

A file digestion system that automatically generates AI-friendly markdown documentation for every file placed into a watched directory.

Drop a file in → get a structured markdown summary out.

How It Works

User drops file into SuperMark folder
  → File system watcher detects new file
    → Digestion pipeline analyzes content
      → AI generates structured markdown
        → Digest saved as <filename>.md

Supported File Types

| Category | Formats | Analysis | |----------|---------|----------| | Code | .py, .js, .ts, .go, etc. | Language, imports, exports, functions, classes | | Documents | PDF, DOCX, DOC | Text content, headings, tables, structure | | Presentations | PPTX, PPT, KEY | Slides, titles, speaker notes | | Images | PNG, JPG, GIF, SVG, WEBP | Visual description (via vision model), dimensions, EXIF | | Audio | MP3, WAV, M4A, FLAC, OGG | Transcription, duration, format metadata | | Video | MP4, MOV, AVI, MKV, WEBM | Video understanding (Gemini API), transcription, scenes | | Data | CSV, JSON, YAML | Schema, sample records, statistics | | URLs | .url, .webloc files | Web page content, metadata, YouTube transcripts |

Install

npm install -g @justdodo/supermark

Prerequisites

  • Node.js >= 18
  • ffmpeg/ffprobe — needed for audio/video files (brew install ffmpeg on macOS)

API Keys Setup

SuperMark needs at least an OpenAI API key. Set them as environment variables:

# Required — used for LLM analysis and Whisper audio transcription
export OPENAI_API_KEY="sk-..."

# Optional — used for video understanding (Gemini can process video natively)
export GEMINI_API_KEY="AI..."

Get your keys:

  • OpenAI: https://platform.openai.com/api-keys
  • Gemini: https://aistudio.google.com/apikey

To persist them, add to your shell profile (~/.zshrc or ~/.bashrc):

echo 'export OPENAI_API_KEY="sk-..."' >> ~/.zshrc
echo 'export GEMINI_API_KEY="AI..."' >> ~/.zshrc
source ~/.zshrc

Quick Start

After install and API key setup, you're ready to go:

# 1. Navigate to any directory you want to digest
cd ~/my-project

# 2. Start watching (auto-creates config on first run, runs as daemon)
supermark watch
# => No config found — initialized supermark.config.json
# => SuperMark daemon started (PID: 12345)
# => Stop with: supermark stop

# 3. That's it! Drop files in — digests appear alongside them
cp ~/Downloads/report.pdf .
# => ./report.pdf.md created automatically

# Digest a single file without watching
supermark digest ./some-file.py

# Digest a URL
supermark digest https://example.com/article

# Run in foreground to see logs (useful for debugging)
supermark watch --foreground

# Stop the daemon
supermark stop

CLI Commands

| Command | Description | |---------|-------------| | supermark watch | Start watching as a background daemon (auto-inits if needed) | | supermark watch -f | Run watcher in foreground | | supermark stop | Stop the background daemon | | supermark digest <file\|url> | Digest a single file or URL | | supermark init | Manually create default config | | supermark status | Show current configuration and status |

Digest Format

Each digested file produces a companion .md file:

# <filename>

## Summary
One-paragraph description of what this file is and does.

## File Info
- **Type**: detected file type
- **Size**: file size
- **Hash**: SHA-256 hash
- **Modified**: last modified date
- **Digested**: digest timestamp

## Content Analysis
Type-specific analysis (function list for code, schema for data, etc.)

## Key Details
Notable aspects, dependencies, relationships to other files.

## AI Context
Concise description optimized for AI consumption.

Configuration

A supermark.config.json is auto-created on first supermark watch. You can also create it manually:

{
  "watchDir": ".",
  "outputDir": ".",
  "recursive": true,
  "concurrency": 3,
  "debounceMs": 1000,
  "ignore": ["*.tmp", ".DS_Store", "**/*.md"],
  "cleanupDigests": true,
  "ai": {
    "provider": "openai",
    "model": "gpt-4o",
    "whisperModel": "whisper-1"
  }
}

Options

| Setting | Description | Default | |---------|-------------|---------| | watchDir | Directory to watch for new files | . | | outputDir | Where to save digests | . | | recursive | Watch subdirectories | true | | concurrency | Max parallel digestions | 3 | | debounceMs | Wait time before processing (ms) | 1000 | | ignore | File patterns to ignore | ["*.tmp", ".DS_Store", "**/*.md"] | | cleanupDigests | Delete digest when source is removed | true | | ai.provider | AI provider | "openai" | | ai.model | LLM model for analysis | "gpt-4o" | | ai.whisperModel | Whisper model for transcription | "whisper-1" |

Tech Stack

  • Runtime: Node.js
  • File watching: chokidar
  • AI: OpenAI (LLM + Whisper), Gemini (video)
  • Document parsing: pdf-parse, mammoth (DOCX)
  • Web extraction: Readability, cheerio
  • Media probing: ffprobe (via fluent-ffmpeg)
  • Image metadata: sharp
  • CLI: Commander.js

License

MIT