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/confluence

v2.0.9

Published

Cross-platform Pandoc-style Markdown generator for Confluence - generates clean markdown from OpenAPI specs and copies to clipboard for direct pasting.

Readme

@confytome/confluence

Cross-platform Pandoc-style Markdown generator for Confluence with clipboard integration. Generates clean markdown from OpenAPI specifications and copies it directly to your clipboard for seamless pasting into Confluence pages.

What It Does

@confytome/confluence generates Confluence-ready markdown documentation from OpenAPI specifications and automatically copies the result to your clipboard. Simply run the command, then paste directly into any Confluence page editor.

Key Features

  • 🔄 Cross-platform - Works on Windows, macOS, and Linux
  • 📋 Clipboard Integration - Automatically copies generated content to clipboard
  • 🎯 Confluence Optimized - Produces clean markdown optimized for Confluence editors
  • 🏷️ Tag-based Organization - Groups endpoints by OpenAPI tags for logical structure
  • 📖 Parameter Examples - Displays multiple parameter examples with descriptions
  • 🔗 Hierarchical Navigation - Creates nested Quick Reference with proper anchor links
  • 🔐 Authentication First - Prioritizes authentication sections in documentation
  • 🌍 Unicode Support - Full UTF-8 support including Turkish characters
  • 🚀 Standalone - Works independently with minimal dependencies

Installation

npm install @confytome/confluence

Quick Start

Generate from OpenAPI Specification

# Generate from existing OpenAPI spec
npx @confytome/confluence --spec api-spec.json

# Generate from JSDoc comments
npx @confytome/confluence --config confytome.json

# Skip clipboard and save to file only
npx @confytome/confluence --spec api-spec.json --no-clipboard

Workflow

  1. Generate: Run the confluence generator with your OpenAPI spec
  2. Copy: Markdown is automatically copied to your clipboard
  3. Paste: Open Confluence page editor and paste (Ctrl+V / Cmd+V)
  4. Done: Content appears with proper formatting, navigation, and examples

CLI Options

| Option | Description | Default | |--------|-------------|---------| | -s, --spec <path> | OpenAPI specification file | ./api-spec.json | | -c, --config <path> | Config file for generating spec from JSDoc | | | -o, --output <dir> | Output directory | ./confytome | | --no-clipboard | Skip copying to clipboard | | | --no-brand | Exclude confytome branding | | | --no-url-encode | Disable URL encoding of anchors | |

Generated Documentation Structure

The generator creates well-organized documentation with:

  • Title and Version - API name and version from OpenAPI spec
  • Quick Reference - Hierarchical navigation with nested endpoints
  • Tag-based Sections - Endpoints grouped by OpenAPI tags
  • Parameter Examples - Multiple examples with summaries and descriptions
  • Response Information - Status codes and descriptions
  • Code Samples - curl examples for each endpoint

Architecture

This package follows the Confytome dependency pattern for optimal code reuse:

@confytome/confluence → @confytome/markdown → @confytome/core
  • @confytome/confluence handles clipboard integration and Confluence workflow
  • @confytome/markdown generates the markdown content with templates
  • @confytome/core processes OpenAPI specifications and extracts documentation data

Programmatic Usage

import { StandaloneConfluenceGenerator } from '@confytome/confluence';

const generator = new StandaloneConfluenceGenerator('./output', {
  specPath: './api-spec.json',
  excludeBrand: false,
  urlEncodeAnchors: true
});

const result = await generator.generate({
  copyToClipboard: true
});

if (result.success) {
  console.log('Documentation generated and copied to clipboard!');
  console.log('Output file:', result.outputPath);
}

Confluence Integration Tips

  • Pasting: Use Ctrl+V (Windows/Linux) or Cmd+V (macOS) to paste
  • Headers: Confluence automatically formats markdown headers
  • Code Blocks: Markdown code blocks render as Confluence code macros
  • Links: Anchor links work within the same page
  • Tables: Parameter tables render as native Confluence tables

Advanced Features

Tag-based Organization

Endpoints are automatically grouped by their OpenAPI tags:

# OpenAPI spec
paths:
  /users:
    get:
      tags: [Users]  # Creates "Users" section
  /auth/login:
    post:
      tags: [Authentication]  # Creates "Authentication" section (appears first)

Parameter Examples

Multiple examples are displayed with rich formatting:

# OpenAPI spec
parameters:
  - name: userId
    examples:
      valid_user:
        summary: "Valid user ID"
        description: "A typical user ID that exists in the system"
        value: 12345
      admin_user:
        summary: "Admin user ID"
        description: "An admin user with special permissions"
        value: 1

License

MIT

Related Packages