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

lume-ssr

v1.0.0

Published

Infrastructure for the web. A minimal, standards-based JSX-to-HTML rendering primitive.

Readme

Lume-SSR: Infrastructure for the Web

"The web is powerful. Frameworks are optional. Pick wisely."

Lume-SSR is not a framework. It is a rendering primitive that returns control to you.

Most server-side solutions today (Next.js, Astro, Remix) are "walled gardens": they force you into their routing, their build steps, and their state management.

Lume-SSR is a brick. You use it to build your own house.

It does exactly one thing: It turns standard JSX into HTML strings.

  • 0 bytes client-side runtime (by default).
  • Standards-based (just uses standard JSX).
  • Agnostic (Works with Express, Hono, Fastify, Cloudflare Workers, or static scripts).

The Philosophy

We believe developers have forgotten how powerful the native web platform is. We often reach for 45KB frameworks to solve problems that standards already solve.

  • Reactivity? You might not need a VDOM.
  • Routing? The browser has a History API.
  • Dates? Intl.DateTimeFormat exists.

Lume-SSR allows you to render your HTML on the server without buying into a massive client-side ecosystem. It respects the platform.

Features

  • 🏗 Universal: Runs in Node.js, Deno, Bun, Cloudflare Workers.
  • Fast: Zero overhead abstraction. It's just function calls.
  • 🎯 Focused: No built-in router. No data fetching layer. No magic.
  • 🧩 Modular: Compiles JSX to clean HTML strings. Pair it with Lume-JS for interactivity, or htmx, or Alpine, or Vanilla JS.

Installation

npm install lume-ssr

Usage

Lume-SSR is just a function.

import { renderToString } from 'lume-ssr';

const App = ({ name }) => (
  <header>
    <h1>Hello {name}</h1>
    <p>Rendered on the server.</p>
  </header>
);

const html = renderToString(<App name="Developer" />);
// Output: "<header><h1>Hello Developer</h1><p>Rendered on the server.</p></header>"

With Express

import express from 'express';
import { renderToString } from 'lume-ssr';
import { App } from './App.jsx';

const app = express();

app.get('/', (req, res) => {
  const html = renderToString(<App url={req.url} />);
  res.send(`<!DOCTYPE html>${html}`);
});

With Static Site Generation (SSG)

You don't need a heavy SSG framework. You just need a script.

import fs from 'fs';
import { renderToString } from 'lume-ssr';
import { Page } from './Page.jsx';

const html = renderToString(<Page />);
fs.writeFileSync('dist/index.html', html);

Contributing

We welcome contributions that align with the philosophy: Keep it simple. Use the platform.

License

MIT