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

folder-site

v1.0.2

Published

One-command local website generator for documentation and knowledge bases

Downloads

11

Readme

Folder-Site

One-command local website generator for documentation and knowledge bases

Version License Node

✨ Features

Folder-Site CLI is a powerful command-line tool that transforms any directory into a browsable website, providing a VS Code-like experience for local documentation, knowledge bases, and Workhub integration.

Core Features

  • 🚀 One-command Launch - Start a local server with a single command
  • 📁 File Tree Navigation - Expandable/collapsible directory tree
  • 📝 Markdown Rendering - Full GFM support with syntax highlighting
  • 🔍 Fast Search - Cmd+P fuzzy file search (< 100ms)
  • 🔄 Live Preview - Auto-refresh on file changes
  • 🌓 Dark/Light Theme - Theme switching with persistence
  • 🔌 Plugin System - Extensible renderer architecture

Advanced Features

  • 📊 Chart Rendering - Mermaid, Graphviz, Vega support
  • 🎨 Code Highlighting - 100+ languages (Shiki)
  • 📄 Export - Client-side PDF/HTML export
  • 🏢 Workhub Integration - docs/ structure support
  • 👀 File Watching - Efficient monitoring via chokidar
  • Render Caching - LRU cache for performance
  • ⌨️ Keyboard Shortcuts - Full keyboard navigation

🚀 Quick Start

Prerequisites

  • Node.js >= 18.0.0
  • Bun >= 1.0.0 (recommended)

Installation

# Using npm
npm install -g folder-site

# Using yarn
yarn global add folder-site

# Using pnpm
pnpm add -g folder-site

# Using bun
bun install -g folder-site

Basic Usage

# Start in current directory
folder-site

# Start in specified directory
folder-site /path/to/docs

# Specify port
folder-site --port 8080

# Show version
folder-site --version

# Show help
folder-site --help

Once the server starts, open http://localhost:3000 in your browser.

📖 Documentation

Design documents are available in the docs/ directory.

🛠️ Tech Stack

Backend

| Technology | Purpose | |------------|---------| | Bun | Fast JavaScript runtime | | Hono | Lightweight web framework | | unified | Markdown processing pipeline | | remark | Markdown parser | | rehype | HTML converter | | chokidar | File watcher | | lru-cache | Cache implementation | | fuse.js | Fuzzy search |

Frontend

| Technology | Purpose | |------------|---------| | React | UI library | | Vite | Build tool | | Tailwind CSS | Styling framework | | Radix UI | Accessible components | | Shiki | Syntax highlighting | | jsPDF | PDF generation |

🏗️ Project Structure

folder-site/
├── src/
│   ├── cli/              # CLI entry point
│   ├── server/           # Hono server
│   │   ├── routes/       # API routes
│   │   ├── middleware/   # Middleware
│   │   ├── services/     # Business logic
│   │   └── lib/          # Core libraries
│   ├── client/           # React frontend
│   │   ├── components/   # React components
│   │   ├── pages/        # Page components
│   │   ├── hooks/        # Custom hooks
│   │   └── layouts/      # Layouts
│   ├── parsers/          # File parsers
│   ├── types/            # TypeScript types
│   └── utils/            # Utility functions
├── plugins/              # Plugin directory
│   ├── mermaid-renderer/ # Mermaid plugin
│   └── graphviz-renderer/# Graphviz plugin
├── public/               # Static assets
├── docs/                 # Documentation
├── tests/                # Test files
└── package.json

⌨️ Keyboard Shortcuts

| Shortcut | Action | |----------|--------| | Cmd+P / Ctrl+P | Quick file search | | Esc | Close modal | | / | Navigate results | | Enter | Open selected file | | Cmd+K / Ctrl+K | Toggle command palette | | Cmd+D / Ctrl+D | Toggle dark/light theme |

📁 Supported File Types

| Extension | Type | Renderer | |-----------|------|----------| | .md | Markdown | Built-in | | .mmd | Mermaid | Plugin | | .txt | Plain text | Built-in | | .json | JSON | Built-in | | .yml / .yaml | YAML | Built-in |

🔧 Configuration

Config File (.folder-siterc.json)

{
  "port": 3000,
  "theme": "dark",
  "sidebar": {
    "width": 280,
    "collapsed": false
  },
  "search": {
    "debounce": 50,
    "maxResults": 10
  },
  "cache": {
    "enabled": true,
    "ttl": 3600000
  }
}

Environment Variables

# Server port
PORT=3000

# Theme (light/dark)
THEME=dark

# Cache TTL (milliseconds)
CACHE_TTL=3600000

🤝 Contributing

Contributions are welcome! Please:

  1. Read the design documents
  2. Check existing issues
  3. Create a feature branch
  4. Submit a pull request

📄 License

MIT License - See LICENSE file

🙏 Acknowledgments

  • markdown-viewer-extension - Markdown rendering inspiration
  • Radix UI - Accessible components
  • shadcn/ui - Beautiful component examples
  • @react-symbols/icons - File/folder icons
  • RemixIcon - General icons
  • Vercel - Design inspiration

📞 Contact


Ready to get started?Quick Start Guide 🚀