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

joplin-plugin-chordpro-renderer

v1.0.1

Published

A Joplin plugin that renders ChordPro song markup directly in your notes with chord diagrams, lyrics formatting, and automatic transposition capabilities.

Readme

ChordPro Renderer for Joplin

A Joplin plugin that renders ChordPro song markup directly in your notes with chord diagrams, lyrics formatting, and automatic transposition capabilities.

Features

  • ChordPro Rendering: Automatically renders ChordPro markup in code blocks tagged with chordpro
  • Chord Diagrams: Displays chord names above lyrics with proper formatting
  • Transposition Support: Detects and applies transpose directives ({transpose: +2}) and capo settings, including negative transpose values
  • Multi-Column Layout: Supports {columns: 2} / {col: 2} directives for multi-column song layout
  • Dark Theme Support: Automatically adapts to Joplin's dark/light themes
  • Mobile Support: Works on the mobile version of Joplin
  • Song Metadata: Extracts and displays title, artist, capo information, and credits

Usage

Basic Syntax

Create a code block in your Joplin note with the language set to chordpro:

```chordpro
{title: Song Title}
{artist: Artist Name}

[Verse 1]
C             G
These are the chords above lyrics
F              C
With proper alignment and spacing
```

Transposition

The plugin automatically detects and applies transposition directives:

{transpose: +2}
{title: My Song}

[C]Original chord will be rendered as [D]

Negative transposition and capo inversion are also supported:

{transpose: -3}
{capo: 2}
{title: Another Song}

[C]Chord will be transposed by -5 semitones (capo inverted)

Multi-Column Layout

Render a song in multiple columns using the {columns} or {col} directive:

{columns: 2}
{title: My Song}

[Verse 1]
Am   C         G
Line one of the song
F              C
Line two of the song

Title, credits, and metadata span all columns automatically.

Full Example

```chordpro
{title: House of the Rising Sun}
{artist: The Animals}
{capo: 1}

[Intro]
Am   C         D      F
There is a house in New Orleans
Am   C         E      E7
They call the Rising Sun
Am   C         D      F  
And it's been the ruin of many a poor boy
Am         E7        Am
And God, I know I'm one
```

Development

Prerequisites

  • Node.js and npm
  • Joplin desktop app (for testing)

Building the Plugin

# Install dependencies
npm install

# Build the plugin
npm run dist

The built plugin will be available in the publish/ directory.

Project Structure

src/
├── index.ts                    # Plugin entry point
├── chordproRenderer.ts         # Markdown-it plugin for ChordPro
├── chordproRenderer.css        # CSS styles (injected as content script)
└── chordpro/
    ├── songProcessor.ts        # ChordPro parsing and processing
    ├── styles.ts              # CSS styles for rendering
    ├── htmlInjector.ts        # HTML metadata injection
    ├── metadataBuilder.ts     # Extracts song metadata
    └── utils.ts               # Utility functions

Updating the Version

npm run updateVersion

License

MIT License - see LICENSE file for details.

Contributing

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

Support