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

project-context-to-md-file

v1.3.3

Published

A service that converts project context to markdown file

Downloads

35

Readme

project-context-to-md-file

A service that watches your project and generates a comprehensive markdown file with project context using LLMs (Large Language Models).

Features

  • Analyzes your project files and structure
  • Generates detailed documentation with LLMs
  • Watches for file changes and automatically updates
  • Configurable via .env.context file
  • Supports multiple LLM providers:
    • Ollama (local models)
    • OpenAI (GPT models)
    • Groq (fast inference)
    • AWS Bedrock (enterprise models)

Installation

# Install globally
npm install -g project-context-to-md-file

# Or using npx without installation
npx project-context-to-md-file

Usage

# Basic usage (generates project-context.md in current directory)
project-context-to-md-file

# Specify output file
project-context-to-md-file --output docs/context.md

# Set custom update interval (in milliseconds)
project-context-to-md-file --interval 10000

# Use a specific LLM provider
project-context-to-md-file --provider openai

# Use a specific model
project-context-to-md-file --model gpt-4

Configuration

The tool uses .env.context file for configuration. If not present, a sample will be created on first run.

Configuration Options

# LLM Provider Configuration
# Choose between 'ollama', 'openai', 'groq', or 'bedrock'
PROVIDER=ollama

# Model Configuration
# For Ollama: llama3, codellama, phi3, etc.
# For OpenAI: gpt-4, gpt-4-turbo, gpt-3.5-turbo, etc.
# For Groq: llama3-8b-8192, mixtral-8x7b-32768, etc.
# For Bedrock: amazon.titan-text-express-v1, anthropic.claude-3-sonnet-20240229, etc.
MODEL=deepseek-coder

# Provider-specific configurations
# Ollama Configuration (if PROVIDER=ollama)
OLLAMA_BASE_URL=http://localhost:11434

# OpenAI Configuration (if PROVIDER=openai)
# OPENAI_API_KEY=your_openai_api_key_here

# Groq Configuration (if PROVIDER=groq)
# GROQ_API_KEY=your_groq_api_key_here

# AWS Bedrock Configuration (if PROVIDER=bedrock)
# AWS_ACCESS_KEY_ID=your_aws_access_key_id_here
# AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key_here
# AWS_REGION=us-east-1

# LLM Parameters
TEMPERATURE=0.7
MAX_TOKENS=4000

# Application settings
UPDATE_INTERVAL=5000
OUTPUT_FILE=project-context.md

# System prompt for context generation
SYSTEM_PROMPT=You are an AI assistant that analyzes code repositories...

How it works

This tool:

  1. Analyzes your project structure and collects code files as context
  2. Sends this context to the configured LLM with a specialized prompt
  3. Generates a comprehensive markdown document describing your project
  4. Watches for file changes
  5. Updates the markdown file at a specified interval or when changes are detected

Prerequisites

  • Node.js 14.0.0 or higher
  • If using Ollama: Ollama installed and running locally
  • If using OpenAI/Groq/Bedrock: Valid API keys

License

MIT