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

@daz4126/swifty

v4.2.0

Published

Super Speedy Static Site Generator

Readme

Swifty swiftyy-logo-pink-s png

Super Speedy Static Site Generator

Swifty uses convention over configuration to make it super simple to build blazingly fast static sites.

Features

  • Markdown pages with YAML front matter
  • Automatic image optimization to responsive WebP images with srcset
  • HTML, CSS, and JS minification during production builds
  • Layouts and partials for reusable templates
  • Auto-injected CSS/JS from your css/ and js/ folders
  • Code syntax highlighting via highlight.js
  • Tags and navigation generated automatically
  • RSS feed generation for blogs and content folders
  • Draft mode for work-in-progress pages (visible in dev, hidden in production)
  • Scheduled publishing via future dates in front matter
  • Contact forms via third-party services (Formspree, Netlify Forms, etc.)
  • Pagination for folders with many pages
  • Data files - Load JSON/YAML data and use in templates
  • Open Graph tags - Auto-generated social sharing meta tags
  • 404 page convention - pages/404.md builds to dist/404.html
  • Word count & reading time - Auto-calculated for blog posts
  • Previous/next navigation - Auto-generated links between sibling pages
  • Eta templating - Full JavaScript in templates with EJS syntax
  • Idiomorph navigation with optional intent prefetching for SPA-like transitions
  • Custom permalinks and base paths for flexible deployment URLs
  • Public asset passthrough for files that should be copied unchanged

Requires Node.js 22 or newer. See Migrating to Swifty 4 when upgrading an existing site.

Quickstart

npm install -g @daz4126/swifty
swifty my-site
cd my-site
npx swifty start

Then visit http://localhost:3000

Project Structure

your-site/
├── pages/          # Markdown content (folder structure = URLs)
├── layouts/        # HTML layout templates
├── partials/       # Reusable content snippets
├── data/           # JSON/YAML data files
├── css/            # Stylesheets (auto-injected)
├── js/             # JavaScript (auto-injected)
├── images/         # Images (auto-optimized to responsive WebP)
├── public/         # Files copied unchanged to the output root
├── template.html   # Base HTML template
└── config.yaml     # Site configuration

Commands

npx swifty my-site          # Create new site in my-site/ folder
npx swifty build            # Build static site to dist/ (for production)
npx swifty start            # Build, watch, and serve at localhost:3000 (for development)
npx swifty build --out dir  # Build to custom output directory
npx swifty deploy "message" # Build, commit the output folder, and push

Development vs Production

  • swifty start - For development. Includes live reload (auto-refreshes browser on file changes) and file watching with incremental builds for CSS/JS/images.
  • swifty build - For production deployment. Produces clean output without any development scripts.
  • swifty deploy "message" - Builds the site, commits only the generated output folder, and pushes it to git.

Documentation

See the full documentation for details on configuration, layouts, partials, and more.