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

dmaker

v0.1.0

Published

CLI for managing Fumadocs documentation projects with NestJS OpenAPI integration

Readme

dmaker

A powerful CLI tool for managing Fumadocs documentation projects with NestJS OpenAPI integration.

Features

  • 🚀 Quick Setup: Initialize documentation projects with a single command
  • 📝 OpenAPI Integration: Generate OpenAPI specs from NestJS applications
  • 🔄 Hot Reload: Development server with automatic file watching
  • 📦 Static Export: Build optimized static documentation sites
  • 🎨 Fumadocs Powered: Beautiful documentation UI out of the box

Installation

npm install -g dmaker
# or
yarn global add dmaker
# or
pnpm add -g dmaker

Usage

Initialize a new documentation project

dmaker init

This will create a new documentation project with:

  • Basic content structure
  • Configuration file
  • Example MDX files

Generate OpenAPI specification from NestJS

dmaker openapi

Generate OpenAPI JSON from your NestJS application with enhanced response schemas.

Requirements:

  • Configure nestjs section in dmaker.config.json
  • NestJS application with @nestjs/swagger setup

Generate documentation

dmaker generate

Build the documentation site from your content and OpenAPI spec.

Development mode with hot reload

dmaker dev

Start a development server with automatic file watching and hot reload.

Configuration

Create a dmaker.config.json file in your project root:

{
  "name": "my-docs",
  "title": "My Documentation",
  "description": "API Documentation",
  "openapiFile": "./openapi.json",
  "contentDir": "./content",
  "outDir": "./out",
  "nestjs": {
    "appDir": "./src",
    "rootDir": "./",
    "envFile": ".env",
    "tsconfigPath": "tsconfig.json",
    "apiPrefix": "api",
    "apiPrefixExcludeRoutes": ["/health", "/metrics"],
    "versioning": {
      "enabled": true,
      "type": "URI",
      "prefix": "v"
    },
    "dtoFileNameSuffix": [".dto.ts", ".presenter.ts"],
    "controllerFileNameSuffix": ".controller.ts"
  }
}

Commands

dmaker init

Initialize a new documentation project.

Options:

  • -n, --name <name> - Project name
  • -d, --dir <directory> - Target directory (default: ".")

dmaker openapi

Generate OpenAPI specification from NestJS application.

Options:

  • -c, --config <path> - Path to config file (default: "dmaker.config.json")
  • --keep-scripts - Keep temporary scripts for debugging

dmaker generate

Generate documentation from your content.

Options:

  • -c, --config <path> - Path to config file (default: "dmaker.config.json")
  • --clean - Remove temp directory after build

dmaker dev

Start development server with hot reload.

Options:

  • -c, --config <path> - Path to config file (default: "dmaker.config.json")
  • -p, --port <port> - Port to run the dev server on (default: "3000")

NestJS Integration

dmaker provides seamless integration with NestJS applications:

  1. Automatic OpenAPI Generation: Extracts metadata from your NestJS controllers
  2. Enhanced Response Schemas: Adds success response schemas from TypeScript return types
  3. Versioning Support: Handles API versioning (URI, Header, etc.)
  4. Global Prefix Handling: Respects your API prefix configuration
  5. Route Exclusions: Skip routes like health checks from global prefix

Example Workflow

# 1. Initialize project
dmaker init -n my-api-docs

# 2. Configure dmaker.config.json with your NestJS paths

# 3. Generate OpenAPI spec
dmaker openapi

# 4. Start development server
dmaker dev

# 5. Build for production
dmaker generate

Requirements

  • Node.js >= 18
  • For NestJS integration: @nestjs/swagger and @nestjs/cli installed in your project

License

MIT © Alexandre Retamero

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.