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

@hrefcl/apidoc

v5.0.9

Published

APIDoc v5 - RESTful web API Documentation Generator with Vue 3 and modern features

Readme

APIDoc 5.0

RESTful web API & MQTT Protocol Documentation Generator - Generador moderno de documentación para APIs REST y protocolos MQTT con soporte completo para TypeScript, autenticación dual y contenido personalizado.

License NPM Version Node.js Version

🚀 ¿Qué es APIDoc?

APIDoc genera documentación completa para APIs RESTful y protocolos MQTT desde comentarios en el código fuente. Compatible con C#, Go, Dart, Java, JavaScript, PHP, TypeScript, Python, Ruby y más.

Ejemplo Rápido:

/**
 * @api {get} /user/:id Request User information
 * @apiName GetUser
 * @apiGroup User
 *
 * @apiParam {Number} id Users unique ID.
 *
 * @apiSuccess {String} firstname Firstname of the User.
 * @apiSuccess {String} lastname  Lastname of the User.
 */

🎯 Inicio Rápido

# Instalación global
npm install -g @hrefcl/apidoc

# Generar documentación
apidoc -i src/ -o docs/

# Ver documentación
open docs/index.html

📚 Documentación Completa

🛠️ Configuración y Personalización

📋 Funcionalidad Core

🌐 Protocolos y Formatos Modernos

🔐 Seguridad y Autenticación

🛠️ Desarrollo y Deploy

🌟 Características Principales v5.0.0

📝 Contenido Markdown Personalizado

Agrega contenido markdown personalizado a cualquier grupo de API con formato enriquecido:

{
  "settings": {
    "Users": {
      "icon": "fa-user",
      "title": "Gestión de Usuarios",
      "filename": "users.md"
    }
  }
}

📡 Soporte Completo para MQTT

Documenta protocolos MQTT con parsers especializados:

/**
 * @apiMqtt {publish} v1/sensors/{id}/data Publish Sensor Data
 * @apiGroup IoT
 * @apiMqttQos 1
 * @apiMqttRetain false
 * @apiMqttPayload {Object} data Sensor data payload
 */

Características MQTT:

  • ✅ 16+ parsers MQTT implementados (@apiMqtt, @apiMqttPayload, @apiMqttQos, etc.)
  • ✅ Template específico para documentación MQTT
  • ✅ CSS styling para métodos publish/subscribe
  • ✅ Configuración de broker MQTT en apidoc.json para template
  • ✅ CLI options: --mqtt-only, --fail-on-mqtt-schema-error

🔐 Sistema de Autenticación Dual

Protege tu documentación con autenticación local y remota:

Modo Local (Sin servidor):

{
  "login": {
    "active": true,
    "encryptionKey": "tu-clave-base64",
    "admited": [
      {
        "email": "[email protected]",
        "password": "secure123",
        "name": "Admin User"
      }
    ]
  }
}

Modo Servidor:

{
  "login": {
    "active": true,
    "encryptionKeyFromServer": true,
    "urlAuth": "https://api.company.com/auth/login",
    "value_form": {
      "email": "email",
      "password": "password"
    },
    "response_success": 200,
    "response_error": 401
  }
}

Características de Seguridad:

  • ✅ Encriptación AES-256-GCM
  • ✅ Ofuscación de claves de encriptación
  • ✅ JWT con expiración de 24 horas
  • ✅ Lista de usuarios encriptada
  • ✅ No almacena claves en sessionStorage

🌐 OpenAPI 3.0 Nativo

Escribe especificaciones OpenAPI directamente en comentarios:

/**
 * @openapi
 * /api/users/{id}:
 *   get:
 *     summary: Get user by ID
 *     parameters:
 *       - name: id
 *         in: path
 *         required: true
 *         schema:
 *           type: integer
 */

📊 Integración con TypeScript

Genera documentación desde interfaces TypeScript:

/**
 * @api {get} /users/:id Get User
 * @apiSuccess {Object} user User data
 * @apiSchema {User} user
 * @apiSchemaFile ../types/user.ts
 */

🎨 Personalización Completa

  • 160+ temas de resaltado de sintaxis
  • Font Awesome 6.0+ para iconos
  • Logos personalizados (light/dark mode)
  • Orden personalizado de grupos
  • Markdown enriquecido en secciones

🌍 Idiomas

🔗 Enlaces y Recursos

🤝 Soporte y Contribuciones

📄 Licencia

MIT License - ver archivo LICENSE para detalles.