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

@sigx/ssg

v0.4.8

Published

Static Site Generator for SignalX with file-based routing, MDX support, and pluggable themes

Readme

@sigx/ssg

Static site generator for SignalX with file-based routing, MDX, and pluggable themes.

Features

  • 🗂 File-based routingsrc/pages/ becomes routes automatically
  • 📑 Layout system — wrap pages with reusable layouts
  • 📝 MDX — write content with Markdown + SignalX components
  • 🎨 Pluggable themes — install a theme package (e.g. @sigx/ssg-theme-daisyui) or build your own
  • 🔥 Vite HMR — instant updates during development
  • Fast builds — parallel rendering with streaming
  • 🚀 Zero-config mode — works out of the box with sensible defaults
  • 🗺️ Sitemap generation — automatic sitemap.xml and robots.txt

Installation

npm install @sigx/ssg sigx @sigx/router
npm install -D vite @sigx/vite

Usage

@sigx/ssg ships as a @sigx/cli plugin and a Vite plugin you can use directly. Drop a ssg.config.ts in your project root to opt in:

// ssg.config.ts
import { defineSSGConfig } from '@sigx/ssg';

export default defineSSGConfig({
    site: {
        title: 'My Site',
        description: 'Built with SignalX SSG',
        url: 'https://example.com',
    },
});

Via @sigx/cli

npx sigx ssg dev      # start dev server
npx sigx ssg build    # build static site
npx sigx ssg preview  # preview the production build

Via the Vite plugin

// vite.config.ts
import { defineConfig } from 'vite';
import sigx from '@sigx/vite';
import ssg from '@sigx/ssg/vite';

export default defineConfig({
    plugins: [sigx(), ssg()],
});

File-based routing

Pages in src/pages/ are automatically converted to routes:

| File | Route | |------|-------| | src/pages/index.tsx | / | | src/pages/about.tsx | /about | | src/pages/blog/index.tsx | /blog | | src/pages/blog/[slug].tsx | /blog/:slug | | src/pages/docs/[...path].tsx | /docs/*path |

Dynamic routes export getStaticPaths:

// src/pages/blog/[slug].tsx
import { component } from 'sigx';

export async function getStaticPaths() {
    const posts = await fetchBlogPosts();
    return posts.map(post => ({
        params: { slug: post.slug },
        props: { post },
    }));
}

export default component(({ props }) => () => (
    <article>
        <h1>{props.post.title}</h1>
    </article>
));

Layouts

Create layouts in src/layouts/:

// src/layouts/default.tsx
import { component } from 'sigx';

export default component(({ slots }) => () => (
    <div class="layout">
        <header><nav>My Site</nav></header>
        <main>{slots.default()}</main>
        <footer>©</footer>
    </div>
));

Specify the layout in frontmatter or by exporting it:

---
title: My Page
layout: docs
---

# Content here
export const layout = 'docs';

MDX

---
title: Hello World
date: 2026-05-10
---

# {frontmatter.title}

This is **markdown** with SignalX components mixed in:

<Counter initial={5} />

Themes

Install a theme:

npm install @sigx/ssg-theme-daisyui
// ssg.config.ts
export default defineSSGConfig({
    theme: '@sigx/ssg-theme-daisyui',
});

A theme bundles layouts, components, and CSS so you don't have to.

Islands hydration

@sigx/ssg works with @sigx/ssr-islands for selective hydration via client:* directives. See the islands README for details.

Configuration

Full options:

defineSSGConfig({
    pages: 'src/pages',
    layouts: 'src/layouts',
    content: 'src/content',
    outDir: 'dist',

    site: {
        title: 'My Site',
        description: 'Site description',
        url: 'https://example.com',
        lang: 'en',
        favicon: '/favicon.ico',
        fonts: ['Inter:wght@400;500;600;700'],
        ogImage: 'https://example.com/og.png',
        twitter: 'myhandle',
        themeColor: '#000000',
    },

    theme: '@sigx/ssg-theme-daisyui',
    defaultLayout: 'default',

    markdown: {
        shiki: {
            light: 'github-light',
            dark: 'github-dark',
        },
    },
});

License

MIT © Andreas Ekdahl