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

@ynode/bootify

v1.0.1

Published

A standardized Fastify application bootstrapper with built-in cluster management, graceful shutdown, and configuration wiring for the @ynode ecosystem.

Readme

@ynode/bootify

Copyright (c) 2026 Michael Welter [email protected]

npm version License: MIT

A Fastify bootstrap plugin that incorporates standardized @ynode patterns for clustering, configuration, and lifeycle management.

Purpose

@ynode/bootify eliminates the boilerplate code typically found in the entry points of @ynode applications. It consolidates:

  • Cluster Management: Automatically handles master/worker process forks using @ynode/cluster.
  • Signal Handling: Manages graceful shutdowns (SIGINT, SIGTERM) and zero-downtime reloads (SIGHUP).
  • Fastify Initialization: Creates the server instance with standard configurations (like proxiable and autoshutdown).

Installation

npm install @ynode/bootify

Usage

In your main entry file (e.g., src/web.js), simply import bootify and your configuration.

#!/usr/bin/env node

import { bootify } from "@ynode/bootify";
import config from "./config.js"; // Your yargs configuration
import pkg from "../package.json" with { type: "json" };

bootify({
    config,
    pkg,
    // Lazy-load your application logic
    app: () => import("./app.js"),
});

Configuration Object (config)

The config object is typically the resolved output of yargs. It supports the following reserved properties:

  • cluster: Configuration for @ynode/cluster (can be a boolean or object).
  • pidfile: Path to write the PID file (optional).
  • http2: Enable HTTP/2 support (boolean).
  • rewrite: An object map for URL rewriting.
  • sleep: Options for @ynode/autoshutdown.
  • listen: The binding address/port string (e.g., "3000", "127.0.0.1:8080").

Unix Domain Sockets & proxiable

If you bind to a Unix Domain Socket (by ignoring host/port in your config or passing a path), bootify automatically uses proxiable on the raw server instance. This fixes common issues where req.socket.remoteAddress is undefined or incorrect when running behind a proxy like Nginx over a socket.

API

bootify(options)

Initializes the application lifecycle.

Options

| Property | Type | Description | | :---------- | :--------- | :------------------------------------------------------------------------------------------------- | | app | Function | A function that returns a Promise resolving to the Fastify plugin module (must extract default). | | config | Object | The configuration object (usually from argv). | | pkg | Object | The parsed content of package.json. | | validator | Function | Optional function to validate config before starting. |

License

This project is licensed under the MIT License.