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

react-page-lite

v1.1.9

Published

Static site generator with islands architecture

Readme

React Page Lite

A lightweight React-based static site generator with islands architecture.

Generate static HTML with selective interactivity - JavaScript only where you need it.

Quick Start

npx react-page-lite my-app
cd my-app
npm run buildAndWatch

Then open docs/index.html in your browser.

Features

  • Static-First: Pure HTML by default, SEO-friendly
  • 🏝️ Islands Architecture: Add interactivity with <Island> wrapper
  • 🎯 Simple: TypeScript + Tailwind + React, zero config
  • 🚀 Deploy Anywhere: Just copy the output folder to any host
  • 🔧 Auto-Discovery: Components are automatically bundled
  • ⚙️ Configurable: Custom output directory via config.json

Usage

1. Create a page (returns full HTML document):

// src/pages/index.tsx
const HomePage = () => (
  <html lang="en">
    <head>
      <title>My Site</title>
      <link rel="stylesheet" href="./styles.css" />
    </head>
    <body>
      <h1>Static Content</h1>
    </body>
  </html>
);

export default HomePage;

2. Add interactivity with islands:

import { Island } from "@/Island";
import { Counter } from "@/components/Counter";

<Island>
  <Counter />
</Island>

3. Create interactive components:

// src/components/Counter.tsx
import { useState } from "react";

export function Counter() {
  const [count, setCount] = useState(0);
  return <button onClick={() => setCount(c => c + 1)}>Count: {count}</button>;
}

Props are automatically serialized for hydration.

Project Structure

src/
├── pages/              # HTML pages (export default function)
│   ├── index.tsx       # → docs/index.html
│   └── demo.tsx        # → docs/demo.html
├── components/         # Interactive components (auto-discovered)
│   └── Counter.tsx     # Example interactive component
└── styles/
    └── globals.css     # Tailwind input

docs/                   # Build output (configurable)
├── index.html         # Static HTML
├── demo.html          # Demo page
├── styles.css         # Processed CSS
└── islandRender.js    # Bundled interactive components

_internal/              # Build system
config.json             # Configuration file

Configuration (config.json):

{
  "outputDir": "docs",  // Change to "dist", "build", etc.
  "buildOptions": {
    "minify": true,
    "sourcemap": false
  }
}

Perfect for GitHub Pages with "outputDir": "docs".

How It Works

Build Time:

  • Renders pages to static HTML with proper formatting
  • Auto-discovers components and bundles into islandRender.js
  • Processes Tailwind CSS and purges unused styles

Runtime:

  • Static HTML loads instantly (SEO-friendly, no JavaScript required)
  • Islands hydrate progressively on the client
  • Only interactive components download/execute JavaScript

Development

Commands:

  • npm run buildAndWatch - Watch mode (rebuilds on file changes)
  • node _internal/build.js - One-time build
  • npm run update-template - Update build system to latest version (safe, never touches your src/)

Structure:

  • Pages: Create .tsx in src/pages/ → generates HTML files
  • Components: Create .tsx in src/components/ → auto-bundled for islands
  • Styling: Use Tailwind classes (automatically purged)
  • Imports: TypeScript paths (@/Island, @/components/Counter)

Deployment

Copy the entire output folder to any static host:

# Default output: docs/ folder
cp -r docs/ /your/web/server/

# Or deploy to:
# - GitHub Pages (use outputDir: "docs")
# - Netlify, Vercel, Cloudflare Pages
# - Any CDN or static hosting

Use Cases

Perfect for:

  • Marketing websites
  • Landing pages
  • Documentation sites
  • Portfolios

Not for: Apps requiring authentication, databases, or server-side logic.

Updating

Get the latest build system improvements without affecting your content:

npm run update-template

What gets updated:

  • _internal/ - Build system and tooling
  • Config files (tailwind.config.js, tsconfig.json, etc.)

What's never touched:

  • src/pages/ - Your pages
  • src/components/ - Your components
  • src/styles/ - Your styles
  • docs/ or dist/ - Your output

The update script creates backups automatically. Your content is always safe.