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

@confytome/markdown

v2.1.5

Published

Standalone Markdown generator - creates Confluence-friendly Markdown documentation from OpenAPI specs using Mustache templates with Turkish Unicode support.

Readme

@confytome/markdown

npm version version License: MIT Node.js

Standalone Markdown documentation generator for confytome. Generates Confluence-friendly documentation from OpenAPI specifications using custom Mustache templates with Turkish Unicode support.

✨ Features

  • 📝 Confluence-friendly Markdown - Clean formatting without HTML tags
  • 🎨 Custom Mustache Templates - Professional styling with logic-less templates
  • 🔧 Automatic OpenAPI Integration - Seamless spec consumption
  • 📊 Code Samples & Examples - cURL requests and response examples
  • 🌍 Unicode Support - Full Turkish and international character support
  • Standalone Operation - Works with existing OpenAPI specs
  • 🕐 Timestamped Documentation - Generation metadata included

📦 Installation

# Global installation
npm install -g @confytome/markdown

# Or use with npx (no installation)
npx @confytome/markdown generate --help

🚀 Usage

Standalone Usage (Recommended)

# Use existing OpenAPI spec - No additional dependencies required
npx @confytome/markdown generate --spec ./confytome/api-spec.json --output ./confytome

With confytome.json Configuration

# Generate spec from JSDoc and produce docs in one step - Requires @confytome/core
npx @confytome/markdown generate --config ./confytome.json --output ./confytome

⚙️ Options

| Option | Short | Description | Default | |--------|-------|-------------|---------| | --spec | -s | Path to OpenAPI spec file | ./confytome/api-spec.json | | --output | -o | Output directory for generated files | ./confytome | | --version | -V | Show version number | | | --help | -h | Show help information | | | --config | -c | Server config JSON file (for generating spec from JSDoc) | | | --files | -f | JSDoc files to process | | | --no-brand | | Exclude confytome branding from documentation | | | --no-url-encode | | Disable URL encoding for anchor links | |

🎯 Usage Scenarios

✅ Scenario 1: Standalone with Existing Spec

Perfect when you already have an OpenAPI specification file.

npx @confytome/markdown generate --spec ./confytome/api-spec.json
  • No additional dependencies
  • Works immediately
  • Perfect for CI/CD pipelines

⚙️ Scenario 2: Generate from Code

When you want to generate the OpenAPI spec from your API code first.

npx @confytome/markdown generate --config ./confytome.json
  • ⚠️ Requires @confytome/core for spec generation
  • Full workflow from code to documentation
  • Automatic spec generation

📁 Generated Output

Creates api-docs.md in the specified output directory with:

  • API overview and server information
  • All endpoints with request/response examples
  • Data models and schemas
  • Timestamp and generation info

Generated File Structure

confytome/
├── api-docs.md        # Main markdown documentation
├── api-spec.json      # OpenAPI spec (copied from source)

Content Features

  • Quick Reference - Table of contents with anchor links
  • Server Information - Base URLs and environment details
  • Endpoint Documentation - Complete request/response details
  • Schema Definitions - Data model documentation
  • Code samples - Ready-to-use cURL examples

🔧 Dependencies

  • commander: CLI argument parsing
  • mustache: Markdown template processing engine

💡 Examples

Basic Usage

# Simple generation with existing spec
npx @confytome/markdown generate --spec ./confytome/api-spec.json

CI/CD Integration

#!/bin/bash
# Generate Markdown documentation in CI
npx @confytome/markdown generate \
   --spec ./confytome/api-spec.json \
   --output ./confytome

Multiple Environments

# Production docs
npx @confytome/markdown generate \
   --spec ./specs/prod-api.json \
   --output ./docs/prod

# Staging docs
npx @confytome/markdown generate \
   --spec ./specs/staging-api.json \
   --output ./docs/staging

🛠️ Troubleshooting

Common Issues

Templates not found

Ensure Mustache templates are in the templates/ directory. Default templates are included with the package.

"Specified OpenAPI spec file not found"

# Check file path exists
ls -la ./confytome/api-spec.json

# Use absolute path if needed
npx @confytome/markdown generate --spec $(pwd)/confytome/api-spec.json

"No OpenAPI spec found, generating from JSDoc files..."

This is normal when using --config — the spec is generated automatically from your JSDoc annotations before docs are produced.

# Option 1: Use config to generate everything in one step
npx @confytome/markdown generate --config ./confytome.json

# Option 2: Use an existing spec directly
npx @confytome/markdown generate --spec ./confytome/api-spec.json

🌟 Part of confytome Ecosystem

@confytome/markdown is part of the confytome documentation ecosystem:

📄 License

MIT License - see the LICENSE file for details.


Generate beautiful Markdown documentation from OpenAPI specifications in seconds.