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

curtains

v2.0.2

Published

Build beautiful HTML presentations from Markdown with custom styling, containers, and keyboard navigation

Downloads

44

Readme

Build beautiful presentations from Markdown

Curtains converts extended Markdown files (.curtain) into self-contained HTML presentations with support for custom styling, containers, and keyboard navigation.

Quick Start

Use npx:

npx curtains presentation.curtain -o slides.html

Or install globally:

npm install -g curtains

Example

Create a file presentation.curtain:

<style>
body { font-family: sans-serif; }
.centered { text-align: center; }
</style>

===

# Welcome to My Presentation

This is the **first slide** with some content.

===

## Second Slide

- Point one
- Point two
- Point three

===

## Thank You!

Build your presentation:

npx curtains presentation.curtain -o slides.html

Open slides.html in your browser and use arrow keys to navigate!

Features

  • 📝 Extended Markdown - Full CommonMark support plus custom containers
  • 🎨 Custom Styling - Add CSS globally or per-slide
  • 📦 Self-Contained - Single HTML file output with no dependencies
  • ⌨️ Keyboard Navigation - Arrow keys, spacebar, and fullscreen support
  • 🎭 Themes - Built-in light and dark themes
  • 📱 Touch Support - Click/tap to advance slides

Usage

Basic Command

npx curtains presentation.curtain -o slides.html

Options

  • -o, --output - Output HTML file (default: input filename with .html)
  • --theme - Theme selection: light or dark (default: light)
  • -h, --help - Show help
  • -v, --version - Show version

File Format

Curtains files use .curtain extension with slides separated by ===:

<style>
/* Global styles for all slides */
</style>

===

# Slide 1
Content here

<style>
/* Styles just for this slide */
</style>

===

# Slide 2
More content

Styling

Global styles - Place <style> tags before the first === to apply styles to all slides:

<style>
body { font-family: 'Inter', sans-serif; }
h1 { color: #333; }
</style>

===
# This heading uses the global styles

Slide-scoped styles - Place <style> tags within a slide (after ===) to style only that slide:

===

# Special Slide

<style>
/* Only affects this slide */
.slide-container { background: linear-gradient(to right, #667eea, #764ba2); }
h1 { color: white; }
</style>

Containers

Use containers for advanced layouts:

===

<container class="columns">
  <container class="left">
  ### Left Column
  - Item 1
  - Item 2
  </container>

  <container class="right">
  ### Right Column
  ![image](./image.png)
  </container>
</container>

<style>
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
</style>

Images

Both Markdown and HTML syntax are supported:

![Alt text](./image.png)

<img src="./logo.svg" class="logo" alt="Logo">

Navigation

  • → / Space - Next slide
  • - Previous slide
  • F - Toggle fullscreen
  • Click/Tap - Next slide

Examples

Check out the examples directory for more complex presentations including:

  • Multi-column layouts
  • Image galleries
  • Code presentations
  • Custom themes

License

ISC © Chance Graff