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

@jts-studios/node-kit

v1.0.5

Published

JTS Studios utility library: Logger, filesystem helpers, and path utilities.

Readme

@jts-studios/node-kit

JTS Studios utility library for Node.js — Logger, filesystem helpers, path utilities, and Vite plugins.

Installation

npm install @jts-studios/node-kit

For the PHP Vite plugin, also install the peer dependency:

npm install --save-dev html-minifier-terser vite

Modules

Logger@jts-studios/node-kit/components/logger

ANSI-colored tagged logger for CLI and build tools.

import { Logger } from "@jts-studios/node-kit"

const log = new Logger("MyApp", "cyan")
log.info("Server started")
log.warn("Deprecated API used")
log.error("Connection failed")

Constructor: new Logger(name, color?)

| Param | Type | Default | |---------|--------------|------------| | name | string | — | | color | ColorName | "green" |

Available colors: black red green yellow blue magenta cyan white brightRed brightGreen brightYellow brightBlue brightMagenta brightCyan brightWhite


Filesystem utils — @jts-studios/node-kit/utils

directory_copy(src, dest)

Recursively copy a file, directory, or symlink tree from src to dest.

import { directory_copy } from "@jts-studios/node-kit/utils/directory"
await directory_copy("./src/assets", "./dist/assets")

ensure_parent_dir(p) / mkdirp(dirPath)

Create directories (mkdir -p).

import { ensure_parent_dir, mkdirp } from "@jts-studios/node-kit/utils/fs"
await ensure_parent_dir("./dist/pages/index.html")  // creates ./dist/pages/
await mkdirp("./dist/assets/images")

lstat_exists(p) / lstat_safe(p) / safe_stat(p)

Safe stat helpers that return null / false instead of throwing.

import { lstat_exists, lstat_safe, safe_stat } from "@jts-studios/node-kit/utils/fs"
if (await lstat_exists("./output.txt")) { /* ... */ }
const stats = await lstat_safe("./output.txt")  // Stats | null (lstat, no symlink follow)
const stats2 = await safe_stat("./output.txt")  // Stats | null (stat, follows symlinks)

path_exists(p) / path_resolve(p)

import { path_exists, path_resolve } from "@jts-studios/node-kit/utils/path"
await path_exists("./config.json")          // true | false
path_resolve("./src")                       // absolute path string
path_resolve(null)                          // undefined

PHP Vite plugin — @jts-studios/node-kit/plugins/php

Vite plugin for PHP projects. Provides dev-server hot reload and final .php file assembly on build.

// vite.config.js
import { PHP } from "@jts-studios/node-kit/plugins/php"

export default {
  plugins: [
    PHP({
      entries:    ["pages/index.php", "pages/about.php"],
      verbose:    true,
      minifyHtml: true,
      hotReload:  true,
    }),
  ],
}

| Option | Type | Default | Description | |---------------|------------|---------|------------------------------------------| | entries | string[] | — | PHP entry file paths | | verbose | boolean | false | Enable detailed build logging | | minifyHtml | boolean | true | Minify HTML before injecting PHP | | hotReload | boolean | true | Full-reload on PHP change, CSS HMR |


Deep imports

Every module is individually importable:

import { Logger }         from "@jts-studios/node-kit/components/logger"
import { directory_copy } from "@jts-studios/node-kit/utils/directory"
import { mkdirp }         from "@jts-studios/node-kit/utils/fs"
import { path_resolve }   from "@jts-studios/node-kit/utils/path"
import { PHP }            from "@jts-studios/node-kit/plugins/php"

Requirements

  • Node.js >= 18
  • vite >= 5 and html-minifier-terser >= 7 (optional peer deps, required for the PHP plugin)

License

MIT © JTS Studios