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

@beatzball/create-litro

v0.4.1

Published

Scaffold a new Litro app — fullstack SSR, Markdown blog, or docs site. Built on Lit web components and Nitro server.

Readme

create-litro

Scaffold a new Litro app.

Usage

npm create @beatzball/litro@latest my-app
# or
pnpm create @beatzball/litro my-app
# or
yarn create @beatzball/litro my-app

Follow the interactive prompts to choose a recipe and rendering mode, or pass flags directly to skip them:

# Fullstack SSR app (default)
npm create @beatzball/litro@latest my-app --recipe fullstack --mode ssr

# 11ty-compatible blog (SSG or SSR)
npm create @beatzball/litro@latest my-app --recipe 11ty-blog --mode ssg

# List all available recipes
npm create @beatzball/litro@latest -- --list-recipes

Recipes

fullstack (default)

A fullstack Lit + Nitro app with file-based routing and server-side rendering.

Generated app includes:

  • pages/index.ts — home page with definePageData() server fetching
  • pages/blog/index.ts — blog listing page
  • pages/blog/[slug].ts — dynamic post page with generateRoutes() for SSG
  • server/api/hello.ts — JSON API endpoint
  • Config files: nitro.config.ts, vite.config.ts, tsconfig.json

11ty-blog

A Markdown blog using the litro:content content layer, compatible with the 11ty data cascade format (frontmatter, .11tydata.json directory data, _data/metadata.js global data). Supports both SSR (dev server) and SSG (prerender to static HTML).

Generated app includes:

  • content/blog/ — Markdown posts with YAML frontmatter
  • content/_data/metadata.js — global site metadata
  • pages/index.ts — home page showing recent posts
  • pages/blog/index.ts — post listing with all posts
  • pages/blog/[slug].ts — individual post page with generateRoutes()
  • pages/tags/[tag].ts — tag-filtered post listing
  • server/api/posts.ts — JSON API for posts (optional ?tag= filter)
  • litro.recipe.json — written to the project root so the content plugin knows where to find posts

After scaffolding

cd my-app
pnpm install
pnpm dev      # start dev server on http://localhost:3030

For static site generation:

LITRO_MODE=static pnpm build   # prerenders all routes to HTML

The litro:content virtual module

The 11ty-blog recipe uses litro:content, a virtual module provided by the Litro framework:

import { getPosts, getPost, getTags, getGlobalData } from 'litro:content';

// In a page file:
const posts = await getPosts({ tag: 'tutorial', limit: 5 });
const post  = await getPost('hello-world');
const tags  = await getTags();
const meta  = await getGlobalData();  // reads _data/metadata.js

The content layer reads Markdown files from the directory specified in litro.recipe.json (contentDir). Posts are sorted by date descending. Draft posts (frontmatter draft: true) are excluded by default.

Add /// <reference types="litro/content/env" /> (or the equivalent tsconfig.json entry) for TypeScript type support.

License

Apache License 2.0 — Copyright 2026 beatzball.