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

markfluence

v0.2.0

Published

The best Markdown to Confluence converter. Modern, fast, correct.

Readme

markfluence

The best Markdown to Confluence converter. Direct AST-to-XML conversion with no HTML intermediate step. Modern, fast, correct.

Features

  • Direct conversion — Markdown AST → Confluence Storage XML (no HTML step)
  • Full GFM support — Tables, task lists, strikethrough, autolinks
  • Mermaid diagrams — Rendered to PNG with ELK layout engine
  • Admonitions[!NOTE], [!WARNING], [!TIP] → Confluence info panels
  • Smart sync — MD5-based change detection, only uploads when content changes
  • Local images — Automatically uploaded as attachments
  • Frontmatter — Control page ID, title, and labels via YAML

Quick Start

  1. Set up your Confluence credentials:
export CONFLUENCE_DOMAIN=mycompany.atlassian.net
export CONFLUENCE_SPACE=DOCS
export [email protected]
export CONFLUENCE_API_TOKEN=your-api-token
  1. Sync your markdown files:
# Sync a single file
npx markfluence README.md

# Sync a directory
npx markfluence docs/

# Dry run (see what would be synced)
npx markfluence --dry-run docs/

Requires Node.js 20+.

Environment Variables

| Variable | Description | |----------|-------------| | CONFLUENCE_DOMAIN | Your Confluence domain (e.g., mycompany.atlassian.net) | | CONFLUENCE_SPACE | Space key (e.g., DOCS) | | CONFLUENCE_EMAIL | Your Atlassian account email | | CONFLUENCE_API_TOKEN | API token |

CLI Options

Usage: npx markfluence [options] [files...]

Options:
  -d, --domain <domain>  Confluence domain
  -s, --space <key>      Confluence space key
  -p, --parent <id>      Parent page ID for new pages
  -u, --user <email>     Confluence user email
  -t, --token <token>    Confluence API token
  --dry-run              Show what would be synced without making changes
  --no-mermaid           Disable Mermaid rendering
  -v, --verbose          Verbose output
  -h, --help             Display help

Frontmatter

Control page behavior with YAML frontmatter:

---
title: My Page Title
confluence-page-id: 123456789
labels: [documentation, api]
---

# Content starts here

| Field | Description | |-------|-------------| | title | Override the page title (default: first H1 or filename) | | confluence-page-id | Update an existing page by ID | | labels | Array of Confluence labels to apply |

Supported Markdown

Basic Formatting

  • Bold, italic, ~~strikethrough~~
  • inline code
  • Links and anchor links
  • Images (remote URLs and local files)

Code Blocks

```typescript
const greeting = 'Hello, World!'
```

Supported languages: typescript, javascript, python, java, go, rust, bash, sql, json, yaml, xml, html, css, and more.

Tables

| Name | Age | City |
|:-----|----:|:----:|
| Alice | 30 | NYC |
| Bob | 25 | LA |

Lists

- Unordered item
- Another item
  - Nested item

1. Ordered item
2. Another item

- [x] Completed task
- [ ] Pending task

Admonitions

> [!NOTE]
> This renders as a Confluence info panel.

> [!WARNING]
> This renders as a Confluence warning panel.

> [!TIP]
> This renders as a Confluence tip panel.

Mermaid Diagrams

```mermaid
flowchart TD
    A[Start] --> B{Decision}
    B -->|Yes| C[OK]
    B -->|No| D[Cancel]
```

Mermaid diagrams are rendered to PNG with ELK layout engine for better handling of complex flowcharts and subgraphs.

License

MIT © Vladimir Urushev