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/litro

v0.3.2

Published

Fullstack web framework for Lit components — file-based routing, streaming SSR, SSG, and Nitro deployment adapters. A standards-based Next.js / Nuxt.js alternative.

Readme

litro

A fullstack web framework for Lit components, powered by Nitro.

  • File-based routingpages/index.ts/, pages/blog/[slug].ts/blog/:slug
  • Streaming SSR — Declarative Shadow DOM via @lit-labs/ssr, streamed from the server
  • Client hydrationLitroRouter (URLPattern-based) takes over after SSR with no flicker
  • Server data fetchingdefinePageData() runs on the server, serialized to the client
  • Content layerlitro:content virtual module for Markdown blogs with 11ty-compatible frontmatter
  • API routes — plain server/api/ files using H3 handlers
  • One port in dev — Vite and Nitro share a single HTTP port
  • Any deployment — Node.js, Cloudflare Workers, Vercel Edge, static via Nitro adapters

Quick start

npm create @beatzball/litro@latest my-app
cd my-app
npm install
npm run dev

Hello World

// pages/index.ts
import { LitroPage, definePageData, html } from '@beatzball/litro/runtime';
import { customElement } from 'lit/decorators.js';

const pageData = definePageData(async () => ({
  message: 'Hello from the server!',
}));

@customElement('page-index')
export default class IndexPage extends LitroPage {
  override render() {
    const data = this.serverData as typeof pageData | null;
    return html`<h1>${data?.message}</h1>`;
  }
}

How It Compares

| | Litro | Next.js | Nuxt.js | |---------------------|-------------|-------------|-------------| | Component model | Lit | React | Vue | | File-based routing | ✓ | ✓ | ✓ | | SSR / SSG | ✓ | ✓ | ✓ | | Server engine | Nitro | custom | Nitro | | Hello World JS | ~8kB | ~90kB | ~60kB | | Virtual DOM | — | ✓ | ✓ | | W3C standard comps | ✓ | — | — |

Note on Hello World JS figures: approximate figures based on widely-cited community benchmarks and published framework documentation — not independently measured by this project. Lit's ~5 kB runtime size is documented on lit.dev. Next.js and Nuxt.js figures reflect commonly reported baseline JS payloads for a minimal page and vary by framework version and configuration.


SEO

Litro renders all pages server-side via Declarative Shadow DOM before sending HTML to the browser. Search engines receive fully-rendered content — the same approach used by Next.js and Nuxt.js. Client-side-only web components have SEO limitations; Litro's SSR eliminates them by default.

How this works →


Documentation

Full documentation at litro.dev.


Packages

| Package | Description | |---|---| | @beatzball/litro | This package — core framework | | @beatzball/litro-router | Standalone URLPattern router (zero dependencies) | | @beatzball/create-litro | npm create @beatzball/litro scaffolding CLI |


License

Apache License 2.0 — Copyright 2026 beatzball.