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

revitedocs

v0.0.8

Published

A modern documentation generator powered by React and Vite with SSG support

Readme

ReviteDocs by DevObsessed

A modern documentation generator powered by React, Vite, and MDX with static site generation (SSG) support.

Features

  • ⚡️ Vite-powered - Lightning fast HMR and builds
  • 📝 MDX Support - Write docs in Markdown with React components
  • 🔍 Full-text Search - Powered by Pagefind
  • 🎨 Theming - Customizable with Tailwind CSS
  • 📊 Mermaid Diagrams - Built-in diagram support
  • 🌐 i18n Ready - Multi-language documentation
  • 📦 Versioning - Support for multiple doc versions
  • 🤖 LLM-friendly - Auto-generates llms.txt for AI crawlers
  • 🗺️ SEO Ready - Auto-generates sitemaps

Quick Start

# Create a new docs project
npx revitedocs init

# Start development server
npx revitedocs dev

# Build for production
npx revitedocs build

# Preview production build
npx revitedocs preview

Project Structure

docs/
├── .revitedocs/
│   ├── config.ts       # Configuration file
│   └── dist/           # Build output (after build)
├── getting-started/
│   └── installation.md
├── guide/
│   └── introduction.md
└── index.md            # Homepage

Configuration

Create .revitedocs/config.ts in your docs folder:

import { defineConfig } from 'revitedocs'

export default defineConfig({
  title: 'My Docs',
  description: 'Documentation for my project',
  
  theme: {
    logo: '/logo.svg',
    nav: [
      { text: 'Guide', link: '/guide/' },
      { text: 'API', link: '/api/' },
    ],
    sidebar: {
      '/guide/': [
        {
          text: 'Getting Started',
          items: [
            { text: 'Installation', link: '/guide/installation' },
            { text: 'Quick Start', link: '/guide/quick-start' },
          ],
        },
      ],
    },
    socialLinks: [
      { icon: 'github', link: 'https://github.com/your/repo' },
    ],
  },
  
  // Optional: Enable versioning
  versions: ['v2', 'v1'],
  defaultVersion: 'v2',
  
  // Optional: Enable i18n
  locales: {
    en: { label: 'English', lang: 'en-US' },
    es: { label: 'Español', lang: 'es-ES' },
  },
  defaultLocale: 'en',
  
  // Optional: LLM configuration
  llms: {
    enabled: true,
    title: 'My Project Documentation',
    description: 'Complete documentation for My Project',
  },
})

CLI Commands

revitedocs [root] / revitedocs dev [root]

Start the development server.

| Option | Description | Default | |--------|-------------|---------| | --port <port> | Port number | 3000 | | --open | Open browser on startup | false | | --host | Expose to network | false |

revitedocs build [root]

Build for production with SSG.

| Option | Description | Default | |--------|-------------|---------| | --outDir <dir> | Output directory | .revitedocs/dist | | --base <path> | Public base path | / | | --skip-ssg | Skip SSG pre-rendering | false | | --skip-search | Skip search index | false | | --skip-llms | Skip llms.txt generation | false | | --skip-sitemap | Skip sitemap.xml | false | | --site-url <url> | Base URL for sitemap | - |

revitedocs preview [root]

Preview the production build locally.

| Option | Description | Default | |--------|-------------|---------| | --port <port> | Port number | 4173 | | --outDir <dir> | Output directory to preview | .revitedocs/dist |

revitedocs init

Initialize a new revitedocs project with interactive prompts.

MDX Components

Built-in components available in your MDX files:

Callout

<Callout type="info" title="Note">
  This is an informational callout.
</Callout>

<Callout type="warning">
  This is a warning without a title.
</Callout>

Types: info, warning, error, tip

Tabs

<TabGroup>
  <Tabs label="npm">
    ```bash
    npm install revitedocs
    ```
  </Tabs>
  <Tabs label="pnpm">
    ```bash
    pnpm add revitedocs
    ```
  </Tabs>
</TabGroup>

Steps

<Steps>
  <Step title="Install">
    Run `npm install revitedocs`
  </Step>
  <Step title="Configure">
    Create your config file
  </Step>
  <Step title="Build">
    Run `npm run build`
  </Step>
</Steps>

FileTree

<FileTree>
  - src/
    - components/
      - Button.tsx
      - Card.tsx
    - index.ts
  - package.json
</FileTree>

Mermaid Diagrams

```mermaid
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Action 1]
    B -->|No| D[Action 2]
```

Badge

<Badge>Default</Badge>
<Badge variant="success">Success</Badge>
<VersionBadge version="2.0.0" />
<StatusBadge status="stable" />

Code Blocks

Syntax highlighting powered by Shiki with support for:

  • Line highlighting: {1,3-5}
  • Line numbers
  • Title/filename display
  • Copy button

Frontmatter

---
title: Page Title
description: Page description for SEO
---

Programmatic API

import { loadConfig, resolveConfig, defineConfig } from 'revitedocs'

// Load config from .revitedocs/config.ts
const config = await loadConfig('./docs')

// Resolve user config with defaults
const resolved = resolveConfig('./docs', { title: 'My Docs' })

Requirements

  • Node.js >= 18.0.0

License

MIT — Brought to you by DevObsessed