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

@millino/naked-ssg

v0.0.14

Published

Super-mi imal, (almost) no deps NodeJS static site generator with i18n support.

Readme

Yet another TypeScript SSG

But with built-in internationalization support and a minimal API, relies on @kitajs/html and @kitajs/ts-html-plugin to make TSX available in the target projects.

Why

Internationalization is a common requirement, but existing tools (e.g. NextJS) feels like overkill for the purpose of obtaining a static website. I wanted the possibility to use TSX with a NodeJS static site generator, but without React involved.

Usage

Initialize a project:

mkdir project-name
cd project-name
npx @millino/naked-ssg initialize

config.ts and layout.tsx need to be created manually, see the sections below.

To build the project:

npx @millino/naked-ssg build

todo:

npx naked-ssg server

Project structure

/
 - layout.tsx
 - config.ts
 - /pages
   - index.tsx
   - /test-sub-directory
     - index.tsx
- /assets
- /scripts
- /graphics

Example layout.tsx

This will wrap every page, except for proxy-generated pages.

import { LayoutFunction } from "@millino/types-naked-ssg";

const Layout: LayoutFunction = async ({ html, config, cultureCode }) => (
  <html>
    <head>
      <title>{config.title}</title>
    </head>
    <body>{html}</body>
  </html>
);

export default Layout;

Example config.ts

import { SiteConfiguration, TranslationsMap } from "@millino/naked-ssg";

const CONFIG: SiteConfiguration = {
  cultures: ["it-IT", "en-EN"], // "it-IT" is the default culture,
};

const TRANSLATIONS: TranslationsMap = {
  "it-IT": {
    test: "Test IT",
  },
  "en-EN": {
    test: "Test EN",
  },
};

export { CONFIG, TRANSLATIONS };

Please note: The first culture in the CONFIG.cultures array will be the default culture, which currently has no dedicated subdirectory.

Example page

A page must have a default export, which is a function returning a string with the page markup.

/pages/index.tsx

import { TRANSLATIONS } from "../config.ts";

const Index = (cultureCode: string) => (
  <p>
    {TRANSLATIONS[cultureCode].test}! {2 + 2}
  </p>
);

export default Index;

Page-level configuration

Certain things are overridable in the configuration by exporting a getConfig function. See the available configuration options in the example below:

import type { PageBuilder } from '@millino/types-naked-ssg';
import { TRANSLATIONS } from '../config.js';

const Index: PageBuilder = cultureCode => ({
	getHTML: async () => (
        <p>
            ${TRANSLATIONS[cultureCode]!.test}! ${2 + 2}
        </p>
    ),
    getConfig: async () => ({
        title: 'Home',
        description: 'Homepage example.',
    })
});

export default Index;

Proxies

"Proxies" is a mechanism to output pages from sets of external data. data should be an array of objects with a string slug property: each object will generate an HTML page.

const CONFIG: SiteConfiguration = {
  ...,
  proxies: [
    {
      fetchData: async () => {
        return {
          "it-IT": {
            data: await fancyAPI({culture: "it-IT"}),
            directory: "prodotti",
          },
          "en-EN": {
            data: await fancyAPI({culture: "en-EN"}),
            directory: "products",
          },
        }
      },
      layoutName: "products",
    },
  ],
};

This configuration will try to read a /proxies/products.tsx file, and output pages for each culture in the it-IT and en-EN directories.

Plug-ins

Advanced features are OSP, meaning: plug-in system WIP, meanwhile fork the project.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Tests are more than welcome.