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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mint-tsdocs

v0.0.4

Published

Generate Mintlify-compatible MDX code reference from TypeScript.

Readme

mint-tsdocs

Generate beautiful, Mintlify-native API documentation from your TypeScript code.

This tool automatically generates Mintlify-compatible MDX documentation for your TypeScript libraries and CLIs. It uses API Extractor and TSDoc to analyze your code and creates rich, interactive documentation with Mintlify components.

Who Is This For?

mint-tsdocs bridges the gap between TypeScript development and Mintlify's documentation platform:

  • Library Authors - Generate comprehensive API reference docs for your npm packages
  • CLI Tool Developers - Document command-line interfaces with the same quality as API SDKs
  • Open Source Maintainers - Automate documentation updates for TypeScript projects
  • Documentation Teams - Maintain up-to-date API references without manual effort

While Mintlify excels at API SDK documentation, mint-tsdocs makes it just as easy to document TypeScript libraries and CLIs.

Features

  • Mintlify-Native Components - Uses <ParamField>, <ResponseField>, and <Expandable> for rich, interactive documentation
  • Automatic Navigation - Updates your docs.json file automatically with proper tabs and groups
  • Complex Type Support - Full support for nested objects, unions, intersections, and generics
  • Smart Auto-Detection - Finds your TypeScript entry point, Mintlify config, and output folder automatically
  • Zero Configuration - Works out of the box with sensible defaults
  • Template Customization - Fully customizable Liquid templates for complete control over output

Quick Start

# Initialize and configure (auto-detects your TypeScript setup)
npx mint-tsdocs

# Build your TypeScript project to generate .d.ts files
bun run build  # or your build command

# Generate documentation
npx mint-tsdocs generate

That's it! Your API documentation is ready in the docs/reference folder.

Installation

You can use mint-tsdocs without installing it:

npx mint-tsdocs

Or install it locally/globally:

# Local (recommended)
bun add -D mint-tsdocs
# or: npm install -D mint-tsdocs

# Global
bun add -g mint-tsdocs
# or: npm install -g mint-tsdocs

The package provides two command aliases:

  • mint-tsdocs (short, recommended)
  • mintlify-tsdocs (full name)

Configuration

mint-tsdocs uses a single configuration file at the project root: mint-tsdocs.config.json

Auto-Detection

The tool auto-detects:

  • TypeScript entry point (from package.json types/typings field or common paths)
  • Mintlify docs.json location
  • Output folder

Example Configuration

{
  "$schema": "./node_modules/mint-tsdocs/lib/schemas/config.schema.json",
  "entryPoint": "./lib/index.d.ts",
  "outputFolder": "./docs/reference",
  "docsJson": "./docs/docs.json",
  "tabName": "API Reference",
  "groupName": "API"
}

See the JSON Schema for all available options.

CLI Commands

mint-tsdocs or mint-tsdocs init

Initialize a project with mint-tsdocs configuration. Auto-detects your TypeScript entry point, Mintlify docs folder, and creates mint-tsdocs.config.json.

Options:

  • --yes, -y - Skip prompts and use auto-detected defaults
  • --skip-mintlify - Skip Mintlify initialization (if already set up)
  • --project-dir <path> - Project directory (default: current directory)

mint-tsdocs generate

Generate documentation from TypeScript source. Automatically runs API Extractor and creates MDX files with Mintlify components.

Options:

  • --skip-extractor - Skip API Extractor step (use cached .api.json files)
  • --verbose, -v - Show detailed output
  • --debug - Show debug output
  • --quiet, -q - Suppress all output except errors

mint-tsdocs customize

Copy default Liquid templates to a directory for customization.

Options:

  • -t, --template-dir <path> - Directory where templates should be created
  • --force - Overwrite existing templates

mint-tsdocs show

Display current configuration or cache statistics.

Options:

  • config - Show current configuration (default)
  • stats - Show cache statistics and performance metrics

Documentation

Requirements

  • Node.js 18 or higher
  • TypeScript project with declaration: true in tsconfig.json

Current Status

mint-tsdocs is currently optimized for local development workflows. It runs on developer machines to generate documentation from locally-built TypeScript projects.

Coming Soon:

  • CI/CD integration for automated documentation on every commit
  • Enhanced security features for multi-tenant environments
  • Potential SaaS offering for repository-triggered documentation updates

Built On

This project uses Microsoft's excellent API Extractor and TSDoc for TypeScript analysis, enhanced with Mintlify-specific features and components.

Contributing

Contributions are welcome! Please check out the Contributing Guide and Architecture Documentation.

License

MIT - See LICENSE file for details