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

@sprig-and-prose/sprig-ui-csr

v0.3.6

Published

A Client-Side Rendering (CSR) version of sprig-universe-ui. This is a plain Svelte application served by a simple Node.js HTTP server.

Downloads

138

Readme

sprig-ui-csr

A Client-Side Rendering (CSR) version of sprig-universe-ui. This is a plain Svelte application served by a simple Node.js HTTP server.

Overview

This application serves a Svelte app via Node's native http package. The server handles three route patterns:

  • /_ui/* - Serves UI assets from the Vite build output
  • /api/manifest - Serves manifest.json from the current directory (or configured path)
  • Everything else - Serves index.html for client-side routing

Installation

npm install

Development

Build the Svelte app:

npm run build

Start the server:

npm start

Or use the CLI directly:

node src/cli.js

The server will be available at http://localhost:5173 (or the configured port).

CLI Options

# Use default port (5173) and manifest path (./manifest.json)
sprig-ui-csr

# Specify a custom port
sprig-ui-csr --port 3000
# or
sprig-ui-csr -p 3000

# Specify a custom manifest path
sprig-ui-csr --manifest ./custom-manifest.json
# or
sprig-ui-csr -m ./custom-manifest.json

# Combine options
sprig-ui-csr -p 8080 -m ./data/manifest.json

# Show help
sprig-ui-csr --help

Other Commands

# Format code
npm run format

# Lint code
npm run lint

# Type check (JSDoc types)
npm run typecheck

# Build for production
npm run build

Project Structure

sprig-ui-csr/
├── package.json
├── biome.json
├── tsconfig.json
├── vite.config.js
├── index.html
├── src/
│   ├── main.js          # Svelte app entry point
│   ├── App.svelte       # Root Svelte component
│   ├── server.js        # HTTP server implementation
│   ├── cli.js           # CLI entry point
│   └── styles/
│       └── app.css      # Global styles
└── dist/                # Vite build output (served as /_ui/*)

Technologies

  • Svelte 5: Component framework
  • Vite 6: Build tool
  • TypeScript 5.7: Type checking (via JSDoc annotations)
  • Biome 2.3: Linting and formatting
  • Node.js HTTP: Native HTTP server (no framework dependencies)

Configuration

  • TypeScript: Configured in tsconfig.json for type checking only (no compilation)
  • Biome: Configured in biome.json (formats JS/TS, ignores Svelte files)
  • Vite: Configured in vite.config.js (builds Svelte app with base path /_ui/)

Manifest API

The /api/manifest endpoint serves the manifest.json file from the current working directory (or a configured path). If the file doesn't exist, it returns a 404 error.

License

ISC