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

@jenjs/jenpress

v0.1.1

Published

A VitePress competitor - Markdown-first documentation SSG built with Jen.js, Vite, and Preact

Readme

JenPress

A VitePress competitor - Markdown-first documentation static site generator built for the Jen.js ecosystem.

Built with Vite, Preact, TypeScript, and ESM.

Features

  • ⚡️ Fast Dev Server - Vite-powered with instant startup and HMR
  • 📝 Markdown First - Automatic file-based routing from markdown files
  • ⚛️ Preact Runtime - Lightweight UI framework with component support
  • 🎨 Theme System - Default theme + custom theme override support
  • 🔍 SEO Ready - Proper meta tags, sitemaps, canonical URLs
  • 🚀 Zero Config - Works out of the box with optional jenpress.config.ts
  • 📦 ESM Only - Modern JavaScript/TypeScript package
  • 🎯 Type Safe - Full TypeScript support

Installation

From npm (when published)

npm install -D @jenjs/jenpress
# or
pnpm add -D @jenjs/jenpress

From monorepo

pnpm --filter @jenjs/jenpress dev

Quick Start

1. Create docs directory

docs/
├── index.md
├── guide/
│   └── getting-started.md
└── api/
    └── overview.md

2. Create jenpress.config.ts (optional)

import { defineConfig } from '@jenjs/jenpress';

export default defineConfig({
  title: 'My Docs',
  description: 'Documentation for my project',
  themeConfig: {
    nav: [
      { text: 'Guide', link: '/guide/' },
      { text: 'API', link: '/api/' },
    ],
  },
});

3. Run dev server

# In monorepo:
pnpm --filter @jenjs/jenpress dev

# Or locally:
pnpm dev

Visit http://localhost:5173

Commands

# Development server with HMR
jenpress dev

# Build static site to dist/
jenpress build

# Serve dist/ folder
jenpress serve

Markdown Syntax

Frontmatter

---
title: Getting Started
description: Learn the basics
---

# Content here...

Component Usage

Import and use Preact components:

---
title: Components
---

<Button onClick={() => alert('Clicked!')}>Click me</Button>

Configuration

jenpress.config.ts

export default {
  title: string;
  description: string;
  base: string; // default: '/'
  
  themeConfig: {
    nav: Array<{ text: string; link: string }>;
    sidebar: Array<{
      text: string;
      items: Array<{ text: string; link: string }>;
    }>;
    logo: string;
    repo: string;
  };
  
  markdown: {
    lineNumbers: boolean;
    breaks: boolean;
  };
}

Custom Theme

Create .jenpress/theme/Layout.tsx to override the default theme:

import { h } from 'preact';
import type { PageData } from '@jenjs/jenpress';

export default function Layout({ page, children }: any) {
  return (
    <div class="custom-theme">
      <header>My Custom Header</header>
      <main>{children}</main>
      <footer>My Custom Footer</footer>
    </div>
  );
}

Project Structure

packages/jenpress/
├── bin/
│   └── jenpress.js         # CLI entrypoint
├── src/
│   ├── cli/
│   │   ├── dev.ts          # Dev server command
│   │   ├── build.ts        # Build command
│   │   └── serve.ts        # Serve command
│   ├── node/
│   │   ├── config.ts       # Config loader
│   │   ├── builder.ts      # Build pipeline
│   │   ├── dev-server.ts   # Dev server
│   │   └── vite-plugin.ts  # Vite markdown plugin
│   ├── client/
│   │   ├── app.tsx         # Client entry
│   │   └── router.ts       # Client router
│   ├── theme-default/
│   │   ├── Layout.tsx      # Default layout
│   │   ├── Nav.tsx         # Navigation
│   │   ├── Sidebar.tsx     # Sidebar
│   │   └── index.css       # Default styles
│   ├── markdown/
│   │   ├── parser.ts       # Markdown parser
│   │   ├── highlight.ts    # Syntax highlighting
│   │   └── transform.ts    # MD to component transform
│   └── index.ts            # Main export
├── package.json
├── tsconfig.json
└── README.md

Browser Support

  • Chrome/Edge 90+
  • Firefox 88+
  • Safari 14+

License

GPL-3.0-only